- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 194 for submatch (0.21 sec)
-
src/regexp/regexp.go
// parenthesis. Submatch 0 is the match of the entire expression, submatch 1 is // the match of the first parenthesized subexpression, and so on. // // If 'Index' is present, matches and submatches are identified by byte index // pairs within the input string: result[2*n:2*n+2] identifies the indexes of // the nth submatch. The pair for n==0 identifies the match of the entire
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:50:01 UTC 2024 - 38.5K bytes - Viewed (0) -
pilot/pkg/model/virtualservice.go
// otherwise it conflicts for _, subMatch := range delegate { foundMatch := false for _, rootMatch := range root { if hasConflict(rootMatch, subMatch) { log.Warnf("HTTPMatchRequests conflict: root %v, delegate %v", rootMatch, subMatch) continue } // merge HTTPMatchRequest out = append(out, mergeHTTPMatchRequest(rootMatch, subMatch)) foundMatch = true } if !foundMatch {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 11:17:03 UTC 2024 - 17.4K bytes - Viewed (0) -
src/regexp/find_test.go
} } // Now come the Submatch cases. func testSubmatchBytes(test *FindTest, n int, submatches []int, result [][]byte, t *testing.T) { if len(submatches) != len(result)*2 { t.Errorf("match %d: expected %d submatches; got %d: %s", n, len(submatches)/2, len(result), test) return } for k := 0; k < len(submatches); k += 2 { if submatches[k] == -1 { if result[k/2] != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 11 15:28:50 UTC 2021 - 16.3K bytes - Viewed (0) -
src/regexp/exec_test.go
// gives the semicolon-separated match results of running // the regexp on the corresponding string. // Each match result is either a single -, meaning no match, or a // space-separated sequence of pairs giving the match and // submatch indices. An unmatched subexpression formats // its pair as a single - (not illustrated above). For now // each regexp run produces two match results, one for a // “full match” that restricts the regexp to matching the entire
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 20.7K bytes - Viewed (0) -
src/cmd/covdata/tool_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 20:46:32 UTC 2024 - 24.5K bytes - Viewed (0) -
src/regexp/exec.go
} else { op &^= syntax.EmptyNoWordBoundary } return op == 0 } // match runs the machine over the input starting at pos. // It reports whether a match was found. // If so, m.matchcap holds the submatch information. func (m *machine) match(i input, pos int) bool { startCond := m.re.cond if startCond == ^syntax.EmptyOp(0) { // impossible return false } m.matched = false for i := range m.matchcap {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 04 20:10:54 UTC 2022 - 12.3K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_windows_test.go
} err := doSafeMakeDir(test.subPath, test.volumePath, os.FileMode(0755)) if test.expectError { assert.NotNil(t, err, "Expect error during doSafeMakeDir(%s, %s)", test.subPath, test.volumePath) continue } assert.Nil(t, err, "Expect no error during doSafeMakeDir(%s, %s)", test.subPath, test.volumePath) if _, err := os.Stat(test.subPath); os.IsNotExist(err) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 13.8K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_linux.go
} fd, err := doSafeOpen(subpath.Path, subpath.VolumePath) if err != nil { return -1, fmt.Errorf("error opening subpath %v: %v", subpath.Path, err) } return fd, nil } // prepareSubpathTarget creates target for bind-mount of subpath. It returns // "true" when the target already exists and something is mounted there.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 12 14:09:11 UTC 2022 - 21.4K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_windows.go
} // Lock all directories in subPath and check they're not symlinks. func (sp *subpath) PrepareSafeSubpath(subPath Subpath) (newHostPath string, cleanupAction func(), err error) { handles, err := lockAndCheckSubPath(subPath.VolumePath, subPath.Path) // Unlock the directories when the container starts cleanupAction = func() { unlockPath(handles) } return subPath.Path, cleanupAction, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 12:57:11 UTC 2023 - 12.5K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_linux_test.go
expectError bool }{ { name: "subpath-dir", prepare: func(base string) ([]string, string, string, error) { volpath, _ := getTestPaths(base) subpath := filepath.Join(volpath, "dir0") return nil, volpath, subpath, os.MkdirAll(subpath, defaultPerm) }, expectError: false, }, { name: "subpath-dir-symlink",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 10 16:52:55 UTC 2021 - 37.3K bytes - Viewed (0)