Home | History | Annotate | Download | only in telephony

Lines Matching full:ucs2

446 ucs2_write( bytes_t  ucs2, int  offset, int  v )
448 if (ucs2) {
449 ucs2[offset+0] = (byte_t) (v >> 8);
450 ucs2[offset+1] = (byte_t) (v);
493 /** UCS2 to UTF8
496 /* convert a UCS2 string into a UTF8 byte string, assumes 'buf' is correctly sized */
498 ucs2_to_utf8( cbytes_t ucs2,
505 for (nn = 0; nn < ucs2len; ucs2 += 2, nn++) {
506 int c= (ucs2[0] << 8) | ucs2[1];
512 /* count the number of UCS2 chars contained in a utf8 byte string */
516 bytes_t ucs2 )
528 result += ucs2_write(ucs2, result, c);
739 ucs2_from_gsm7( bytes_t ucs2,
759 result += ucs2_write(ucs2, result, c);
770 result += ucs2_write( ucs2, result, val );
927 ucs2_to_gsm7( cbytes_t ucs2, int ucs2len, bytes_t dst, int offset )
929 const unsigned char* ucs2end = ucs2 + ucs2len*2;
933 while ( ucs2 < ucs2end ) {
934 int c = *ucs2++;
962 ucs2_to_gsm8( cbytes_t ucs2, int ucs2len, bytes_t dst )
964 const unsigned char* ucs2end = ucs2 + ucs2len*2;
967 while ( ucs2 < ucs2end ) {
968 int c = *ucs2++;