Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 707 for separators (0.35 sec)

  1. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/PathUtil.java

     */
    public class PathUtil {
    
        /**
         * The Unix separator character.
         */
        private static final char UNIX_SEPARATOR = '/';
    
        /**
         * The Windows separator character.
         */
        private static final char WINDOWS_SEPARATOR = '\\';
    
        /**
         * The system separator character.
         */
        private static final char SYSTEM_SEPARATOR = File.separatorChar;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  2. src/path/filepath/path.go

    	}
    	slices.Sort(names)
    	return names, nil
    }
    
    // Base returns the last element of path.
    // Trailing path separators are removed before extracting the last element.
    // If the path is empty, Base returns ".".
    // If the path consists entirely of separators, Base returns a single separator.
    func Base(path string) string {
    	return filepathlite.Base(path)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. cmd/utils_test.go

    		},
    		// Test case 5 object has many trailing separators.
    		{
    			path:   "/bucket/object/1///",
    			bucket: "bucket",
    			object: "object/1///",
    		},
    		// Test case 6 object has only trailing separators.
    		{
    			path:   "/bucket/object///////",
    			bucket: "bucket",
    			object: "object///////",
    		},
    		// Test case 7 object has preceding separators.
    		{
    			path:   "/bucket////object////",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-filepath.h

      // it is called in CreateDirectoriesRecursively() assuming that it will change
      // a pathname from directory syntax (trailing separator) to filename syntax.
      //
      // On Windows this method also replaces the alternate path separator '/' with
      // the primary path separator '\\', so that for example "bar\\/\\foo" becomes
      // "bar\\foo".
    
      void Normalize();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-filepath.h

      // it is called in CreateDirectoriesRecursively() assuming that it will change
      // a pathname from directory syntax (trailing separator) to filename syntax.
      //
      // On Windows this method also replaces the alternate path separator '/' with
      // the primary path separator '\\', so that for example "bar\\/\\foo" becomes
      // "bar\\foo".
    
      void Normalize();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/catalog/DefaultVersionCatalogBuilderTest.groovy

            verify(ex.message, undefinedAliasRef {
                inCatalog('libs')
                aliasRef('foo')
                bundle('toto')
            })
        }
    
        def "normalizes alias separators to dot"() {
            builder.library("guava", "com.google.guava:guava:17.0")
            builder.library("groovy", "org.codehaus.groovy", "groovy").version {
                it.strictly("3.0.5")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Dec 17 22:25:43 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/FilePathUtil.java

    import java.util.StringTokenizer;
    
    public class FilePathUtil {
        private static final String[] EMPTY_STRING_ARRAY = {};
        // On Windows, / and \ are separators, on Unix only / is a separator.
        private static final String FILE_PATH_SEPARATORS = File.separatorChar != '/' ? ("/" + File.separator) : File.separator;
    
        private FilePathUtil() {
        }
    
        public static String[] getPathSegments(String path) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/DefaultVersionComparatorTest.groovy

            "hey joe" | "hey joe"
        }
    
        def "versions that differ only in separators are equal"() {
            expect:
            compare("1.0", "1_0") == 0
            compare("1_0", "1-0") == 0
            compare("1-0", "1+0") == 0
            compare("1.a.2", "1a2") == 0 // number-word and word-number boundaries are considered separators
        }
    
        def "leading zeros in numeric parts are ignored"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. platforms/documentation/docs-asciidoctor-extensions-base/src/main/java/org/gradle/docs/asciidoctor/IdGenerator.java

            result = ID_PATTERN.matcher(result).replaceAll("");
    
            // normalize separators
            result = SEPARATOR_PATTERN.matcher(result).replaceAll(PART_SEPARATOR);
    
            // strip separator from the end
            if (result.endsWith(PART_SEPARATOR)) {
                result = result.substring(0, result.length() - 1);
            }
    
            // string separator from the start
            if (result.startsWith(PART_SEPARATOR)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. src/math/big/intconv_test.go

    	{in: "08"},
    	{in: "8", base: 8},
    	{in: "0xg", base: 0},
    	{in: "g", base: 16},
    
    	// invalid inputs with separators
    	// (smoke tests only - a comprehensive set of tests is in natconv_test.go)
    	{in: "_"},
    	{in: "0_"},
    	{in: "_0"},
    	{in: "-1__0"},
    	{in: "0x10_"},
    	{in: "1_000", base: 10}, // separators are not permitted for bases != 0
    	{in: "d_e_a_d", base: 16},
    
    	// valid inputs
    	{"0", "0", 0, 0, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 22:58:58 UTC 2019
    - 10K bytes
    - Viewed (0)
Back to top