Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for maxRune (0.19 sec)

  1. test/rune.go

    )
    
    var (
    	f0 = 1.2
    	f1 = 1.2/'a'
    
    	f = []float64{f0, f1}
    )
    
    var (
    	i0 = 1
    	i1 = 1<<'\x01'
    	
    	i = []int{i0, i1}
    )
    
    const (
    	maxRune = '\U0010FFFF'
    )
    
    var (
    	b0 = maxRune < r0
    	
    	b = []bool{b0}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 603 bytes
    - Viewed (0)
  2. src/unicode/utf16/utf16_test.go

    	"reflect"
    	"testing"
    	"unicode"
    	. "unicode/utf16"
    )
    
    // Validate the constants redefined from unicode.
    func TestConstants(t *testing.T) {
    	if MaxRune != unicode.MaxRune {
    		t.Errorf("utf16.maxRune is wrong: %x should be %x", MaxRune, unicode.MaxRune)
    	}
    	if ReplacementChar != unicode.ReplacementChar {
    		t.Errorf("utf16.replacementChar is wrong: %x should be %x", ReplacementChar, unicode.ReplacementChar)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/unicode/utf16/utf16.go

    package utf16
    
    // The conditions replacementChar==unicode.ReplacementChar and
    // maxRune==unicode.MaxRune are verified in the tests.
    // Defining them locally avoids this package depending on package unicode.
    
    const (
    	replacementChar = '\uFFFD'     // Unicode replacement character
    	maxRune         = '\U0010FFFF' // Maximum valid Unicode code point.
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/unicode/utf16/export_test.go

    package utf16
    
    // Extra names for constants so we can validate them during testing.
    const (
    	Surr1           = surr1
    	Surr3           = surr3
    	SurrSelf        = surrSelf
    	MaxRune         = maxRune
    	ReplacementChar = replacementChar
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 394 bytes
    - Viewed (0)
  5. src/runtime/utf8.go

    // Numbers fundamental to the encoding.
    const (
    	runeError = '\uFFFD'     // the "error" Rune or "Unicode replacement character"
    	runeSelf  = 0x80         // characters below runeSelf are represented as themselves in a single byte.
    	maxRune   = '\U0010FFFF' // Maximum valid Unicode code point.
    )
    
    // Code points in the surrogate range are not valid for UTF-8.
    const (
    	surrogateMin = 0xD800
    	surrogateMax = 0xDFFF
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 06 02:46:02 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  6. src/strconv/makeisprint.go

    	}
    	return y
    }
    
    func main() {
    	flag.Parse()
    
    	rang, except := scan(0, 0xFFFF)
    	range16 = to16(rang)
    	except16 = to16(except)
    	range32, except32 = scan(0x10000, unicode.MaxRune)
    
    	for i := rune(0); i <= unicode.MaxRune; i++ {
    		if isPrint(i) != unicode.IsPrint(i) {
    			log.Fatalf("%U: isPrint=%v, want %v\n", i, isPrint(i), unicode.IsPrint(i))
    		}
    	}
    
    	var buf bytes.Buffer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:56:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/regexp/syntax/compile.go

    }
    
    func (c *compiler) init() {
    	c.p = new(Prog)
    	c.p.NumCap = 2 // implicit ( and ) for whole match $0
    	c.inst(InstFail)
    }
    
    var anyRuneNotNL = []rune{0, '\n' - 1, '\n' + 1, unicode.MaxRune}
    var anyRune = []rune{0, unicode.MaxRune}
    
    func (c *compiler) compile(re *Regexp) frag {
    	switch re.Op {
    	case OpNoMatch:
    		return c.fail()
    	case OpEmptyMatch:
    		return c.nop()
    	case OpLiteral:
    		if len(re.Rune) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 13 14:52:20 UTC 2021
    - 6.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/exec_test.go

    	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) {
    					break
    				}
    			}
    			fmt.Fprintf(buf, "%c", r)
    		}
    		arg := buf.String()
    
    		if got := objabi.DecodeArg(encodeArg(arg)); got != arg {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 02 13:15:42 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  9. src/go/internal/gccgoimporter/importer_test.go

    	{pkgpath: "time", name: "Nanosecond", want: "const Nanosecond Duration", wantval: "1"},
    	{pkgpath: "unicode", name: "IsUpper", want: "func IsUpper(r rune) bool"},
    	{pkgpath: "unicode", name: "MaxRune", want: "const MaxRune untyped rune", wantval: "1114111"},
    	{pkgpath: "imports", wantinits: []string{"imports..import", "fmt..import"}},
    	{pkgpath: "importsar", name: "Hello", want: "var Hello string"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:17:57 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  10. src/syscall/wtf8_windows.go

    			i++
    		default:
    			// WTF-8 fallback.
    			// This only handles the 3-byte case of utf8.AppendRune,
    			// as surrogates always fall in that case.
    			ar = rune(r)
    			if ar > utf8.MaxRune {
    				ar = utf8.RuneError
    			}
    			buf = append(buf, t3|byte(ar>>12), tx|byte(ar>>6)&maskx, tx|byte(ar)&maskx)
    			continue
    		}
    		buf = utf8.AppendRune(buf, ar)
    	}
    	return buf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top