Lines Matching refs:utf8
71 /* check that a given utf8 string is well-formed, returns 1 on success, 0 otherwise */
72 extern int utf8_check( cbytes_t utf8, int utf8len );
74 /* check that all characters in a given utf8 string can be encoded into the GSM alphabet.
76 extern int utf8_check_gsm7( cbytes_t utf8, int utf8len );
78 /* try to skip enough utf8 characters to generate gsm7len GSM septets */
79 extern cbytes_t utf8_skip_gsm7( cbytes_t utf8, cbytes_t utf8end, int gsm7len );
85 extern int utf8_to_gsm7( cbytes_t utf8, int utf8len, bytes_t dst, int offset );
87 /* convert a utf8 string into an array of 8-bit unpacked GSM septets,
89 extern int utf8_to_gsm8( cbytes_t utf8, int utf8len, bytes_t dst );
91 /* convert a GSM septets string into a utf-8 byte string. assumes that 'utf8' is NULL or properly
93 return the number of utf8 bytes. */
94 extern int utf8_from_gsm7( cbytes_t src, int offset, int count, bytes_t utf8 );
96 /* convert an unpacked 8-bit GSM septets string into a utf-8 byte string. assumes that 'utf8'
98 returns the number of utf8 bytes */
99 extern int utf8_from_gsm8( cbytes_t src, int count, bytes_t utf8 );
131 /** UCS2 to/from UTF8
134 /* convert a ucs2 string into a utf8 byte string, assumes 'utf8' NULL or properly sized.
135 returns the number of utf8 bytes*/
136 extern int ucs2_to_utf8( cbytes_t ucs2, int ucs2len, bytes_t utf8 );
138 /* convert a utf8 byte string into a ucs2 string, assumes 'ucs2' NULL or properly sized.
140 extern int utf8_to_ucs2( cbytes_t utf8, int utf8len, bytes_t ucs2 );
143 extern cbytes_t utf8_skip( cbytes_t utf8, cbytes_t utf8end, int count);