Home
last modified time | relevance | path

Searched refs:utf8 (Results 1 – 17 of 17) sorted by relevance

/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Dunchecked.h46 uint32_t cp = utf8::mask8(*it); in next()
48 utf8::sequence_length(it); in next()
58 cp = ((cp << 12) & 0xffff) + ((utf8::mask8(*it) << 6) & 0xfff); in next()
64 cp = ((cp << 18) & 0x1fffff) + ((utf8::mask8(*it) << 12) & 0x3ffff); in next()
66 cp += (utf8::mask8(*it) << 6) & 0xfff; in next()
78 uint32_t cp = utf8::mask16(*start++); in utf16to8()
80 if (utf8::is_lead_surrogate(cp)) { in utf16to8()
81 uint32_t trail_surrogate = utf8::mask16(*start++); in utf16to8()
82 cp = (cp << 10) + trail_surrogate + utf8::SURROGATE_OFFSET; in utf16to8()
94 *result++ = static_cast<uint16_t>((cp >> 10) + utf8::LEAD_OFFSET); in utf8to16()
[all …]
Dutf.cc27 std::u32string Utf8ToUtf32(std::string_view utf8) { in Utf8ToUtf32() argument
29 unchecked::utf8to32(utf8.begin(), utf8.end(), std::back_inserter(result)); in Utf8ToUtf32()
33 std::u32string Utf8ToUtf32(const char* utf8) { in Utf8ToUtf32() argument
35 unchecked::utf8to32(utf8, utf8 + strlen(utf8), std::back_inserter(result)); in Utf8ToUtf32()
Dutf.h31 std::u32string Utf8ToUtf32(std::string_view utf8);
34 std::u32string Utf8ToUtf32(const char* utf8);
Dpage.h134 int FindMatchesUtf8(std::string_view utf8, std::vector<TextRange>* matches);
143 int BoundsOfMatchesUtf8(std::string_view utf8, std::vector<Rectangle_i>* rects,
Dpage.cc163 int Page::FindMatchesUtf8(std::string_view utf8, vector<TextRange>* matches) { in FindMatchesUtf8() argument
164 std::u32string query(Utf8ToUtf32(utf8)); in FindMatchesUtf8()
181 int Page::BoundsOfMatchesUtf8(std::string_view utf8, vector<Rectangle_i>* rects, in BoundsOfMatchesUtf8() argument
184 int num_matches = FindMatchesUtf8(utf8, &matches); in BoundsOfMatchesUtf8()
Dcore.h23 namespace utf8 {
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth.h59 const uint8_t* utf8 = reinterpret_cast<const uint8_t*>(bytes++); in isValidUtf() local
61 switch (*utf8 >> 4) { in isValidUtf()
80 if ((*utf8 & 0x08) == 0) { in isValidUtf()
84 utf8 = reinterpret_cast<const uint8_t*>(bytes++); in isValidUtf()
85 if ((*utf8 & 0xc0) != 0x80) { in isValidUtf()
96 utf8 = reinterpret_cast<const uint8_t*>(bytes++); in isValidUtf()
97 if ((*utf8 & 0xc0) != 0x80) { in isValidUtf()
105 utf8 = reinterpret_cast<const uint8_t*>(bytes++); in isValidUtf()
106 if ((*utf8 & 0xc0) != 0x80) { in isValidUtf()
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/utils/
Dutf.cc73 std::u16string Utf8ToUtf16Le(std::string_view utf8) { in Utf8ToUtf16Le() argument
75 pdfClient::unchecked::utf8to16(utf8.begin(), utf8.end(), std::back_inserter(result)); in Utf8ToUtf16Le()
Dutf.h42 std::u16string Utf8ToUtf16Le(std::string_view utf8);
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsPacketWriter.java155 byte[] utf8 = value.getBytes(MdnsConstants.getUtf8Charset()); in writeString()
156 writeUInt8(utf8.length); in writeString()
157 writeBytes(utf8); in writeString()
/packages/modules/adb/client/
Dfastdeploy.cpp145 std::string utf8; in get_string_from_utf16() local
146 utf8.resize(utf8_length); in get_string_from_utf16()
147 utf16_to_utf8(input, input_len, &*utf8.begin(), utf8_length + 1); in get_string_from_utf16()
148 return utf8; in get_string_from_utf16()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DNAIRealmData.java76 boolean utf8 = (payload.get() & NAI_ENCODING_UTF8_MASK) != 0; in parse()
80 payload, utf8 ? StandardCharsets.UTF_8 : StandardCharsets.US_ASCII); in parse()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/util/
DMdnsUtils.java186 final Charset utf8 = StandardCharsets.UTF_8; in truncateServiceName()
187 final CharsetEncoder encoder = utf8.newEncoder(); in truncateServiceName()
193 return new String(out.array(), 0, out.position(), utf8); in truncateServiceName()
/packages/modules/adb/
Dsysdeps_win32.cpp2689 const char* utf8; in _console_write_utf8() local
2697 utf8 = buf; in _console_write_utf8()
2706 utf8 = combined_buffer.data(); in _console_write_utf8()
2707 utf8_size = internal::ParseCompleteUTF8(utf8, utf8 + combined_buffer.size(), in _console_write_utf8()
2718 (void)android::base::UTF8ToWide(utf8, utf8_size, &utf16); in _console_write_utf8()
/packages/apps/Car/DebuggingRestrictionController/libs/
Dokio-1.15.0.jarMETA-INF/ META-INF/MANIFEST.MF okio/ okio/AsyncTimeout$Watchdog. ...
Djackson-core-2.11.1.jar ... enum com.fasterxml.jackson.core.JsonEncoding UTF8 public static final enum com.fasterxml.jackson. ...
/packages/services/Car/tests/BugReportApp/libs/
Djackson-core-2.9.9.jar ... enum com.fasterxml.jackson.core.JsonEncoding UTF8 public static final enum com.fasterxml.jackson. ...