Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 620 for charlen (0.03 seconds)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/ConsoleIcon.java

        }
    
        /**
         * Gets the charset used by the terminal for output.
         * Falls back to the system default charset if terminal charset is not available.
         *
         * @param terminal the terminal to get the charset from
         * @return the terminal's output charset or the system default charset
         */
        private static Charset getTerminalCharset(Terminal terminal) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeJvmTest.kt

          "UTF-8",
          noCharset.charset(Charsets.UTF_8)!!.name(),
        )
        assertEquals(
          "US-ASCII",
          noCharset.charset(Charsets.US_ASCII)!!.name(),
        )
        val charset = parse("text/plain; charset=iso-8859-1")
        assertEquals(
          "ISO-8859-1",
          charset.charset(Charsets.UTF_8)!!.name(),
        )
        assertEquals(
          "ISO-8859-1",
          charset.charset(Charsets.US_ASCII)!!.name(),
        )
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 3K bytes
    - Click Count (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/ConsoleIconTest.java

        void shouldHandleNullTerminal() {
            // Should fall back to system default charset
            for (ConsoleIcon icon : ConsoleIcon.values()) {
                String result = icon.getIcon(null);
                assertNotNull(result, "Icon result should not be null for " + icon);
    
                // Result should be either Unicode or ASCII fallback depending on default charset
                String expectedUnicode = String.valueOf(icon.getUnicodeChar());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Jul 15 09:35:08 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  4. guava/src/com/google/common/io/Resources.java

       * @param url the URL to read from
       * @param charset the charset used to decode the input stream; see {@link StandardCharsets} for
       *     helpful predefined constants
       * @return a string containing all the characters from the URL
       * @throws IOException if an I/O error occurs.
       */
      public static String toString(URL url, Charset charset) throws IOException {
        return asCharSource(url, charset).read();
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  5. fess-crawler-lasta/src/main/resources/crawler/client.xml

    	</component>
    
    	<component name="s3Client"
    		class="org.codelibs.fess.crawler.client.s3.S3Client" instance="prototype">
    		<property name="charset">"UTF-8"</property>
    	</component>
    
    	<component name="gcsClient"
    		class="org.codelibs.fess.crawler.client.gcs.GcsClient" instance="prototype">
    		<property name="charset">"UTF-8"</property>
    	</component>
    
    	<component name="crawlerClientCreator"
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Dec 11 08:38:29 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/net/MediaType.java

       * charset} parameter set to the {@link Charset#name name} of the given charset. Only one {@code
       * charset} parameter will be present on the new instance regardless of the number set on this
       * one.
       *
       * <p>If a charset must be specified that is not supported on this JVM (and thus is not
       * representable as a {@link Charset} instance), use {@link #withParameter}.
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeTest.kt

        val mediaType = parse("text/plain; charset=utf-8; charset=UTF-8")
        assertEquals("UTF-8", mediaType.charsetName())
      }
    
      @Test fun testMultipleCharsetsReturnsFirstMatch() {
        val mediaType = parse("text/plain; charset=utf-8; charset=utf-16")
        assertEquals("UTF-8", mediaType.charsetName())
      }
    
      /**
       * This is invalid according to RFC 822. But it's what Chrome does and it avoids a potentially
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 7.5K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/internal.kt

      }
    
    internal fun MediaType?.chooseCharset(): Pair<Charset, MediaType?> {
      var charset: Charset = Charsets.UTF_8
      var finalContentType: MediaType? = this
      if (this != null) {
        val resolvedCharset = this.charset()
        if (resolvedCharset == null) {
          charset = Charsets.UTF_8
          finalContentType = "$this; charset=utf-8".toMediaTypeOrNull()
        } else {
          charset = resolvedCharset
        }
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri May 30 21:28:20 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/io/ByteSink.java

        }
      }
    
      /**
       * A char sink that encodes written characters with a charset and writes resulting bytes to this
       * byte sink.
       */
      private final class AsCharSink extends CharSink {
    
        private final Charset charset;
    
        private AsCharSink(Charset charset) {
          this.charset = checkNotNull(charset);
        }
    
        @Override
        public Writer openStream() throws IOException {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 4.9K bytes
    - Click Count (0)
  10. guava/src/com/google/common/io/ByteSink.java

        }
      }
    
      /**
       * A char sink that encodes written characters with a charset and writes resulting bytes to this
       * byte sink.
       */
      private final class AsCharSink extends CharSink {
    
        private final Charset charset;
    
        private AsCharSink(Charset charset) {
          this.charset = checkNotNull(charset);
        }
    
        @Override
        public Writer openStream() throws IOException {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 4.9K bytes
    - Click Count (0)
Back to Top