- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,143 for startIdx (0.33 sec)
-
cmd/kubeadm/app/apis/kubeadm/argument.go
// startIdx defines where the iteration starts. If startIdx is a negative // value or larger than the size of the argument slice the iteration // will start from the last element. func GetArgValue(args []Arg, name string, startIdx int) (string, int) { if startIdx < 0 || startIdx > len(args)-1 { startIdx = len(args) - 1 } for i := startIdx; i >= 0; i-- { arg := args[i] if arg.Name == name {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 16 10:27:05 UTC 2023 - 1.9K bytes - Viewed (0) -
internal/s3select/sql/stringfuncs.go
return string(r[1:]), true } func evalSQLSubstring(s string, startIdx, length int) (res string, err error) { rs := []rune(s) // According to s3 document, if startIdx < 1, it is set to 1. if startIdx < 1 { startIdx = 1 } if startIdx > len(rs) { startIdx = len(rs) + 1 } // StartIdx is 1-based in the input startIdx-- endIdx := len(rs) if length != -1 { if length < 0 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 4.2K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/argument_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 16 10:27:05 UTC 2023 - 3.4K bytes - Viewed (0) -
internal/s3select/sql/stringfuncs_contrib_test.go
s string startIdx int length int resExpected string errExpected error }{ {"abcd", 1, 1, "a", nil}, {"abcd", -1, 1, "a", nil}, {"abcd", 999, 999, "", nil}, {"", 999, 999, "", nil}, {"测试abc", 1, 1, "测", nil}, {"测试abc", 5, 5, "c", nil}, } for i, tc := range evalCases { res, err := evalSQLSubstring(tc.s, tc.startIdx, tc.length)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.2K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ResultAssertion.java
* being already present in that collection. * <p> * A match means that the first n lines starting at {@code startIdx} match the lines of the * expected deprecation warning. If there are not n lines starting at {@code startIdx} left in * the list of lines, then no match is made. * <p> * As a second side-effect, the last matched deprecation warning is stored in the
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 10.4K bytes - Viewed (0) -
internal/s3select/sql/funceval.go
if e.From == nil { arg2, arg3 = e.Arg2, e.Arg3 } // Evaluate the FROM argument v2, err := arg2.evalNode(r, tableAlias) if err != nil { return nil, err } inferTypeForArithOp(v2) startIdx, ok := v2.ToInt() if !ok { err := fmt.Errorf("Incorrect type for start index argument in %s", sqlFnSubstring) return nil, errIncorrectSQLFunctionArgumentType(err) } length := -1
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 13.2K bytes - Viewed (0) -
src/internal/trace/traceviewer/emitter.go
Flush func() } // ViewerDataTraceConsumer returns a TraceConsumer that writes to w. The // startIdx and endIdx are used for splitting large traces. They refer to // indexes in the traceEvents output array, not the events in the trace input. func ViewerDataTraceConsumer(w io.Writer, startIdx, endIdx int64) TraceConsumer { allFrames := make(map[string]format.Frame) requiredFrames := make(map[string]format.Frame)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:29:58 UTC 2023 - 20.4K bytes - Viewed (0) -
src/slices/slices.go
uintptr(unsafe.Pointer(&b[0])) <= uintptr(unsafe.Pointer(&a[len(a)-1]))+(elemSize-1) } // startIdx returns the index in haystack where the needle starts. // prerequisite: the needle must be aliased entirely inside the haystack. func startIdx[E any](haystack, needle []E) int { p := &needle[0] for i := range haystack { if p == &haystack[i] { return i } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 14:01:59 UTC 2024 - 13.6K bytes - Viewed (0) -
src/debug/dwarf/entry.go
var err error base, err = d.debugAddr(u, uint64(addrBase), baseIdx) if err != nil { return nil, err } case rleStartxEndx: startIdx := buf.uint() endIdx := buf.uint() start, err := d.debugAddr(u, uint64(addrBase), startIdx) if err != nil { return nil, err } end, err := d.debugAddr(u, uint64(addrBase), endIdx) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 30.7K bytes - Viewed (0) -
platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/DefaultExecutorFactoryTest.groovy
executor.schedule(action3, 0, TimeUnit.SECONDS) thread.blockUntil.started3 then: instant.started3 > instant.completed1 instant.started3 > instant.started2 } def stopBlocksUntilAllScheduledRunningJobsAreCompleted() { given: def action1 = { instant.started1 thread.blockUntil.willStop thread.block()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 19:07:35 UTC 2024 - 11.2K bytes - Viewed (0)