Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 982 for utf8 (0.28 seconds)

  1. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertThat(Files.readFirstLine(temp, UTF_8)).isNull();
        assertTrue(Files.readLines(temp, UTF_8).isEmpty());
    
        PrintWriter w = new PrintWriter(Files.newWriter(temp, UTF_8));
        w.println("hello");
        w.println("");
        w.println(" world  ");
        w.println("");
        w.close();
    
        assertThat(Files.readFirstLine(temp, UTF_8)).isEqualTo("hello");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/ConsoleIconTest.java

    @DisplayName("ConsoleIcon")
    class ConsoleIconTest {
    
        @Test
        @DisplayName("should return Unicode icons when terminal supports UTF-8")
        void shouldReturnUnicodeWhenTerminalSupportsUtf8() {
            Terminal mockTerminal = mock(Terminal.class);
            when(mockTerminal.encoding()).thenReturn(StandardCharsets.UTF_8);
    
            assertEquals("✓", ConsoleIcon.SUCCESS.getIcon(mockTerminal));
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt

                    "Content-Transfer-Encoding",
                    "binary",
                  ),
                  "... contents of file2.gif ..."
                    .toByteArray(StandardCharsets.UTF_8)
                    .toRequestBody("image/gif".toMediaType()),
                ).build(),
            ).build()
        assertThat(body.boundary).isEqualTo("AaB03x")
        assertThat(body.type).isEqualTo(MultipartBody.FORM)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/url/-Url.kt

        ) {
          // Percent encode this character.
          if (encodedCharBuffer == null) {
            encodedCharBuffer = Buffer()
          }
    
          if (charset == null || charset == Charsets.UTF_8) {
            encodedCharBuffer.writeUtf8CodePoint(codePoint)
          } else {
            encodedCharBuffer.writeString(input, i, i + Character.charCount(codePoint), charset)
          }
    
          while (!encodedCharBuffer.exhausted()) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  5. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt

            val title = parameters.title.get()
            htmlReport.parentFile.mkdirs()
            htmlReport.printWriter(Charsets.UTF_8).use { writer ->
                writer.println(
                    """<html lang="en">
        <head>
           <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
           <title>Incubating APIs for $title</title>
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jun 02 09:57:54 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

              } else if (labelBytesLeft > publicSuffixBytesLeft) {
                low = mid + end + 1
              } else {
                // Found a match.
                match = this.substring(mid, mid + publicSuffixLength).string(Charsets.UTF_8)
                break
              }
            }
          }
          return match
        }
    
        internal fun resetForTests() {
          instance = PublicSuffixDatabase(PublicSuffixList.Default)
        }
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jul 28 07:33:49 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/net/MediaType.java

       * media type this method does not consider the number of occurrences of a parameter. For example,
       * {@code "text/plain; charset=UTF-8"} satisfies {@code "text/plain; charset=UTF-8;
       * charset=UTF-8"}.
       */
      public boolean is(MediaType mediaTypeRange) {
        return (mediaTypeRange.type.equals(WILDCARD) || mediaTypeRange.type.equals(this.type))
            && (mediaTypeRange.subtype.equals(WILDCARD) || mediaTypeRange.subtype.equals(this.subtype))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/job/IndexExportJobTest.java

            final Path file = tempDir.resolve("example.com/page.html");
            assertTrue(Files.exists(file));
            try {
                final String html = Files.readString(file, StandardCharsets.UTF_8);
                assertFalse(html.contains("fess:cache"));
                assertTrue(html.contains("fess:host"));
            } catch (final IOException e) {
                fail("Failed to read exported file: " + e.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 09:08:38 GMT 2026
    - 66.1K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        assertStringHash(0, "", UTF_8);
        assertStringHash(0xcfbda5d1, "k", UTF_8);
        assertStringHash(0xa167dbf3, "hell", UTF_8);
        assertStringHash(0x248bfa47, "hello", UTF_8);
        assertStringHash(0x3d41b97c, "http://www.google.com/", UTF_8);
        assertStringHash(0x2e4ff723, "The quick brown fox jumps over the lazy dog", UTF_8);
        assertStringHash(0xb5a4be05, "ABCDefGHI\u0799", UTF_8);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/crawler/helper/FessMimeTypeHelperTest.java

            try (InputStream is = new ByteArrayInputStream(SQL_REM_CONTENT.getBytes(StandardCharsets.UTF_8))) {
                assertEquals("text/x-sql", mimeTypeHelper.getContentType(is, "test.sql"));
            }
            try (InputStream is = new ByteArrayInputStream(SQL_REM_CONTENT.getBytes(StandardCharsets.UTF_8))) {
                assertEquals("text/x-plsql", mimeTypeHelper.getContentType(is, "package.plsql"));
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jan 24 09:06:33 GMT 2026
    - 12.1K bytes
    - Click Count (0)
Back to Top