/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | DecodeUtf8Test.java | 171 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()
|
D | BoundedByteStringTest.java | 64 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()
|
D | RopeByteStringTest.java | 135 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()
|
D | LiteralByteStringTest.java | 58 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()
|
D | NioByteStringTest.java | 33 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()
|
D | RopeByteStringSubstringTest.java | 91 String roundTripString = unicode.toString(UTF_8); in testToString() 124 String roundTripString = unicode.toString(Internal.UTF_8); in testCharsetToString()
|
D | IsValidUtf8TestUtil.java | 270 String s = new String(bytes, Internal.UTF_8); 271 byte[] bytesReencoded = s.getBytes(Internal.UTF_8); 361 Internal.UTF_8 366 Internal.UTF_8
|
D | WrappersLiteOfMethodTest.java | 48 builder.setFieldBytes(BytesValue.of(ByteString.wrap("233".getBytes(Internal.UTF_8)))); in testOf()
|
D | WrappersOfMethodTest.java | 48 builder.setFieldBytes(BytesValue.of(ByteString.wrap("233".getBytes(Internal.UTF_8)))); in testOf()
|
D | ByteStringTest.java | 181 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/ |
D | PhoneNumberParserServlet.java | 21 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/ |
D | DebugWriter.java | 5 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/ |
D | MetadataParserTest.java | 19 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/ |
D | BuildMetadataCppFromXml.java | 173 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/ |
D | Utf8Old.java | 40 encoder = StandardCharsets.UTF_8.newEncoder(); in Cache() 41 decoder = StandardCharsets.UTF_8.newDecoder(); in Cache()
|
D | FlexBuffersBuilder.java | 201 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/ |
D | BuildMetadataCppFromXmlTest.java | 143 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/ |
D | Internal.java | 58 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/ |
D | CleanOutputDirectoryTask.java | 8 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/ |
D | QrCodeGeneratorDemo.java | 69 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/ |
D | TransformsMapper.java | 7 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/ |
D | CustomTokenizer.java | 104 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/ |
D | iconv.c | 18 #define UTF_8 0310 macro 258 case UTF_8: in iconv() 535 case UTF_8: in iconv()
|
/third_party/musl/src/locale/ |
D | iconv.c | 18 #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/ |
D | iconv.c | 18 #define UTF_8 0310 macro 258 case UTF_8: in iconv() 535 case UTF_8: in iconv()
|