Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 495 for RunE (0.05 sec)

  1. src/html/template/css.go

    }
    
    // hexDecode decodes a short hex digit sequence: "10" -> 16.
    func hexDecode(s []byte) rune {
    	n := '\x00'
    	for _, c := range s {
    		n <<= 4
    		switch {
    		case '0' <= c && c <= '9':
    			n |= rune(c - '0')
    		case 'a' <= c && c <= 'f':
    			n |= rune(c-'a') + 10
    		case 'A' <= c && c <= 'F':
    			n |= rune(c-'A') + 10
    		default:
    			panic(fmt.Sprintf("Bad hex digit in %q", s))
    		}
    	}
    	return n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 19:38:18 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. 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)
  3. src/regexp/syntax/prog_test.go

    package syntax
    
    import "testing"
    
    var compileTests = []struct {
    	Regexp string
    	Prog   string
    }{
    	{"a", `  0	fail
      1*	rune1 "a" -> 2
      2	match
    `},
    	{"[A-M][n-z]", `  0	fail
      1*	rune "AM" -> 2
      2	rune "nz" -> 3
      3	match
    `},
    	{"", `  0	fail
      1*	nop -> 2
      2	match
    `},
    	{"a?", `  0	fail
      1	rune1 "a" -> 3
      2*	alt -> 1, 3
      3	match
    `},
    	{"a??", `  0	fail
      1	rune1 "a" -> 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 14 04:39:42 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/unicode/letter_test.go

    var notletterTest = []rune{
    	0x20,
    	0x35,
    	0x375,
    	0x619,
    	0x700,
    	0x1885,
    	0xfffe,
    	0x1ffff,
    	0x10ffff,
    }
    
    // Contains all the special cased Latin-1 chars.
    var spaceTest = []rune{
    	0x09,
    	0x0a,
    	0x0b,
    	0x0c,
    	0x0d,
    	0x20,
    	0x85,
    	0xA0,
    	0x2000,
    	0x3000,
    }
    
    type caseT struct {
    	cas     int
    	in, out rune
    }
    
    var caseTest = []caseT{
    	// errors
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:46:03 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/scanner.go

    			panic("imperfect hash")
    		}
    		keywordMap[h] = tok
    	}
    }
    
    func lower(ch rune) rune     { return ('a' - 'A') | ch } // returns lower-case ch iff ch is ASCII letter
    func isLetter(ch rune) bool  { return 'a' <= lower(ch) && lower(ch) <= 'z' || ch == '_' }
    func isDecimal(ch rune) bool { return '0' <= ch && ch <= '9' }
    func isHex(ch rune) bool     { return '0' <= ch && ch <= '9' || 'a' <= lower(ch) && lower(ch) <= 'f' }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/go/internal/work/exec_test.go

    	rBuffer := make([]rune, nRunes)
    	buf := bytes.NewBuffer([]byte(string(rBuffer)))
    
    	seed := time.Now().UnixNano()
    	t.Logf("rand seed: %v", seed)
    	rng := rand.New(rand.NewSource(seed))
    
    	for i := 0; i < 50; i++ {
    		// Generate a random string of runes.
    		buf.Reset()
    		for buf.Len() < sys.ExecArgLengthLimit+1 {
    			var r rune
    			for {
    				r = rune(rng.Intn(utf8.MaxRune + 1))
    				if utf8.ValidRune(r) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 02 13:15:42 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  8. src/unicode/digit_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unicode_test
    
    import (
    	"testing"
    	. "unicode"
    )
    
    var testDigit = []rune{
    	0x0030,
    	0x0039,
    	0x0661,
    	0x06F1,
    	0x07C9,
    	0x0966,
    	0x09EF,
    	0x0A66,
    	0x0AEF,
    	0x0B66,
    	0x0B6F,
    	0x0BE6,
    	0x0BEF,
    	0x0C66,
    	0x0CEF,
    	0x0D66,
    	0x0D6F,
    	0x0E50,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.5K bytes
    - Viewed (0)
  9. test/initialize.go

    func f12(b []byte) [2][]byte { return [2][]byte{b, b} }
    
    var a12 = f12([]byte("hello"))
    var a13 = f12([]byte{1, 2, 3})
    var a14 = f12(make([]byte, 1))
    
    func f15(b []rune) [2][]rune { return [2][]rune{b, b} }
    
    var a15 = f15([]rune("hello"))
    var a16 = f15([]rune{1, 2, 3})
    
    type Same struct {
    	a, b interface{}
    }
    
    var same = []Same{
    	{a1, b1},
    	{a2, b2},
    	{a3, b3},
    	{a4, b4},
    	{a5, b5},
    	{a6, b6},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 04:04:52 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/text/unicode/bidi/prop.go

    	return c
    }
    
    // IsBracket reports whether the rune is a bracket.
    func (p Properties) IsBracket() bool { return p.entry&0xF0 != 0 }
    
    // IsOpeningBracket reports whether the rune is an opening bracket.
    // IsBracket must return true.
    func (p Properties) IsOpeningBracket() bool { return p.entry&openMask != 0 }
    
    // TODO: find a better API and expose.
    func (p Properties) reverseBracket(r rune) rune {
    	return xorMasks[p.entry>>xorMaskShift] ^ r
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 5.7K bytes
    - Viewed (0)
Back to top