diff options
author | Aki Niemi <aki.niemi@nokia.com> | 2009-09-14 16:21:06 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2009-09-14 16:21:06 +0300 |
commit | a1ca8a9afa7d09285f4f430099abada5b858dc29 (patch) | |
tree | 8fa32c2687da21939114dfc535cd47314765232b /gisi/iter.h | |
parent | d7459f45fcc05189e9638e122dc410a5d682490f (diff) |
Add and modify string getters
Add a getter for latin ASCII only tags, and change the alpha tag
getter. Turns out not all alpha tags in ISI are of the length-value
variety.
Diffstat (limited to 'gisi/iter.h')
-rw-r--r-- | gisi/iter.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gisi/iter.h b/gisi/iter.h index 87ebfdba..9c439a84 100644 --- a/gisi/iter.h +++ b/gisi/iter.h @@ -48,7 +48,11 @@ bool g_isi_sb_iter_get_word(GIsiSubBlockIter *iter, uint16_t *word, int pos); bool g_isi_sb_iter_get_dword(GIsiSubBlockIter *iter, uint32_t *dword, int pos); bool g_isi_sb_iter_get_oper_code(GIsiSubBlockIter *iter, char *mcc, char *mnc, int pos); -bool g_isi_sb_iter_get_alpha_tag(GIsiSubBlockIter *iter, char **utf8, int pos); +bool g_isi_sb_iter_get_alpha_tag(GIsiSubBlockIter *iter, char **utf8, + size_t len, int pos); +bool g_isi_sb_iter_get_latin_tag(GIsiSubBlockIter *iter, char **ascii, + size_t len, int pos); + bool g_isi_sb_iter_init(const void restrict *data, size_t len, GIsiSubBlockIter *iter); |