Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for stringFind (0.36 sec)

  1. src/internal/trace/event.go

    	}
    	return Log{
    		Task:     TaskID(e.base.args[0]),
    		Category: e.table.strings.mustGet(stringID(e.base.args[1])),
    		Message:  e.table.strings.mustGet(stringID(e.base.args[2])),
    	}
    }
    
    // StateTransition returns details about a StateTransition event.
    //
    // Panics if Kind != EventStateTransition.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  2. cmd/object-api-options.go

    		}
    	}
    
    	return
    }
    
    func parseIntHeader(bucket, object string, h http.Header, headerName string) (value int, err error) {
    	stringInt := strings.TrimSpace(h.Get(headerName))
    	if stringInt == "" {
    		return
    	}
    	value, err = strconv.Atoi(stringInt)
    	if err != nil {
    		return 0, InvalidArgument{
    			Bucket: bucket,
    			Object: object,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. src/syscall/security_windows.go

    //sys	ConvertSidToStringSid(sid *SID, stringSid **uint16) (err error) = advapi32.ConvertSidToStringSidW
    //sys	ConvertStringSidToSid(stringSid *uint16, sid **SID) (err error) = advapi32.ConvertStringSidToSidW
    //sys	GetLengthSid(sid *SID) (len uint32) = advapi32.GetLengthSid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 16:42:41 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. src/testing/benchmark_test.go

    		b.ReportMetric(12345, "ns/op")
    		b.ReportMetric(0.2, "frobs/op")
    	})
    	// Test built-in overriding.
    	if res.NsPerOp() != 12345 {
    		t.Errorf("NsPerOp: expected %v, actual %v", 12345, res.NsPerOp())
    	}
    	// Test stringing.
    	res.N = 1 // Make the output stable
    	want := "       1\t     12345 ns/op\t         0.2000 frobs/op"
    	if want != res.String() {
    		t.Errorf("expected %q, actual %q", want, res.String())
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. src/internal/trace/order.go

    	// Handle special goroutine-bound event ranges.
    	if err := validateCtx(curCtx, event.UserGoReqs); err != nil {
    		return curCtx, false, err
    	}
    	desc := stringID(0)
    	if ev.typ == go122.EvSTWBegin {
    		desc = stringID(ev.args[0])
    	}
    	gState, ok := o.gStates[curCtx.G]
    	if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  6. src/syscall/zsyscall_windows.go

    )
    
    func ConvertSidToStringSid(sid *SID, stringSid **uint16) (err error) {
    	r1, _, e1 := Syscall(procConvertSidToStringSidW.Addr(), 2, uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(stringSid)), 0)
    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func ConvertStringSidToSid(stringSid *uint16, sid **SID) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (0)
  7. src/encoding/json/decode_test.go

    	return errors.New("MustNotUnmarshalText was used")
    }
    
    func TestStringKind(t *testing.T) {
    	type stringKind string
    	want := map[stringKind]int{"foo": 42}
    	data, err := Marshal(want)
    	if err != nil {
    		t.Fatalf("Marshal error: %v", err)
    	}
    	var got map[stringKind]int
    	err = Unmarshal(data, &got)
    	if err != nil {
    		t.Fatalf("Unmarshal error: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/library/cost.go

    			// of estimating the additional comparison cost.
    			if elNode := l.listElementNode(*target); elNode != nil {
    				k := elNode.Type().Kind()
    				if k == types.StringKind || k == types.BytesKind {
    					sz := l.sizeEstimate(elNode)
    					elCost = elCost.Add(sz.MultiplyByCostFactor(common.StringTraversalCostFactor))
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/windows/security_windows.go

    //sys	ConvertSidToStringSid(sid *SID, stringSid **uint16) (err error) = advapi32.ConvertSidToStringSidW
    //sys	ConvertStringSidToSid(stringSid *uint16, sid **SID) (err error) = advapi32.ConvertStringSidToSidW
    //sys	GetLengthSid(sid *SID) (len uint32) = advapi32.GetLengthSid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  10. src/net/netip/netip.go

    // prefix before the dotted quad.
    func (ip Addr) String() string {
    	switch ip.z {
    	case z0:
    		return "invalid IP"
    	case z4:
    		return ip.string4()
    	default:
    		if ip.Is4In6() {
    			return ip.string4In6()
    		}
    		return ip.string6()
    	}
    }
    
    // AppendTo appends a text encoding of ip,
    // as generated by [Addr.MarshalText],
    // to b and returns the extended buffer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
Back to top