Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,195 for SplitV (0.18 sec)

  1. pkg/util/strcase/camelcase.go

    			i++
    			t = append(t, s[i])
    		}
    	}
    	return string(t)
    }
    
    // CamelCaseWithSeparator splits the given string by the separator, converts the parts to CamelCase and then re-joins them.
    func CamelCaseWithSeparator(n string, sep string) string {
    	p := strings.Split(n, sep)
    	for i := 0; i < len(p); i++ {
    		p[i] = CamelCase(p[i])
    	}
    	return strings.Join(p, "")
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 28 19:48:10 UTC 2020
    - 2.7K bytes
    - Viewed (0)
  2. pkg/version/version.go

    func NewBuildInfoFromOldString(oldOutput string) (BuildInfo, error) {
    	res := BuildInfo{}
    
    	lines := strings.Split(oldOutput, "\n")
    	for _, line := range lines {
    		if strings.TrimSpace(line) == "" {
    			continue
    		}
    		fields := strings.SplitN(line, ":", 2)
    		if fields != nil {
    			if len(fields) != 2 {
    				return BuildInfo{}, fmt.Errorf("invalid BuildInfo input, field '%s' is not valid", fields[0])
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:26 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. internal/arn/arn.go

    	// the ARN would not match any configured ARNs in the server.
    	if ps[4] != "" {
    		err = errors.New("invalid ARN - unsupported account-id field")
    		return
    	}
    
    	res := strings.SplitN(ps[5], "/", 2)
    	if len(res) != 2 {
    		err = errors.New("invalid ARN - resource does not contain a \"/\"")
    		return
    	}
    
    	if res[0] != string(arnResourceTypeRole) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 08:31:34 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/path/filepath/path.go

    	return filepathlite.FromSlash(path)
    }
    
    // SplitList splits a list of paths joined by the OS-specific [ListSeparator],
    // usually found in PATH or GOPATH environment variables.
    // Unlike strings.Split, SplitList returns an empty slice when passed an empty
    // string.
    func SplitList(path string) []string {
    	return splitList(path)
    }
    
    // Split splits path immediately following the final [Separator],
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

        val csvLines = scenarios.map { "${it.className};${it.scenario}" }
        val action = "include"
        val fileNamePostfix = "$testProject-performance-scenarios.csv"
        val performanceTestSplitDirectoryName = "performance-test-splits"
        val unixScript = """
    mkdir -p $performanceTestSplitDirectoryName
    rm -rf $performanceTestSplitDirectoryName/*-$fileNamePostfix
    cat > $performanceTestSplitDirectoryName/$action-$fileNamePostfix << EOL
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 19 11:22:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. tests/util/leak/check.go

    func (g goroutineByID) Less(i, j int) bool { return g[i].id < g[j].id }
    func (g goroutineByID) Swap(i, j int)      { g[i], g[j] = g[j], g[i] }
    
    func interestingGoroutine(g string) (*goroutine, error) {
    	sl := strings.SplitN(g, "\n", 2)
    	if len(sl) != 2 {
    		return nil, fmt.Errorf("error parsing stack: %q", g)
    	}
    	stack := strings.TrimSpace(sl[1])
    	if strings.HasPrefix(stack, "testing.RunTests") {
    		return nil, nil
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 10:22:38 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  7. src/embed/embed.go

    	// the relevant sequence of entries.
    	files *[]file
    }
    
    // split splits the name into dir and elem as described in the
    // comment in the FS struct above. isDir reports whether the
    // final trailing slash was present, indicating that name is a directory.
    func split(name string) (dir, elem string, isDir bool) {
    	name, isDir = stringslite.CutSuffix(name, "/")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/arguments.go

    	}
    	// Remove the starting --
    	arg = strings.TrimPrefix(arg, "--")
    	// Split the string on =. Return only two substrings, since we want only key/value, but the value can include '=' as well
    	keyvalSlice := strings.SplitN(arg, "=", 2)
    
    	// Make sure both a key and value is present
    	if len(keyvalSlice) != 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 11:01:00 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CollectSpliterators.java

          }
    
          @Override
          @CheckForNull
          public Spliterator<T> trySplit() {
            Spliterator.OfInt split = delegate.trySplit();
            return (split == null) ? null : new WithCharacteristics(split);
          }
    
          @Override
          public long estimateSize() {
            return delegate.estimateSize();
          }
    
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 18:19:31 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. cmd/dependencyverifier/dependencyverifier.go

    	var (
    		mainModulesList = []module{}
    		mainModules     = map[module]bool{}
    	)
    	modMap := make(map[module][]module)
    	for _, line := range strings.Split(modStr, "\n") {
    		if len(line) == 0 {
    			continue
    		}
    		deps := strings.Split(line, " ")
    		if len(deps) == 2 {
    			first := parseModule(deps[0])
    			second := parseModule(deps[1])
    			if first.version == "" || first.version == "v0.0.0" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 07 01:48:30 UTC 2023
    - 12.7K bytes
    - Viewed (0)
Back to top