Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MixedLength (0.08 sec)

  1. 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)
Back to top