Lines Matching refs:utf8
418 UnicodeString UnicodeString::fromUTF8(const StringPiece &utf8) {
420 result.setToUTF8(utf8);
947 char *utf8 = sink.GetAppendBuffer(length16 < capacity ? length16 : capacity,
953 u_strToUTF8WithSub(utf8, capacity, &length8,
959 utf8 = (char *)uprv_malloc(length8);
960 if(utf8 != NULL) {
963 u_strToUTF8WithSub(utf8, length8, &length8,
973 sink.Append(utf8, length8);
977 uprv_free(utf8);
1300 UnicodeString &UnicodeString::setToUTF8(const StringPiece &utf8) {
1302 int32_t length = utf8.length();
1314 utf8.data(), length,