Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toAscii (0.15 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolver.java

         * Converts the given host string to ASCII using IDN.
         *
         * @param host the host string to convert
         * @return the ASCII representation of the host string
         */
        protected String toAscii(final String host) {
            return IDN.toASCII(decode(host), flag);
        }
    
        /**
         * Sets the flag for IDN conversion.
         *
         * @param flag the flag to set
         */
        public void setFlag(final int flag) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. src/archive/tar/strconv.go

    func isASCII(s string) bool {
    	for _, c := range s {
    		if c >= 0x80 || c == 0x00 {
    			return false
    		}
    	}
    	return true
    }
    
    // toASCII converts the input to an ASCII C-style string.
    // This is a best effort conversion, so invalid characters are dropped.
    func toASCII(s string) string {
    	if isASCII(s) {
    		return s
    	}
    	b := make([]byte, 0, len(s))
    	for _, c := range s {
    		if c < 0x80 && c != 0x00 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

              assertEquals(
                true,
                ioe.cause
                  ?.cause
                  ?.message
                  ?.startsWith("Invalid input to toASCII"),
              )
            }
            else -> throw ioe
          }
        }
      }
    
      @Test
      @Disabled("breaks conscrypt test")
      fun testBouncyCastleRequest() {
        assumeNetwork()
    
        try {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
Back to top