Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MixedLength (0.13 sec)

  1. src/runtime/string_test.go

    				escapeString = string(buf)
    			}
    		})
    		buf = append(buf, buf...)
    	}
    }
    
    var stringdata = []struct{ name, data string }{
    	{"ASCII", "01234567890"},
    	{"Japanese", "日本語日本語日本語"},
    	{"MixedLength", "$Ѐࠀက퀀𐀀\U00040000\U0010FFFF"},
    }
    
    var sinkInt int
    
    func BenchmarkRuneCount(b *testing.B) {
    	// Each sub-benchmark counts the runes in a string in a different way.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/util/BinaryDiffUtils.groovy

        public static List<String> toHexStrings(byte[] bytes, int bytesPerLine = 16) {
            def sw = new StringWriter()
            bytes.encodeHex().writeTo(sw)
            return Splitter.fixedLength(bytesPerLine * 2).split(sw.toString()).collect { line ->
                Splitter.fixedLength(2).split(line).join(" ")
            }
        }
    
        public static int levenshteinDistance(byte[] lhs, byte[] rhs) {
            int len0 = lhs.length + 1;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 14 11:47:34 UTC 2016
    - 2.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Splitter.java

      /**
       * Returns a splitter that divides strings into pieces of the given length. For example, {@code
       * Splitter.fixedLength(2).split("abcde")} returns an iterable containing {@code ["ab", "cd",
       * "e"]}. The last piece can be smaller than {@code length} but will never be empty.
       *
       * <p><b>Note:</b> if {@link #fixedLength} is used in conjunction with {@link #limit}, the final
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Splitter.java

      /**
       * Returns a splitter that divides strings into pieces of the given length. For example, {@code
       * Splitter.fixedLength(2).split("abcde")} returns an iterable containing {@code ["ab", "cd",
       * "e"]}. The last piece can be smaller than {@code length} but will never be empty.
       *
       * <p><b>Note:</b> if {@link #fixedLength} is used in conjunction with {@link #limit}, the final
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

          for (String separator : ImmutableList.of(",", "\n", ";;", "")) {
            testEncoding(
                encoding.withSeparator(separator, sepLength),
                decoded,
                Joiner.on(separator).join(Splitter.fixedLength(sepLength).split(encoded)));
          }
        }
      }
    
      private static void testEncoding(BaseEncoding encoding, String decoded, String encoded) {
        testEncodes(encoding, decoded, encoded);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 24.6K bytes
    - Viewed (0)
Back to top