Home
last modified time | relevance | path

Searched refs:UTF_8 (Results 1 – 25 of 49) sorted by relevance

12

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DDecodeUtf8Test.java171 byte[] bytes = "The quick brown fox jumps over the lazy dog".getBytes(Internal.UTF_8); in testInvalidBufferSlice()
285 byte[] bytes = str.getBytes(Internal.UTF_8); in assertRoundTrips()
289 assertDecode(new String(bytes, index, size, Internal.UTF_8), in assertRoundTrips()
291 assertDecode(new String(bytes, index, size, Internal.UTF_8), in assertRoundTrips()
297 assertDecode(new String(bytes, index, size, Internal.UTF_8), in assertRoundTrips()
299 assertDecode(new String(bytes, index, size, Internal.UTF_8), in assertRoundTrips()
305 assertDecode(new String(bytes, index, size, Internal.UTF_8), in assertRoundTrips()
307 assertDecode(new String(bytes, index, size, Internal.UTF_8), in assertRoundTrips()
DBoundedByteStringTest.java64 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testToString()
71 String roundTripString = chopped.toString(UTF_8); in testToString()
81 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testCharsetToString()
88 String roundTripString = chopped.toString(Internal.UTF_8); in testCharsetToString()
DRopeByteStringTest.java135 String roundTripString = unicode.toString(UTF_8); in testToString()
164 String roundTripString = unicode.toString(Internal.UTF_8); in testCharsetToString()
180 ByteString.EMPTY.toString(Internal.UTF_8), in testToString_returnsCanonicalEmptyString()
181 ropeByteString.toString(Internal.UTF_8)); in testToString_returnsCanonicalEmptyString()
DLiteralByteStringTest.java58 protected static final String UTF_8 = "UTF-8"; field in LiteralByteStringTest
420 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testToString()
421 String roundTripString = unicode.toString(UTF_8); in testToString()
427 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testCharsetToString()
428 String roundTripString = unicode.toString(Internal.UTF_8); in testCharsetToString()
435 ByteString.EMPTY.toString(Internal.UTF_8), in testToString_returnsCanonicalEmptyString()
436 ByteString.wrap(new byte[] {}).toString(Internal.UTF_8)); in testToString_returnsCanonicalEmptyString()
DNioByteStringTest.java33 import static com.google.protobuf.Internal.UTF_8;
435 String roundTripString = unicode.toString(UTF_8); in testToString()
442 String roundTripString = unicode.toString(UTF_8); in testCharsetToString()
449 EMPTY.toString(UTF_8), in testToString_returnsCanonicalEmptyString()
450 new NioByteString(ByteBuffer.wrap(new byte[0])).toString(UTF_8)); in testToString_returnsCanonicalEmptyString()
636 return new NioByteString(ByteBuffer.wrap(str.getBytes(UTF_8))); in forString()
DRopeByteStringSubstringTest.java91 String roundTripString = unicode.toString(UTF_8); in testToString()
124 String roundTripString = unicode.toString(Internal.UTF_8); in testCharsetToString()
DIsValidUtf8TestUtil.java270 String s = new String(bytes, Internal.UTF_8);
271 byte[] bytesReencoded = s.getBytes(Internal.UTF_8);
361 Internal.UTF_8
366 Internal.UTF_8
DWrappersLiteOfMethodTest.java48 builder.setFieldBytes(BytesValue.of(ByteString.wrap("233".getBytes(Internal.UTF_8)))); in testOf()
DWrappersOfMethodTest.java48 builder.setFieldBytes(BytesValue.of(ByteString.wrap("233".getBytes(Internal.UTF_8)))); in testOf()
DByteStringTest.java181 byte[] testBytes = testString.getBytes(Internal.UTF_8); in testCopyFrom_Utf8()
483 byte[] testBytes = testString.getBytes(Internal.UTF_8); in testToStringUtf8()
491 ByteString.copyFrom("Here are some bytes: \t\u00a1".getBytes(Internal.UTF_8)).toString(); in testToString()
500 .getBytes(Internal.UTF_8)) in testToString_long()
/third_party/libphonenumber/java/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java21 import static java.nio.charset.StandardCharsets.UTF_8;
79 phoneNumber = Streams.asString(in, UTF_8.name()); in doPost()
104 resp.setCharacterEncoding(UTF_8.name()); in doPost()
133 resp.setCharacterEncoding(UTF_8.name()); in doGet()
206 "?number=" + URLEncoder.encode(phoneNumber != null ? phoneNumber : "", UTF_8.name())); in getPermaLinkURL()
208 permaLink.append("&country=" + URLEncoder.encode(defaultCountry, UTF_8.name())); in getPermaLinkURL()
213 "&geocodingLocale=" + URLEncoder.encode(geocodingLocale.toLanguageTag(), UTF_8.name())); in getPermaLinkURL()
236 newIssueLink += URLEncoder.encode(issueTitle, UTF_8.name()); in getNewIssueLink()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
DDebugWriter.java5 import static java.nio.charset.StandardCharsets.UTF_8;
83 .readConfiguration(new ByteArrayInputStream(loggerConfig.getBytes(UTF_8))); in writeMultipleForDebugging()
95 return ImmutableList.copyOf(CharStreams.readLines(new InputStreamReader(in, UTF_8))); in readLinesFromResource()
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/metadata/init/
DMetadataParserTest.java19 import static java.nio.charset.StandardCharsets.UTF_8;
61 final InputStream invalidInput = new ByteArrayInputStream("Some random input".getBytes(UTF_8)); in test_parse_shouldThrowExceptionForInvalidInput()
/third_party/libphonenumber/tools/java/cpp-build/src/com/google/i18n/phonenumbers/
DBuildMetadataCppFromXml.java173 metadata.outputHeaderFile(new OutputStreamWriter(headerStream, UTF_8)); in start()
174 metadata.outputSourceFile(new OutputStreamWriter(sourceStream, UTF_8)); in start()
219 private static final Charset UTF_8 = Charset.forName("UTF-8"); field in BuildMetadataCppFromXml
/third_party/flatbuffers/java/com/google/flatbuffers/
DUtf8Old.java40 encoder = StandardCharsets.UTF_8.newEncoder(); in Cache()
41 decoder = StandardCharsets.UTF_8.newDecoder(); in Cache()
DFlexBuffersBuilder.java201 byte[] keyBytes = key.getBytes(StandardCharsets.UTF_8); in putKey()
209 byte[] keyBytes = key.getBytes(StandardCharsets.UTF_8); in putKey()
378 return writeBlob(key, s.getBytes(StandardCharsets.UTF_8), FBT_STRING, true); in writeString()
/third_party/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/
DBuildMetadataCppFromXmlTest.java143 private static final Charset UTF_8 = Charset.forName("UTF-8"); field in BuildMetadataCppFromXmlTest.MockedCommand
179 return new String(headerOut.toByteArray(), UTF_8); in capturedHeaderFile()
182 return new String(sourceOut.toByteArray(), UTF_8); in capturedSourceFile()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DInternal.java58 static final Charset UTF_8 = Charset.forName("UTF-8"); field in Internal
100 return new String(bytes.getBytes(ISO_8859_1), UTF_8); in stringDefaultValue()
186 return value.getBytes(UTF_8); in toByteArray()
191 return new String(bytes, UTF_8); in toStringUtf8()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/
DCleanOutputDirectoryTask.java8 import static java.nio.charset.StandardCharsets.UTF_8;
237 try (BufferedReader r = Files.newBufferedReader(path, UTF_8)) { in wasAutoGenerated() argument
337 return ImmutableList.copyOf(CharStreams.readLines(new InputStreamReader(in, UTF_8))); in readLinesFromResource()
/third_party/qrcodegen/java/
DQrCodeGeneratorDemo.java69 svg.getBytes(StandardCharsets.UTF_8)); in doBasicDemo()
127 QrSegment.makeBytes(golden0.getBytes(StandardCharsets.UTF_8)), in doSegmentDemo()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/mapper/
DTransformsMapper.java7 import static java.nio.charset.StandardCharsets.UTF_8;
95 return new PrintWriter(Files.newBufferedWriter(file, UTF_8, CREATE_NEW)); in process()
/third_party/mindspore/mindspore/lite/java/java/fl_client/src/main/java/com/mindspore/flclient/model/
DCustomTokenizer.java104 vocabLines = Files.readAllLines(vocabPath, StandardCharsets.UTF_8); in init()
112 idsLines = Files.readAllLines(idsPath, StandardCharsets.UTF_8); in init()
/third_party/musl/porting/uniproton/kernel/src/locale/
Diconv.c18 #define UTF_8 0310 macro
258 case UTF_8: in iconv()
535 case UTF_8: in iconv()
/third_party/musl/src/locale/
Diconv.c18 #define UTF_8 0310 macro
257 case UTF_8: in iconv()
534 case UTF_8: in iconv()
/third_party/musl/porting/liteos_m/kernel/src/locale/
Diconv.c18 #define UTF_8 0310 macro
258 case UTF_8: in iconv()
535 case UTF_8: in iconv()

12