Home
last modified time | relevance | path

Searched refs:UTF_8 (Results 1 - 25 of 50) sorted by relevance

12

/third_party/libphonenumber/java/demo/src/main/java/com/google/phonenumbers/demo/helper/
H A DWebHelper.java21 import static java.nio.charset.StandardCharsets.UTF_8;
42 "?number=" + URLEncoder.encode(phoneNumber != null ? phoneNumber : "", UTF_8.name())); in getPermaLinkURL()
44 permaLink.append("&country=" + URLEncoder.encode(defaultCountry, UTF_8.name())); in getPermaLinkURL()
49 "&geocodingLocale=" + URLEncoder.encode(geocodingLocale.toLanguageTag(), UTF_8.name())); in getPermaLinkURL()
69 newIssueLink += URLEncoder.encode(issueTitle, UTF_8.name()); in getNewIssueLink()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A DRopeByteStringSubstringTest.java91 String roundTripString = unicode.toString(UTF_8); in testToString()
124 String roundTripString = unicode.toString(Internal.UTF_8); in testCharsetToString()
H A DIsValidUtf8TestUtil.java270 String s = new String(bytes, Internal.UTF_8); in testBytes()
271 byte[] bytesReencoded = s.getBytes(Internal.UTF_8); in testBytes()
361 Internal.UTF_8 in testBytesUsingByteBuffers()
366 Internal.UTF_8 in testBytesUsingByteBuffers()
H A DWrappersLiteOfMethodTest.java48 builder.setFieldBytes(BytesValue.of(ByteString.wrap("233".getBytes(Internal.UTF_8)))); in testOf()
H A DWrappersOfMethodTest.java48 builder.setFieldBytes(BytesValue.of(ByteString.wrap("233".getBytes(Internal.UTF_8)))); in testOf()
H A 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/main/java/com/google/phonenumbers/demo/
H A DResultServlet.java21 import static java.nio.charset.StandardCharsets.UTF_8;
71 phoneNumber = Streams.asString(in, UTF_8.name()); in doPost()
95 resp.setCharacterEncoding(UTF_8.name()); in doPost()
125 resp.setCharacterEncoding(UTF_8.name()); in doGet()
H A DInputServlet.java21 import static java.nio.charset.StandardCharsets.UTF_8;
41 resp.setCharacterEncoding(UTF_8.name()); in doGet()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
H A 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/tools/java/cpp-build/src/com/google/i18n/phonenumbers/
H A 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/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/metadata/init/
H A 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/test/com/google/i18n/phonenumbers/
H A 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/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/
H A DCleanOutputDirectoryTask.java8 import static java.nio.charset.StandardCharsets.UTF_8;
237 try (BufferedReader r = Files.newBufferedReader(path, UTF_8)) { in wasAutoGenerated()
338 return ImmutableList.copyOf(CharStreams.readLines(new InputStreamReader(in, UTF_8))); in readLinesFromResource()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
H A 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/mapper/
H A 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/qrcodegen/java/
H A DQrCodeGeneratorDemo.java69 svg.getBytes(StandardCharsets.UTF_8)); in doBasicDemo()
127 QrSegment.makeBytes(golden0.getBytes(StandardCharsets.UTF_8)), in doSegmentDemo()
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
H A DQrCodeGeneratorDemo.java68 svg.getBytes(StandardCharsets.UTF_8)); in doBasicDemo()
126 QrSegment.makeBytes(golden0.getBytes(StandardCharsets.UTF_8)), in doSegmentDemo()
/third_party/musl/porting/uniproton/kernel/src/locale/
H A Diconv.c18 #define UTF_8 0310 macro
258 case UTF_8: in iconv()
535 case UTF_8: in iconv()
/third_party/musl/porting/liteos_m/kernel/src/locale/
H A Diconv.c18 #define UTF_8 0310 macro
258 case UTF_8: in iconv()
535 case UTF_8: in iconv()
/third_party/musl/src/locale/
H A Diconv.c18 #define UTF_8 0310 macro
257 case UTF_8: in iconv()
534 case UTF_8: in iconv()

Completed in 16 milliseconds

12