Lines Matching full:utf8
46 sms_utf8_from_message_str( const char* str, int strlen, unsigned char* utf8, int utf8len )
112 utf8[count] = (byte_t) c;
117 utf8[count] = (byte_t)(0xc0 | ((c >> 6) & 0x1f));
119 utf8[count+1] = (byte_t)(0x80 | (c & 0x3f));
124 utf8[count] = (byte_t)(0xc0 | ((c >> 12) & 0xf));
126 utf8[count+1] = (byte_t)(0x80 | ((c >> 6) & 0x3f));
128 utf8[count+2] = (byte_t)(0x80 | (c & 0x3f));
141 int sms_utf8_to_message_str( const unsigned char* utf8, int utf8len, char* str, int strlen )
143 cbytes_t p = utf8;
904 /* get the message embedded in a SMS PDU as a utf8 byte array, returns the length of the message in bytes */
907 smspdu_get_text_message( SmsPDU pdu, unsigned char* utf8, int utf8len )
941 memcpy( utf8, rope->data, utf8len );
975 memcpy( utf8, rope->data, utf8len );
1113 cbytes_t utf8,
1141 int count = utf8_to_gsm7( utf8, utf8len, NULL, 0 );
1165 utf8_to_gsm7( utf8, utf8len, dst, pad );
1169 int count = utf8_to_ucs2( utf8, utf8len, NULL );
1184 utf8_to_ucs2( utf8, utf8len, dst );
1191 smspdu_create_deliver( cbytes_t utf8,
1208 gsm_rope_add_sms_deliver_pdu( rope, utf8, utf8len, use_gsm7,
1216 gsm_rope_add_sms_deliver_pdu( rope, utf8, utf8len, use_gsm7,
1250 smspdu_create_deliver_utf8( const unsigned char* utf8,
1270 use_gsm7 = utf8_check_gsm7( utf8, utf8len );
1276 count = utf8_to_gsm7( utf8, utf8len, NULL, 0 );
1278 count = utf8_to_ucs2( utf8, utf8len, NULL );
1293 cbytes_t src = utf8;
1294 cbytes_t src_end = utf8 + utf8len;
1565 sms_receiver_get_text_message( SmsReceiver rec, int index, bytes_t utf8, int utf8len )
1584 if (utf8 && utf8len > 0) {
1585 partial = smspdu_get_text_message( frag->pdus[nn], utf8, utf8len );
1586 utf8 += partial;
1617 bytes_t utf8;
1635 utf8 = malloc( utf8len + 1 );
1636 if (utf8 == NULL) {
1644 total += smspdu_get_text_message( frag->pdus[nn], utf8 + total, utf8len - total );
1649 result = smspdu_create_deliver_utf8( utf8, utf8len, from, now );
1651 free(utf8);