Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 530 for rune1 (0.06 sec)

  1. src/go/scanner/scanner.go

    }
    
    func digitVal(ch rune) int {
    	switch {
    	case '0' <= ch && ch <= '9':
    		return int(ch - '0')
    	case 'a' <= lower(ch) && lower(ch) <= 'f':
    		return int(lower(ch) - 'a' + 10)
    	}
    	return 16 // larger than any legal digit val
    }
    
    func lower(ch rune) rune     { return ('a' - 'A') | ch } // returns lower-case ch iff ch is ASCII letter
    func isDecimal(ch rune) bool { return '0' <= ch && ch <= '9' }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/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
    - 9K bytes
    - Viewed (0)
  3. src/cmd/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: Wed Jan 24 13:01:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/regexp/exec.go

    // It records the pair of relevant runes and does not
    // determine the implied flags until absolutely necessary
    // (most of the time, that means never).
    type lazyFlag uint64
    
    func newLazyFlag(r1, r2 rune) lazyFlag {
    	return lazyFlag(uint64(r1)<<32 | uint64(uint32(r2)))
    }
    
    func (f lazyFlag) match(op syntax.EmptyOp) bool {
    	if op == 0 {
    		return true
    	}
    	r1 := rune(f >> 32)
    	if op&syntax.EmptyBeginLine != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 04 20:10:54 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/idna/punycode.go

    // the result.
    //
    // The "while h < length(input)" line in the specification becomes "for
    // remaining != 0" in the Go code, because len(s) in Go is in bytes, not runes.
    func encode(prefix, s string) (string, error) {
    	output := make([]byte, len(prefix), len(prefix)+1+2*len(s))
    	copy(output, prefix)
    	delta, n, bias := int32(0), initialN, initialBias
    	b, remaining := int32(0), int32(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 09 20:10:36 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  6. src/internal/poll/fd_windows.go

    	// So limit the buffer to 16000 characters. This number was
    	// discovered by experimenting with syscall.WriteConsole.
    	const maxWrite = 16000
    	for len(runes) > 0 {
    		m := len(runes)
    		if m > maxWrite {
    			m = maxWrite
    		}
    		chunk := runes[:m]
    		runes = runes[m:]
    		uint16s := utf16.Encode(chunk)
    		for len(uint16s) > 0 {
    			var written uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. src/strings/strings_test.go

    	{"x \xc0\xc0 ", "x \xc0\xc0"},
    	{"x ☺\xc0\xc0 ", "x ☺\xc0\xc0"},
    	{"x ☺ ", "x ☺"},
    }
    
    func tenRunes(ch rune) string {
    	r := make([]rune, 10)
    	for i := range r {
    		r[i] = ch
    	}
    	return string(r)
    }
    
    // User-defined self-inverse mapping function
    func rot13(r rune) rune {
    	step := rune(13)
    	if r >= 'a' && r <= 'z' {
    		return ((r - 'a' + step) % 26) + 'a'
    	}
    	if r >= 'A' && r <= 'Z' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/net/idna/idna9.0.0.go

    func (e labelError) Error() string {
    	return fmt.Sprintf("idna: invalid label %q", e.label)
    }
    
    type runeError rune
    
    func (e runeError) code() string { return "P1" }
    func (e runeError) Error() string {
    	return fmt.Sprintf("idna: disallowed rune %U", e)
    }
    
    // process implements the algorithm described in section 4 of UTS #46,
    // see https://www.unicode.org/reports/tr46.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  9. src/strings/strings.go

    	// the closure once per rune.
    	prev := ' '
    	return Map(
    		func(r rune) rune {
    			if isSeparator(prev) {
    				prev = r
    				return unicode.ToTitle(r)
    			}
    			prev = r
    			return r
    		},
    		s)
    }
    
    // TrimLeftFunc returns a slice of the string s with all leading
    // Unicode code points c satisfying f(c) removed.
    func TrimLeftFunc(s string, f func(rune) bool) string {
    	i := indexFunc(s, f, false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/net/idna/idna10.0.0.go

    func (e labelError) Error() string {
    	return fmt.Sprintf("idna: invalid label %q", e.label)
    }
    
    type runeError rune
    
    func (e runeError) code() string { return "P1" }
    func (e runeError) Error() string {
    	return fmt.Sprintf("idna: disallowed rune %U", e)
    }
    
    // process implements the algorithm described in section 4 of UTS #46,
    // see https://www.unicode.org/reports/tr46.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 20.9K bytes
    - Viewed (0)
Back to top