Home | History | Annotate | Download | only in common

Lines Matching full:utf8

407 UnicodeString UnicodeString::fromUTF8(const StringPiece &utf8) {
409 result.setToUTF8(utf8);
885 char *utf8 = sink.GetAppendBuffer(length16 < capacity ? length16 : capacity,
891 u_strToUTF8WithSub(utf8, capacity, &length8,
897 utf8 = (char *)uprv_malloc(length8);
898 if(utf8 != NULL) {
901 u_strToUTF8WithSub(utf8, length8, &length8,
911 sink.Append(utf8, length8);
915 uprv_free(utf8);
1240 UnicodeString &UnicodeString::setToUTF8(const StringPiece &utf8) {
1242 int32_t length = utf8.length();
1254 utf8.data(), length,