Home
last modified time | relevance | path

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

12345678910>>...19

/external/guava/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java19 import static com.google.common.base.Charsets.UTF_8;
45 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacMD5");
47 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA1");
49 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA256");
51 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512");
96 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdates()
97 mac.update("world".getBytes(UTF_8)); in testMultipleUpdates()
103 .putString("hello", UTF_8) in testMultipleUpdates()
104 .putString("world", UTF_8) in testMultipleUpdates()
111 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdatesDoFinal()
[all …]
DMurmur3Hash32Test.java55 assertHash(0, murmur3_32().hashString("", Charsets.UTF_8)); in testKnownUtf8StringInputs()
56 assertHash(0xcfbda5d1, murmur3_32().hashString("k", Charsets.UTF_8)); in testKnownUtf8StringInputs()
57 assertHash(0xa167dbf3, murmur3_32().hashString("hell", Charsets.UTF_8)); in testKnownUtf8StringInputs()
58 assertHash(0x248bfa47, murmur3_32().hashString("hello", Charsets.UTF_8)); in testKnownUtf8StringInputs()
59 assertHash(0x3d41b97c, murmur3_32().hashString("http://www.google.com/", Charsets.UTF_8)); in testKnownUtf8StringInputs()
62 murmur3_32().hashString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8)); in testKnownUtf8StringInputs()
63 assertHash(0xfc5ba834, murmur3_32().hashString("毎月1日,毎週月曜日", Charsets.UTF_8)); in testKnownUtf8StringInputs()
69 murmur3_32().hashBytes("ABCDefGHI\u0799".getBytes(Charsets.UTF_8)), in testSimpleStringUtf8()
70 murmur3_32().hashString("ABCDefGHI\u0799", Charsets.UTF_8)); in testSimpleStringUtf8()
92 murmur3_32().hashBytes(str.getBytes(Charsets.UTF_8)), in testStringInputsUtf8()
[all …]
DCrc32cHashFunctionTest.java17 import static com.google.common.base.Charsets.UTF_8;
84 assertCrc(0x22620404, "The quick brown fox jumps over the lazy dog".getBytes(UTF_8)); in testSomeOtherKnownValues()
85 assertCrc(0xE3069283, "123456789".getBytes(UTF_8)); in testSomeOtherKnownValues()
86 assertCrc(0xf3dbd4fe, "1234567890".getBytes(UTF_8)); in testSomeOtherKnownValues()
87 assertCrc(0xBFE92A83, "23456789".getBytes(UTF_8)); in testSomeOtherKnownValues()
/external/guava/android/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java19 import static com.google.common.base.Charsets.UTF_8;
45 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacMD5");
47 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA1");
49 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA256");
51 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512");
96 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdates()
97 mac.update("world".getBytes(UTF_8)); in testMultipleUpdates()
103 .putString("hello", UTF_8) in testMultipleUpdates()
104 .putString("world", UTF_8) in testMultipleUpdates()
111 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdatesDoFinal()
[all …]
DMurmur3Hash32Test.java55 assertHash(0, murmur3_32().hashString("", Charsets.UTF_8)); in testKnownUtf8StringInputs()
56 assertHash(0xcfbda5d1, murmur3_32().hashString("k", Charsets.UTF_8)); in testKnownUtf8StringInputs()
57 assertHash(0xa167dbf3, murmur3_32().hashString("hell", Charsets.UTF_8)); in testKnownUtf8StringInputs()
58 assertHash(0x248bfa47, murmur3_32().hashString("hello", Charsets.UTF_8)); in testKnownUtf8StringInputs()
59 assertHash(0x3d41b97c, murmur3_32().hashString("http://www.google.com/", Charsets.UTF_8)); in testKnownUtf8StringInputs()
62 murmur3_32().hashString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8)); in testKnownUtf8StringInputs()
63 assertHash(0xfc5ba834, murmur3_32().hashString("毎月1日,毎週月曜日", Charsets.UTF_8)); in testKnownUtf8StringInputs()
69 murmur3_32().hashBytes("ABCDefGHI\u0799".getBytes(Charsets.UTF_8)), in testSimpleStringUtf8()
70 murmur3_32().hashString("ABCDefGHI\u0799", Charsets.UTF_8)); in testSimpleStringUtf8()
92 murmur3_32().hashBytes(str.getBytes(Charsets.UTF_8)), in testStringInputsUtf8()
[all …]
DCrc32cHashFunctionTest.java17 import static com.google.common.base.Charsets.UTF_8;
84 assertCrc(0x22620404, "The quick brown fox jumps over the lazy dog".getBytes(UTF_8)); in testSomeOtherKnownValues()
85 assertCrc(0xE3069283, "123456789".getBytes(UTF_8)); in testSomeOtherKnownValues()
86 assertCrc(0xf3dbd4fe, "1234567890".getBytes(UTF_8)); in testSomeOtherKnownValues()
87 assertCrc(0xBFE92A83, "23456789".getBytes(UTF_8)); in testSomeOtherKnownValues()
DSipHashFunctionTest.java17 import static com.google.common.base.Charsets.UTF_8;
168 assertEquals(expected, SIP_WITH_KEY.hashString(input, UTF_8).asLong()); in assertSip()
169 assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip()
170 assertEquals(expected, SIP_WITHOUT_KEY.hashString(input, UTF_8).asLong()); in assertSip()
171 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip()
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DMainTest.java19 import static java.nio.charset.StandardCharsets.UTF_8;
91 Files.write(path, "class Test {}\n".getBytes(UTF_8)); in preserveOriginalFile()
99 new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out, UTF_8)), true), in preserveOriginalFile()
100 new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.err, UTF_8)), true), in preserveOriginalFile()
119 String err = new String(ByteStreams.toByteArray(process.getErrorStream()), UTF_8); in testMain()
159 InputStream in = new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8)); in javadoc()
164 new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.err, UTF_8)), true), in javadoc()
195 InputStream in = new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8)); in imports()
200 new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.err, UTF_8)), true), in imports()
236 InputStream in = new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8)); in optimizeImportsDoesNotLeaveEmptyLines()
[all …]
DDiagnosticTest.java18 import static java.nio.charset.StandardCharsets.UTF_8;
79 Files.write(path, input.getBytes(UTF_8)); in parseError()
97 Files.write(path, input.getBytes(UTF_8)); in lexError()
117 Files.write(pathOne, one.getBytes(UTF_8)); in oneFileParseError()
120 Files.write(pathTwo, two.getBytes(UTF_8)); in oneFileParseError()
139 Files.write(pathOne, one.getBytes(UTF_8)); in oneFileParseErrorReplace()
142 Files.write(pathTwo, two.getBytes(UTF_8)); in oneFileParseErrorReplace()
149 assertThat(Files.readAllLines(pathOne, UTF_8)).containsExactly("class One {}}"); in oneFileParseErrorReplace()
150 assertThat(Files.readAllLines(pathTwo, UTF_8)).containsExactly("class Two {}"); in oneFileParseErrorReplace()
159 Files.write(path, input.getBytes(StandardCharsets.UTF_8)); in parseError2()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DSourceSinkFactories.java80 return new FileByteSinkFactory(initialString.getBytes(Charsets.UTF_8)); in appendingFileByteSinkFactory()
117 return new PathByteSinkFactory(initialString.getBytes(Charsets.UTF_8)); in appendingPathByteSinkFactory()
141 return factory.createSource(new String(data, Charsets.UTF_8)).asByteSource(Charsets.UTF_8); in asByteSourceFactory()
146 return factory.getExpected(new String(data, Charsets.UTF_8)).getBytes(Charsets.UTF_8); in asByteSourceFactory()
161 return factory.createSource(string.getBytes(Charsets.UTF_8)).asCharSource(Charsets.UTF_8);
166 return new String(factory.getExpected(data.getBytes(Charsets.UTF_8)), Charsets.UTF_8);
181 return factory.createSink().asCharSink(Charsets.UTF_8);
186 return new String(factory.getSinkContents(), Charsets.UTF_8);
196 return new String(factoryExpectedForNothing, Charsets.UTF_8) + checkNotNull(data);
394 Writer writer = new OutputStreamWriter(new FileOutputStream(file), Charsets.UTF_8);
[all …]
DFilesTest.java82 assertSame(byteSource, byteSource.asCharSource(Charsets.UTF_8).asByteSource(Charsets.UTF_8)); in testRoundTripSources()
89 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.toByteArray(i18nFile))); in testToByteArray()
90 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.asByteSource(i18nFile).read())); in testToByteArray()
115 assertEquals(I18N, Files.toString(i18nFile, Charsets.UTF_8)); in testToString()
158 Files.copy(i18nFile, Charsets.UTF_8, sb); in testCopyToAppendable()
166 assertEquals(I18N, Files.toString(temp, Charsets.UTF_8)); in testCopyFile()
173 Files.write(ASCII, temp1, Charsets.UTF_8); in testCopyEqualFiles()
179 assertEquals(ASCII, Files.toString(temp1, Charsets.UTF_8)); in testCopyEqualFiles()
184 Files.write(ASCII, temp, Charsets.UTF_8); in testCopySameFile()
190 assertEquals(ASCII, Files.toString(temp, Charsets.UTF_8)); in testCopySameFile()
[all …]
/external/guava/android/guava-tests/test/com/google/common/io/
DSourceSinkFactories.java77 return new FileByteSinkFactory(initialString.getBytes(Charsets.UTF_8)); in appendingFileByteSinkFactory()
106 return factory.createSource(new String(data, Charsets.UTF_8)).asByteSource(Charsets.UTF_8); in asByteSourceFactory()
111 return factory.getExpected(new String(data, Charsets.UTF_8)).getBytes(Charsets.UTF_8); in asByteSourceFactory()
126 return factory.createSource(string.getBytes(Charsets.UTF_8)).asCharSource(Charsets.UTF_8);
131 return new String(factory.getExpected(data.getBytes(Charsets.UTF_8)), Charsets.UTF_8);
146 return factory.createSink().asCharSink(Charsets.UTF_8);
151 return new String(factory.getSinkContents(), Charsets.UTF_8);
161 return new String(factoryExpectedForNothing, Charsets.UTF_8) + checkNotNull(data);
359 Writer writer = new OutputStreamWriter(new FileOutputStream(file), Charsets.UTF_8);
365 return Files.asCharSource(file, Charsets.UTF_8);
[all …]
DFilesTest.java82 assertSame(byteSource, byteSource.asCharSource(Charsets.UTF_8).asByteSource(Charsets.UTF_8)); in testRoundTripSources()
89 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.toByteArray(i18nFile))); in testToByteArray()
90 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.asByteSource(i18nFile).read())); in testToByteArray()
115 assertEquals(I18N, Files.toString(i18nFile, Charsets.UTF_8)); in testToString()
158 Files.copy(i18nFile, Charsets.UTF_8, sb); in testCopyToAppendable()
166 assertEquals(I18N, Files.toString(temp, Charsets.UTF_8)); in testCopyFile()
173 Files.write(ASCII, temp1, Charsets.UTF_8); in testCopyEqualFiles()
179 assertEquals(ASCII, Files.toString(temp1, Charsets.UTF_8)); in testCopyEqualFiles()
184 Files.write(ASCII, temp, Charsets.UTF_8); in testCopySameFile()
190 assertEquals(ASCII, Files.toString(temp, Charsets.UTF_8)); in testCopySameFile()
[all …]
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/
DCertBlocklistImpl.java20 import static java.nio.charset.StandardCharsets.UTF_8;
184 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlockList()
187 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlockList()
190 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlockList()
193 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlockList()
196 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlockList()
199 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlockList()
203 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlockList()
206 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlockList()
209 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlockList()
[all …]
/external/conscrypt/platform/src/main/java/org/conscrypt/
DCertBlocklistImpl.java19 import static java.nio.charset.StandardCharsets.UTF_8;
180 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlockList()
183 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlockList()
186 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlockList()
189 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlockList()
192 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlockList()
195 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlockList()
199 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlockList()
202 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlockList()
205 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlockList()
[all …]
/external/downloader/src/test/java/com/google/android/downloader/
DProtoFileDownloadDestinationTest.java18 import static java.nio.charset.StandardCharsets.UTF_8;
64 Files.asCharSink(targetFile, UTF_8).write("Hello world"); in numExistingBytes_fileNonEmpty()
96 Files.asCharSink(targetFile, UTF_8).write("Hello world"); in metadata_fileNonEmpty()
124 CharSource.wrap(text).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileEmpty()
127 assertThat(Files.asCharSource(targetFile, UTF_8).read()).isEqualTo(text); in openByteChannel_fileEmpty()
137 Files.asCharSink(targetFile, UTF_8).write(text1); in openByteChannel_fileNonEmpty()
143 CharSource.wrap(text2).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileNonEmpty()
146 assertThat(Files.asCharSource(targetFile, UTF_8).read()).isEqualTo(text1 + text2); in openByteChannel_fileNonEmpty()
172 Files.asCharSink(targetFile, UTF_8).write("existing"); in clear_fileNonEmpty()
180 CharSource.wrap("swallowed").asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel1)); in clear_fileNonEmpty()
[all …]
DSimpleFileDownloadDestinationTest.java18 import static java.nio.charset.StandardCharsets.UTF_8;
64 Files.asCharSink(targetFile, UTF_8).write("Hello world"); in numExistingBytes_fileNonEmpty()
96 Files.asCharSink(targetFile, UTF_8).write("Hello world"); in metadata_fileNonEmpty()
124 CharSource.wrap(text).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileEmpty()
127 assertThat(Files.asCharSource(targetFile, UTF_8).read()).isEqualTo(text); in openByteChannel_fileEmpty()
137 Files.asCharSink(targetFile, UTF_8).write(text1); in openByteChannel_fileNonEmpty()
143 CharSource.wrap(text2).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileNonEmpty()
146 assertThat(Files.asCharSource(targetFile, UTF_8).read()).isEqualTo(text1 + text2); in openByteChannel_fileNonEmpty()
172 Files.asCharSink(targetFile, UTF_8).write("existing"); in clear_fileNonEmpty()
180 CharSource.wrap("swallowed").asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel1)); in clear_fileNonEmpty()
[all …]
/external/llvm-project/flang/include/flang/Parser/
Dcharacters.h29 enum class Encoding { LATIN_1, UTF_8 }; enumerator
189 template <> EncodedCharacter EncodeCharacter<Encoding::UTF_8>(char32_t);
197 extern template std::string EncodeString<Encoding::UTF_8, std::u32string>(
204 bool backslashEscapes = true, Encoding encoding = Encoding::UTF_8) {
243 bool backslashEscapes = true, Encoding = Encoding::UTF_8);
245 bool backslashEscapes = true, Encoding = Encoding::UTF_8);
261 DecodedCharacter DecodeRawCharacter<Encoding::UTF_8>(const char *, std::size_t);
269 extern template DecodedCharacter DecodeCharacter<Encoding::UTF_8>(
279 extern template std::u16string DecodeString<std::u16string, Encoding::UTF_8>(
281 extern template std::u32string DecodeString<std::u32string, Encoding::UTF_8>(
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DSSLUtilsTest.java20 import static com.android.org.conscrypt.TestUtils.UTF_8;
39 "0123456789abcdefghijklmnopqrstuvwxyz".getBytes(UTF_8);
55 SSLUtils.encodeProtocols(new String[] {new String(newValidProtocol(256), UTF_8)}); in longProtocolShouldThrow()
66 "protocol-1".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
67 "protocol-2".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
68 "protocol-3".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
88 "protocol-1".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
89 "protocol-2".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
90 "protocol-3".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
220 out[i] = new String(protocols[i], UTF_8); in toStrings()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DSSLUtilsTest.java19 import static org.conscrypt.TestUtils.UTF_8;
35 "0123456789abcdefghijklmnopqrstuvwxyz".getBytes(UTF_8);
51 SSLUtils.encodeProtocols(new String[] {new String(newValidProtocol(256), UTF_8)}); in longProtocolShouldThrow()
62 "protocol-1".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
63 "protocol-2".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
64 "protocol-3".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
84 "protocol-1".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
85 "protocol-2".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
86 "protocol-3".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
216 out[i] = new String(protocols[i], UTF_8); in toStrings()
/external/caliper/caliper/src/test/java/com/google/caliper/bridge/
DLogMessageParserTest.java21 import static com.google.common.base.Charsets.UTF_8;
58 Resources.getResource(LogMessageParserTest.class, "jdk6-gc.txt"), UTF_8); in gcPatten_jdk6()
66 Resources.getResource(LogMessageParserTest.class, "jdk7-gc.txt"), UTF_8); in gcPatten_jdk7()
87 Resources.getResource(LogMessageParserTest.class, "jdk6-compilation.txt"), UTF_8); in jitPattern_jdk6()
95 Resources.getResource(LogMessageParserTest.class, "jdk7-compilation.txt"), UTF_8); in jitPattern_jdk7()
103 Resources.getResource(LogMessageParserTest.class, "jdk6-flags.txt"), UTF_8); in vmOptionPattern_jdk6()
111 Resources.getResource(LogMessageParserTest.class, "jdk7-flags.txt"), UTF_8); in vmOptionPattern_jdk7()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/metadata/icy/
DIcyDecoderTest.java23 import static java.nio.charset.StandardCharsets.UTF_8;
41 byte[] icyContent = "StreamTitle='test title';StreamURL='test_url';".getBytes(UTF_8); in decode()
55 byte[] icyTitle = "StreamTitle='test title';".getBytes(UTF_8); in decode_respectsLimit()
56 byte[] icyUrl = "StreamURL='test_url';".getBytes(UTF_8); in decode_respectsLimit()
72 byte[] icyContent = "StreamTitle='test title';".getBytes(UTF_8); in decode_titleOnly()
87 .getBytes(UTF_8); in decode_extraTags()
100 byte[] icyContent = "StreamTitle='';StreamURL='test_url';".getBytes(UTF_8); in decode_emptyTitle()
113 byte[] icyContent = "StreamTitle='test; title';StreamURL='test_url';".getBytes(UTF_8); in decode_semiColonInTitle()
126 byte[] icyContent = "StreamTitle='test' title';StreamURL='test_url';".getBytes(UTF_8); in decode_quoteInTitle()
139 byte[] icyContent = "StreamTitle='test\r\ntitle';StreamURL='test_url';".getBytes(UTF_8); in decode_lineTerminatorInTitle()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java5 import static java.nio.charset.StandardCharsets.UTF_8;
96 fos.write("test".getBytes(UTF_8)); in shouldWriteToCacheDir()
112 fos.write("test".getBytes(UTF_8)); in shouldWriteToExternalCacheDir()
158 try (Writer fileWriter = Files.newBufferedWriter(file.toPath(), UTF_8)) { in openFileInput_shouldReturnAFileInputStream() argument
165 assertThat(bytes).isEqualTo(fileContents.getBytes(UTF_8)); in openFileInput_shouldReturnAFileInputStream()
179 fileOutputStream.write(fileContents.getBytes(UTF_8)); in openFileOutput_shouldReturnAFileOutputStream()
184 assertThat(new String(readBuffer, UTF_8)).isEqualTo(fileContents); in openFileOutput_shouldReturnAFileOutputStream()
200 fileOutputStream.write(initialFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData()
203 fileOutputStream.write(appendedFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData()
208 assertThat(new String(readBuffer, UTF_8)).isEqualTo(finalFileContents); in openFileOutput_shouldAppendData()
[all …]
/external/llvm-project/flang/lib/Parser/
Dcharacters.cpp76 template <> EncodedCharacter EncodeCharacter<Encoding::UTF_8>(char32_t ucs) { in EncodeCharacter()
123 case Encoding::UTF_8: in EncodeCharacter()
124 return EncodeCharacter<Encoding::UTF_8>(ucs); in EncodeCharacter()
141 template std::string EncodeString<Encoding::UTF_8, std::u16string>(
143 template std::string EncodeString<Encoding::UTF_8, std::u32string>(
157 DecodedCharacter DecodeRawCharacter<Encoding::UTF_8>( in DecodeRawCharacter()
246 template DecodedCharacter DecodeCharacter<Encoding::UTF_8>(
255 case Encoding::UTF_8: in DecodeCharacter()
256 return DecodeCharacter<Encoding::UTF_8>(cp, bytes, backslashEscapes); in DecodeCharacter()
284 template std::u16string DecodeString<std::u16string, Encoding::UTF_8>(
[all …]
/external/turbine/javatests/com/google/turbine/processing/
DTurbineFilerTest.java21 import static java.nio.charset.StandardCharsets.UTF_8;
72 os.write("hello".getBytes(UTF_8)); in hello()
78 os.write("goodbye".getBytes(UTF_8)); in hello()
93 assertThat(new String(clazz.getValue(), UTF_8)).isEqualTo("goodbye"); in hello()
141 assertThat(new String(ByteStreams.toByteArray(output.openInputStream()), UTF_8)) in sourceOutput()
151 os.write("goodbye".getBytes(UTF_8)); in classOutput()
156 assertThat(new String(ByteStreams.toByteArray(output.openInputStream()), UTF_8)) in classOutput()
167 assertThat(new String(ByteStreams.toByteArray(resource.openInputStream()), UTF_8)) in classpathResources()

12345678910>>...19