Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 1,615 for LENGTH (0.04 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

          when (dot) {
            -1 -> length - labelStart
            else -> dot - labelStart
          }
        if (labelLength !in 1..63) return true
        if (dot == -1) break
        if (dot == length - 1) break // Trailing '.' is allowed.
        labelStart = dot + 1
      }
    
      return false
    }
    
    internal fun String.containsInvalidHostnameAsciiCodes(): Boolean {
      for (i in 0 until length) {
        val c = this[i]
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

        FileSystem.RESOURCES.source(PublicSuffixDatabase.PUBLIC_SUFFIX_RESOURCE).use { resource ->
          GzipSource(resource).buffer().use { source ->
            var length = source.readInt()
            source.skip(length.toLong())
            length = source.readInt()
            buffer.write(source, length.toLong())
          }
        }
        while (!buffer.exhausted()) {
          val exception = buffer.readUtf8LineStrict()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

        val rangesLimit =
          when {
            sectionsIndex + 4 < sections.length -> sections.read14BitInt(sectionsIndex + 6)
            else -> ranges.length / 4
          }
    
        val rangesIndex = findRangesOffset(codePoint, rangesPosition, rangesLimit)
    
        when (val b1 = ranges[rangesIndex + 1].code) {
          in 0..63 -> {
            // Length of the UTF-16 sequence that this range maps to. The offset is b2b3.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Apr 02 11:39:58 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

              && method.getParameterTypes().length == 1
              && method.getParameterTypes()[0] == Object.class) {
            continue;
          }
          if (method.getName().equals("hashCode") && method.getParameterTypes().length == 0) {
            continue;
          }
          if (method.getName().equals("toString") && method.getParameterTypes().length == 0) {
            continue;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

            if (version != null) {
                if (version.regionMatches(
                        true,
                        version.length() - Artifact.SNAPSHOT_VERSION.length(),
                        Artifact.SNAPSHOT_VERSION,
                        0,
                        Artifact.SNAPSHOT_VERSION.length())) {
                    return true;
                } else {
                    return Artifact.VERSION_FILE_PATTERN.matcher(version).matches();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/entity/GeoInfo.java

                    return boolQuery;
                }
                return null;
            }).filter(q -> q != null).toArray(n -> new QueryBuilder[n]);
    
            if (queryBuilders.length == 1) {
                builder = queryBuilders[0];
            } else if (queryBuilders.length > 1) {
                final BoolQueryBuilder boolQuery = QueryBuilders.boolQuery();
                StreamUtil.stream(queryBuilders).of(stream -> stream.forEach(boolQuery::must));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ByteStreams.java

          return new byte[0];
        }
        byte[] result = bufs.remove();
        if (result.length == totalLen) {
          return result;
        }
        int remaining = totalLen - result.length;
        result = Arrays.copyOf(result, totalLen);
        while (remaining > 0) {
          byte[] buf = bufs.remove();
          int bytesToCopy = min(remaining, buf.length);
          int resultOffset = totalLen - remaining;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. internal/s3select/sql/stringfuncs_contrib_test.go

    		s           string
    		startIdx    int
    		length      int
    		resExpected string
    		errExpected error
    	}{
    		{"abcd", 1, 1, "a", nil},
    		{"abcd", -1, 1, "a", nil},
    		{"abcd", 999, 999, "", nil},
    		{"", 999, 999, "", nil},
    		{"测试abc", 1, 1, "测", nil},
    		{"测试abc", 5, 5, "c", nil},
    	}
    
    	for i, tc := range evalCases {
    		res, err := evalSQLSubstring(tc.s, tc.startIdx, tc.length)
    		if res != tc.resExpected || err != tc.errExpected {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  9. src/archive/tar/writer_test.go

    						Name:     "gnu-sparse",
    						Size:     6e10,
    						SparseHoles: []sparseEntry{
    							{Offset: 0e10, Length: 1e10 - 100},
    							{Offset: 1e10, Length: 1e10 - 100},
    							{Offset: 2e10, Length: 1e10 - 100},
    							{Offset: 3e10, Length: 1e10 - 100},
    							{Offset: 4e10, Length: 1e10 - 100},
    							{Offset: 5e10, Length: 1e10 - 100},
    						},
    					}, nil},
    					testReadFrom{fileOps{
    						int64(1e10 - blockSize),
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/AbstractHasher.java

      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putBytes(byte[] bytes) {
        return putBytes(bytes, 0, bytes.length);
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putBytes(byte[] bytes, int off, int len) {
        Preconditions.checkPositionIndexes(off, off + len, bytes.length);
        for (int i = 0; i < len; i++) {
          putByte(bytes[off + i]);
        }
        return this;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top