Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 530 for rune1 (0.31 sec)

  1. src/regexp/syntax/parse_test.go

    		sep := ""
    		for i := 0; i < len(re.Rune); i += 2 {
    			b.WriteString(sep)
    			sep = " "
    			lo, hi := re.Rune[i], re.Rune[i+1]
    			if lo == hi {
    				fmt.Fprintf(b, "%#x", lo)
    			} else {
    				fmt.Fprintf(b, "%#x-%#x", lo, hi)
    			}
    		}
    	}
    	b.WriteByte('}')
    }
    
    func mkCharClass(f func(rune) bool) string {
    	re := &Regexp{Op: OpCharClass}
    	lo := rune(-1)
    	for i := rune(0); i <= unicode.MaxRune; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  2. src/fmt/doc.go

    that is, runes. (This differs from C's printf where the
    units are always measured in bytes.) Either or both of the flags
    may be replaced with the character '*', causing their values to be
    obtained from the next operand (preceding the one to format),
    which must be of type int.
    
    For most values, width is the minimum number of runes to output,
    padding the formatted form with spaces if necessary.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. src/go/types/conversions.go

    	if isComplex(Vu) && isComplex(Tu) {
    		return true
    	}
    
    	// "V is an integer or a slice of bytes or runes and T is a string type"
    	if (isInteger(Vu) || isBytesOrRunes(Vu)) && isString(Tu) {
    		return true
    	}
    
    	// "V is a string and T is a slice of bytes or runes"
    	if isString(Vu) && isBytesOrRunes(Tu) {
    		return true
    	}
    
    	// package unsafe:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/text/unicode/norm/iter.go

    package norm
    
    import (
    	"fmt"
    	"unicode/utf8"
    )
    
    // MaxSegmentSize is the maximum size of a byte buffer needed to consider any
    // sequence of starter and non-starter runes for the purpose of normalization.
    const MaxSegmentSize = maxByteBufferSize
    
    // An Iter iterates over a string or byte slice, while normalizing it
    // to a given Form.
    type Iter struct {
    	rb     reorderBuffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 11K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/text/unicode/bidi/bracket.go

    //
    // For each rune, it takes the indexes into the original string, the class the
    // bracket type (in pairTypes) and the bracket identifier (pairValues). It also
    // takes the direction type for the start-of-sentence and the embedding level.
    //
    // The identifiers for bracket types are the rune of the canonicalized opening
    // bracket for brackets (open or close) or 0 for runes that are not brackets.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 11.2K bytes
    - Viewed (0)
  6. src/text/template/parse/lex.go

    }
    
    // next returns the next rune in the input.
    func (l *lexer) next() rune {
    	if int(l.pos) >= len(l.input) {
    		l.atEOF = true
    		return eof
    	}
    	r, w := utf8.DecodeRuneInString(l.input[l.pos:])
    	l.pos += Pos(w)
    	if r == '\n' {
    		l.line++
    	}
    	return r
    }
    
    // peek returns but does not consume the next rune in the input.
    func (l *lexer) peek() rune {
    	r := l.next()
    	l.backup()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 22:36:12 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  7. src/fmt/fmt_test.go

    	{"%#+q", "abc\xffdef", `"abc\xffdef"`},
    	// Runes that are not printable.
    	{"%q", "\U0010ffff", `"\U0010ffff"`},
    	{"%+q", "\U0010ffff", `"\U0010ffff"`},
    	{"%#q", "\U0010ffff", "`􏿿`"},
    	{"%#+q", "\U0010ffff", "`􏿿`"},
    	// Runes that are not valid.
    	{"%q", string(rune(0x110000)), `"�"`},
    	{"%+q", string(rune(0x110000)), `"\ufffd"`},
    	{"%#q", string(rune(0x110000)), "`�`"},
    	{"%#+q", string(rune(0x110000)), "`�`"},
    
    	// characters
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  8. src/sort/sort_slices_benchmark_test.go

    		ints := makeSortedInts(N)
    		b.StartTimer()
    		slices.IsSorted(ints)
    	}
    }
    
    // makeRandomStrings generates n random strings with alphabetic runes of
    // varying lengths.
    func makeRandomStrings(n int) []string {
    	r := rand.New(rand.NewPCG(42, 0))
    	var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
    	ss := make([]string, n)
    	for i := 0; i < n; i++ {
    		var sb stringspkg.Builder
    		slen := 2 + r.IntN(50)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 22:59:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. src/encoding/csv/reader.go

    type Reader struct {
    	// Comma is the field delimiter.
    	// It is set to comma (',') by NewReader.
    	// Comma must be a valid rune and must not be \r, \n,
    	// or the Unicode replacement character (0xFFFD).
    	Comma rune
    
    	// Comment, if not 0, is the comment character. Lines beginning with the
    	// Comment character without preceding whitespace are ignored.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. src/html/template/js.go

    	return s
    }
    
    // replace replaces each rune r of s with replacementTable[r], provided that
    // r < len(replacementTable). If replacementTable[r] is the empty string then
    // no replacement is made.
    // It also replaces runes U+2028 and U+2029 with the raw strings `\u2028` and
    // `\u2029`.
    func replace(s string, replacementTable []string) string {
    	var b strings.Builder
    	r, w, written := rune(0), 0, 0
    	for i := 0; i < len(s); i += w {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top