Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for canonicalize (0.28 sec)

  1. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

            }
          }
    
        fun username(username: String) =
          apply {
            this.encodedUsername = username.canonicalize(encodeSet = USERNAME_ENCODE_SET)
          }
    
        fun encodedUsername(encodedUsername: String) =
          apply {
            this.encodedUsername =
              encodedUsername.canonicalize(
                encodeSet = USERNAME_ENCODE_SET,
                alreadyEncoded = true,
              )
          }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  2. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

          }
        }
    
      private fun testParseAlreadyEncoded(
        codePoint: Int,
        encoding: Encoding,
        component: Component,
      ) {
        val expected = component.canonicalize(encoding.encode(codePoint))
        val urlString = component.urlString(expected)
        val url = urlString.toHttpUrl()
        val actual = component.encodedValue(url)
        if (actual != expected) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/TypeToken.java

       *       extends Enum<?>>} canonicalizes to {@code Enum<?>}, which is a supertype (if we disregard
       *       the upper bound is implicitly an Enum too).
       *   <li>If {@code canonicalize(A) == canonicalize(B)}, then {@code Foo<A>.isSubtypeOf(Foo<B>)}
       *       and vice versa. i.e. {@code A.is(B)} and {@code B.is(A)}.
       *   <li>{@code canonicalize(canonicalize(A)) == canonicalize(A)}.
       * </ol>
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/endtoend_test.go

    			}
    		}
    
    		if hexes != "" {
    			hexByLine[fmt.Sprintf("%s:%d", input, lineno)] = hexes
    		}
    
    		// Canonicalize spacing in printed form.
    		// First field is opcode, then tab, then arguments separated by spaces.
    		// Canonicalize spaces after commas first.
    		// Comma to separate argument gets a space; comma within does not.
    		var buf []byte
    		nest := 0
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

          writeByte(' '.code)
          i++
          continue
        }
        writeUtf8CodePoint(codePoint)
        i += Character.charCount(codePoint)
      }
    }
    
    internal fun String.canonicalize(
      pos: Int = 0,
      limit: Int = length,
      encodeSet: String,
      alreadyEncoded: Boolean = false,
      strict: Boolean = false,
      plusIsSpace: Boolean = false,
      unicodeAllowed: Boolean = false,
    ): String {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  6. internal/lock/lock_windows.go

    	// \\server\share paths are not converted to
    	// \\?\UNC\server\share paths because the rules for doing so
    	// are less well-specified.
    	if len(path) >= 2 && path[:2] == `\\` {
    		// Don't canonicalize UNC paths.
    		return path
    	}
    	if !filepath.IsAbs(path) {
    		// Relative path
    		return path
    	}
    
    	const prefix = `\\?`
    
    	pathbuf := make([]byte, len(prefix)+len(path)+len(`\`))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

        .writeDecimalLong((address[3] and 0xff).toLong())
        .readUtf8()
    }
    
    /**
     * If this is an IP address, this returns the IP address in canonical form.
     *
     * Otherwise, this performs IDN ToASCII encoding and canonicalize the result to lowercase. For
     * example this converts `☃.net` to `xn--n3h.net`, and `WwW.GoOgLe.cOm` to `www.google.com`.
     * `null` will be returned if the host cannot be ToASCII encoded or if the result contains
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. cmd/handler-utils.go

    	if v == nil {
    		bugLogIf(ctx, errInvalidArgument)
    		return errInvalidArgument
    	}
    
    	nv := make(textproto.MIMEHeader, len(v))
    	for k, kv := range v {
    		// Canonicalize all headers, to remove any duplicates.
    		nv[http.CanonicalHeaderKey(k)] = kv
    	}
    
    	// Save all supported headers.
    	for _, supportedHeader := range supportedHeaders {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  9. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                            result.getProblems().add(problem);
                            continue;
                        }
    
                        if (Os.IS_WINDOWS) {
                            // we don't canonicalize on unix to avoid interfering with symlinks
                            try {
                                moduleFile = moduleFile.getCanonicalFile();
                            } catch (IOException e) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  10. cmd/bucket-handlers.go

    	var (
    		reader        io.Reader
    		fileSize      int64 = -1
    		fileName      string
    		fanOutEntries = make([]minio.PutObjectFanOutEntry, 0, 100)
    	)
    
    	maxParts := 1000
    	// Canonicalize the form values into http.Header.
    	formValues := make(http.Header)
    	for {
    		part, err := mp.NextRawPart()
    		if errors.Is(err, io.EOF) {
    			break
    		}
    		if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
Back to top