Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 239 for rune1 (0.05 sec)

  1. src/text/tabwriter/tabwriter.go

    // The text itself is stored in a separate buffer; cell only describes the
    // segment's size in bytes, its width in runes, and whether it's an htab
    // ('\t') terminated cell.
    type cell struct {
    	size  int  // cell size in bytes
    	width int  // cell width in runes
    	htab  bool // true if the cell is terminated by an htab ('\t')
    }
    
    // A Writer is a filter that inserts padding around tab-delimited
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  2. internal/s3select/csv/reader.go

    		ret := csv.NewReader(r)
    		ret.Comma = []rune(args.FieldDelimiter)[0]
    		ret.Comment = []rune(args.CommentCharacter)[0]
    		ret.Quote = []rune{}
    		if len([]rune(args.QuoteCharacter)) > 0 {
    			// Add the first rune of args.QuoteCharacter
    			ret.Quote = append(ret.Quote, []rune(args.QuoteCharacter)[0])
    		}
    		ret.QuoteEscape = []rune(args.QuoteEscapeCharacter)[0]
    		ret.FieldsPerRecord = -1
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/gcimporter_test.go

    // TODO(rfindley): this should not be necessary.
    func sanitizeObjectString(s string) string {
    	var runes []rune
    	for _, r := range s {
    		if '₀' <= r && r < '₀'+10 {
    			continue // trim type parameter subscripts
    		}
    		runes = append(runes, r)
    	}
    	return string(runes)
    }
    
    func checkFile(t *testing.T, filename string, src []byte) *types.Package {
    	fset := token.NewFileSet()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. src/strings/builder_test.go

    			t.Errorf("%s: panicked = %v; want %v", tt.name, got, tt.wantPanic)
    		}
    	}
    }
    
    func TestBuilderWriteInvalidRune(t *testing.T) {
    	// Invalid runes, including negative ones, should be written as
    	// utf8.RuneError.
    	for _, r := range []rune{-1, utf8.MaxRune + 1} {
    		var b Builder
    		b.WriteRune(r)
    		check(t, &b, "\uFFFD")
    	}
    }
    
    var someBytes = []byte("some bytes sdljlk jsklj3lkjlk djlkjw")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. test/typeparam/builtins.go

    type M2 interface {
    	map[string]int | map[string]float64
    }
    type M3 interface{ map[string]int | map[rune]int }
    type M4[K comparable, V any] interface{ map[K]V | map[rune]V }
    
    func g1[T M1](m T) {
    	delete(m, "foo")
    }
    
    func g2[T M2](m T) {
    	delete(m, "foo")
    }
    
    func g3[T M4[rune, V], V any](m T) {
    	delete(m, 'k')
    }
    
    // make
    
    func m1[
    	S1 interface{ []int },
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 09:04:48 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/runtime/string.go

    	}
    	copy(b, s)
    	return b
    }
    
    func stringtoslicerune(buf *[tmpStringBufSize]rune, s string) []rune {
    	// two passes.
    	// unlike slicerunetostring, no race because strings are immutable.
    	n := 0
    	for range s {
    		n++
    	}
    
    	var a []rune
    	if buf != nil && n <= len(buf) {
    		*buf = [tmpStringBufSize]rune{}
    		a = buf[:n]
    	} else {
    		a = rawruneslice(n)
    	}
    
    	n = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. src/fmt/print.go

    	Flag(c int) bool
    }
    
    // Formatter is implemented by any value that has a Format method.
    // The implementation controls how [State] and rune are interpreted,
    // and may call [Sprint] or [Fprint](f) etc. to generate its output.
    type Formatter interface {
    	Format(f State, verb rune)
    }
    
    // Stringer is implemented by any value that has a String method,
    // which defines the “native” format for that value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  8. src/go/types/object_test.go

    		{NewTypeName(nopos, pkg, "int32", Typ[Int32]), true},              // type name is declared in user-defined package (outside Universe)
    		{NewTypeName(nopos, nil, "rune", Typ[Rune]), true},                // type name refers to basic type rune which is an alias already
    		{t5, false}, // type name refers to type parameter and vice versa
    	} {
    		check(test.name, test.alias)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/mod/module/module.go

    // But there are at least two subtle considerations.
    //
    // First, note that not all case-fold equivalent distinct runes
    // form an upper/lower pair.
    // For example, U+004B ('K'), U+006B ('k'), and U+212A ('K' for Kelvin)
    // are three distinct runes that case-fold to each other.
    // When we do add Unicode letters, we must not assume that upper/lower
    // are the only case-equivalent pairs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/object_test.go

    		{NewTypeName(nopos, pkg, "int32", Typ[Int32]), true},              // type name is declared in user-defined package (outside Universe)
    		{NewTypeName(nopos, nil, "rune", Typ[Rune]), true},                // type name refers to basic type rune which is an alias already
    		{t5, false}, // type name refers to type parameter and vice versa
    	} {
    		check(test.name, test.alias)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top