Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for delimiters (0.16 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

      }
    }
    
    /**
     * Consumes and returns a non-empty token, terminating at special characters in
     * [TOKEN_DELIMITERS]. Returns null if the buffer is empty or prefixed with a delimiter.
     */
    private fun Buffer.readToken(): String? {
      var tokenSize = indexOfElement(TOKEN_DELIMITERS)
      if (tokenSize == -1L) tokenSize = size
    
      return when {
        tokenSize != 0L -> readUtf8(tokenSize)
        else -> null
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    /**
     * Returns the index of the first character in this string that contains a character in
     * [delimiters]. Returns endIndex if there is no such character.
     */
    fun String.delimiterOffset(
      delimiters: String,
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
      for (i in startIndex until endIndex) {
        if (this[i] in delimiters) return i
      }
      return endIndex
    }
    
    /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/SplitterTest.java

        assertThat(m).isEqualTo(expected);
        assertThat(m.entrySet()).containsExactlyElementsIn(expected.entrySet()).inOrder();
      }
    
      public void testMapSplitter_CharacterSeparator() {
        // try different delimiters.
        Map<String, String> m =
            Splitter.on(",").withKeyValueSeparator(':').split("boy:tom,girl:tina,cat:kitty,dog:tommy");
        ImmutableMap<String, String> expected =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

      var i = pos
      while (i < limit) {
        if (b == address.size) return null // Too many groups.
    
        // Read a delimiter.
        if (i + 2 <= limit && input.startsWith("::", startIndex = i)) {
          // Compression "::" delimiter, which is anywhere in the input, including its prefix.
          if (compress != -1) return null // Multiple "::" delimiters.
          i += 2
          b += 2
          compress = b
          if (i == limit) break
        } else if (b != 0) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/SplitterTest.java

        assertThat(m).isEqualTo(expected);
        assertThat(m.entrySet()).containsExactlyElementsIn(expected.entrySet()).inOrder();
      }
    
      public void testMapSplitter_CharacterSeparator() {
        // try different delimiters.
        Map<String, String> m =
            Splitter.on(",").withKeyValueSeparator(':').split("boy:tom,girl:tina,cat:kitty,dog:tommy");
        ImmutableMap<String, String> expected =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  6. cmd/generic-handlers.go

    			atomic.AddUint64(&globalHTTPStats.rejectedRequestsInvalid, 1)
    			return
    		}
    		// Check for bad components in URL query values.
    		for k, vv := range r.Form {
    			if k == "delimiter" { // delimiters are allowed to have `.` or `..`
    				continue
    			}
    			for _, v := range vv {
    				if hasBadPathComponent(v) {
    					if ok {
    						tc.FuncName = "handler.ValidRequest"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/InetAddresses.java

      private static final int IPV6_PART_COUNT = 8;
      private static final char IPV4_DELIMITER = '.';
      private static final char IPV6_DELIMITER = ':';
      private static final CharMatcher IPV4_DELIMITER_MATCHER = CharMatcher.is(IPV4_DELIMITER);
      private static final CharMatcher IPV6_DELIMITER_MATCHER = CharMatcher.is(IPV6_DELIMITER);
      private static final Inet4Address LOOPBACK4 = (Inet4Address) forString("127.0.0.1");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  8. cmd/object-api-listobjects_test.go

    		2: "empty-bucket",
    		// Listing the case where the marker > last object.
    		3: "test-bucket-single-object",
    		// Listing uncommon delimiter.
    		4: "test-bucket-delimiter",
    		// Listing prefixes > maxKeys
    		5: "test-bucket-max-keys-prefixes",
    		// Listing custom delimiters
    		6: "test-bucket-custom-delimiter",
    	}
    	for _, bucket := range testBuckets {
    		err := obj.MakeBucket(context.Background(), bucket, MakeBucketOptions{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  9. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

        // Skip comment and empty lines.
        when (select(optionsDelimiter)) {
          DELIMITER_HASH -> {
            skipRestOfLine()
            continue
          }
    
          DELIMITER_NEWLINE -> {
            continue
          }
    
          DELIMITER_DOT, DELIMITER_SPACE, DELIMITER_SEMICOLON -> {
            throw IOException("unexpected delimiter")
          }
        }
    
        // "002F" or "0000..002C"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  10. cmd/object_api_suite_test.go

    			t.Errorf("%s: Expected the object name to be `%s`, but instead found `%s`", instanceType, "newPrefix", result.Objects[4].Name)
    		}
    	}
    
    	// check delimited results with delimiter and prefix.
    	{
    		_, err = obj.PutObject(context.Background(), "bucket", "this/is/delimited", mustGetPutObjReader(t, bytes.NewBufferString(uploadContent), int64(len(uploadContent)), "", ""), opts)
    		if err != nil {
    			t.Fatalf("%s: <ERROR> %s", instanceType, err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
Back to top