Lines Matching full:ucs2
104 ** Note that here, 'ucs2' really refers to non-aligned UCS2-BE, as used by the GSM standard
107 /* check that all characters in a given ucs2 string can be encoded into the GSM alphabet.
109 extern int ucs2_check_gsm7( cbytes_t ucs2, int ucs2len );
111 /* convert a ucs2 string into a GSM septet string, assumes 'dst' is NULL or properly sized,
114 extern int ucs2_to_gsm7( cbytes_t ucs2, int ucs2len, bytes_t dst, int offset );
116 /* convert a ucs2 string into a GSM septet string, assumes 'dst' is NULL or properly sized,
118 extern int ucs2_to_gsm8( cbytes_t ucs2, int ucs2len, bytes_t dst );
120 /* convert a GSM septets string into a ucs2 string. assumes that 'ucs2' is NULL or
122 of input septets. return the number of ucs2 characters (not bytes) */
123 extern int ucs2_from_gsm7( bytes_t ucs2, cbytes_t src, int offset, int count );
125 /* convert an 8-bit unpacked GSM septets string into a ucs2 string. assumes that 'ucs2'
127 of ucs2 characters (not bytes) */
128 extern int ucs2_from_gsm8( bytes_t ucs2, cbytes_t src, int count );
131 /** UCS2 to/from UTF8
134 /* convert a ucs2 string into a utf8 byte string, assumes 'utf8' NULL or properly sized.
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.
139 returns the number of ucs2 chars */
140 extern int utf8_to_ucs2( cbytes_t utf8, int utf8len, bytes_t ucs2 );