Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of about 10,000 for String4 (0.39 sec)

  1. src/cmd/go/testdata/mod/rsc.io_sampler_v1.3.0.txt

    // A text is a localized text.
    type text struct {
    	byTag   map[string]string
    	matcher language.Matcher
    }
    
    // newText creates a new localized text, given a list of translations.
    func newText(s string) *text {
    	t := &text{
    		byTag: make(map[string]string),
    	}
    	var tags []language.Tag
    	for _, line := range strings.Split(s, "\n") {
    		line = strings.TrimSpace(line)
    		if line == "" {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 10 00:47:06 UTC 2018
    - 4.7K bytes
    - Viewed (0)
  2. internal/ringbuffer/ring_buffer_test.go

    	}
    	rb.Write([]byte(strings.Repeat("abcd", 15)))
    
    	if !bytes.Equal(rb.Bytes(nil), []byte("bcd"+strings.Repeat("abcd", 15))) {
    		t.Fatalf("expect 63 ... but got %s. r.w=%d, r.r=%d", rb.Bytes(nil), rb.w, rb.r)
    	}
    
    	rb.Reset()
    	n, err = rb.Write([]byte(strings.Repeat("abcd", 16)))
    	if err != nil {
    		t.Fatalf("write failed: %v", err)
    	}
    	if n != 64 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/proxy.go

    func (p *proxyRepo) Versions(ctx context.Context, prefix string) (*Versions, error) {
    	data, err := p.getBytes(ctx, "@v/list")
    	if err != nil {
    		p.listLatestOnce.Do(func() {
    			p.listLatest, p.listLatestErr = nil, p.versionError("", err)
    		})
    		return nil, p.versionError("", err)
    	}
    	var list []string
    	allLine := strings.Split(string(data), "\n")
    	for _, line := range allLine {
    		f := strings.Fields(line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 15:21:05 UTC 2023
    - 13K bytes
    - Viewed (0)
  4. internal/grid/trace.go

    func (c *tracer) subroute(subroute string) *tracer {
    	if c == nil {
    		return nil
    	}
    	c2 := *c
    	c2.Subroute = subroute
    	return &c2
    }
    
    type tracer struct {
    	Publisher *pubsub.PubSub[madmin.TraceInfo, madmin.TraceType]
    	TraceType madmin.TraceType
    	Prefix    string
    	Local     string
    	Remote    string
    	Subroute  string
    }
    
    const (
    	httpScheme  = "http://"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/request/union/unionauth_test.go

    	_, isAuthenticated, err := authRequestHandler.AuthenticateRequest(req)
    	if err == nil {
    		t.Errorf("Expected an error")
    	}
    	if !strings.Contains(err.Error(), "first") {
    		t.Errorf("Expected error containing %v, got %v", "first", err)
    	}
    	if !strings.Contains(err.Error(), "second") {
    		t.Errorf("Expected error containing %v, got %v", "second", err)
    	}
    	if isAuthenticated {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 22 17:16:59 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authentication/token/union/unionauth_test.go

    	_, isAuthenticated, err := authRequestHandler.AuthenticateToken(context.Background(), "foo")
    	if err == nil {
    		t.Errorf("Expected an error")
    	}
    	if !strings.Contains(err.Error(), "first") {
    		t.Errorf("Expected error containing %v, got %v", "first", err)
    	}
    	if !strings.Contains(err.Error(), "second") {
    		t.Errorf("Expected error containing %v, got %v", "second", err)
    	}
    	if isAuthenticated {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 22 17:16:59 UTC 2018
    - 5K bytes
    - Viewed (0)
  7. test/fixedbugs/issue32778.dir/a.go

    // source code is governed by a BSD-style license that can be found in
    // the LICENSE file.
    
    package a
    
    import "strings"
    
    type Name string
    
    type FullName string
    
    func (n FullName) Name() Name {
    	if i := strings.LastIndexByte(string(n), '.'); i >= 0 {
    		return Name(n[i+1:])
    	}
    	return Name(n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 02 16:34:55 UTC 2019
    - 362 bytes
    - Viewed (0)
  8. test/bom.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test source file beginning with a byte order mark.
    
    package main
    
    import (
    	"fmt"
    	"strings"
    )
    
    func main() {
    	prog = strings.Replace(prog, "BOM", "\uFEFF", -1)
    	fmt.Print(prog)
    }
    
    var prog = `BOM
    package main
    
    func main() {
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 10 20:03:07 UTC 2012
    - 406 bytes
    - Viewed (0)
  9. src/internal/trace/generation.go

    // addStrings takes a batch whose first byte is an EvStrings event
    // (indicating that the batch contains only strings) and adds each
    // string contained therein to the provided strings map.
    func addStrings(stringTable *dataTable[stringID, string], b batch) error {
    	if !b.isStringsBatch() {
    		return fmt.Errorf("internal error: addStrings called on non-string batch")
    	}
    	r := bytes.NewReader(b.data)
    	hdr, err := r.ReadByte() // Consume the EvStrings byte.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/language/parse.go

    // string if there is no such token.
    func consume(s string, c byte) string {
    	if s == "" || s[0] != c {
    		return ""
    	}
    	return strings.TrimSpace(s[1:])
    }
    
    func split(s string, c byte) (head, tail string) {
    	if i := strings.IndexByte(s, c); i >= 0 {
    		return strings.TrimSpace(s[:i]), strings.TrimSpace(s[i+1:])
    	}
    	return strings.TrimSpace(s), ""
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top