Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for comparePaths (0.43 sec)

  1. src/net/http/pattern_test.go

    	} {
    		pat1 := mustParsePattern(t, test.p1)
    		pat2 := mustParsePattern(t, test.p2)
    		if g := pat1.comparePaths(pat1); g != equivalent {
    			t.Errorf("%s does not match itself; got %s", pat1, g)
    		}
    		if g := pat2.comparePaths(pat2); g != equivalent {
    			t.Errorf("%s does not match itself; got %s", pat2, g)
    		}
    		got := pat1.comparePaths(pat2)
    		if got != test.want {
    			t.Errorf("%s vs %s: got %s, want %s", test.p1, test.p2, got, test.want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/PathUtil.java

        private static final Comparator<String> CASE_SENSITIVE_COMPARATOR = (path1, path2) -> comparePaths(path1, path2, CASE_SENSITIVE);
        private static final Comparator<String> CASE_INSENSITIVE_COMPARATOR = (path1, path2) -> comparePaths(path1, path2, CASE_INSENSITIVE);
    
        /**
         * Whether the given char is a file separator.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. src/net/http/pattern.go

    }
    
    func (p1 *pattern) comparePathsAndMethods(p2 *pattern) relationship {
    	mrel := p1.compareMethods(p2)
    	// Optimization: avoid a call to comparePaths.
    	if mrel == disjoint {
    		return disjoint
    	}
    	prel := p1.comparePaths(p2)
    	return combineRelationships(mrel, prel)
    }
    
    // compareMethods determines the relationship between the method
    // part of patterns p1 and p2.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/http/NetworkExplorer.java

            i = t1.compareToIgnoreCase( t2 );
            if( i == 0 ) {
                return f1name.compareToIgnoreCase( f2name );
            }
            return i;
        }
        protected int compareDates( SmbFile f1, String f1name, SmbFile f2 ) throws IOException {
            if( f1.isDirectory() != f2.isDirectory() ) {
                return f1.isDirectory() ? -1 : 1;
            }
            if( f1.isDirectory() ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Wed Jan 22 03:57:31 UTC 2020
    - 19.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NetworkExplorer.java

            i = t1.compareToIgnoreCase(t2);
            if ( i == 0 ) {
                return f1name.compareToIgnoreCase(f2name);
            }
            return i;
        }
    
    
        protected int compareDates ( SmbFile f1, String f1name, SmbFile f2 ) throws IOException {
            if ( f1.isDirectory() != f2.isDirectory() ) {
                return f1.isDirectory() ? -1 : 1;
            }
            if ( f1.isDirectory() ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 21.3K bytes
    - Viewed (0)
Back to top