Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for maxRune (0.35 sec)

  1. 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)
  2. 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)
  3. src/unicode/utf8/utf8_test.go

    func init() {
    	if MaxRune != unicode.MaxRune {
    		panic("utf8.MaxRune is wrong")
    	}
    	if RuneError != unicode.ReplacementChar {
    		panic("utf8.RuneError is wrong")
    	}
    }
    
    // Validate the constants redefined from unicode.
    func TestConstants(t *testing.T) {
    	if MaxRune != unicode.MaxRune {
    		t.Errorf("utf8.MaxRune is wrong: %x should be %x", MaxRune, unicode.MaxRune)
    	}
    	if RuneError != unicode.ReplacementChar {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 06:17:15 UTC 2022
    - 16.2K 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/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)
  6. src/unicode/letter.go

    // license that can be found in the LICENSE file.
    
    // Package unicode provides data and functions to test some properties of
    // Unicode code points.
    package unicode
    
    const (
    	MaxRune         = '\U0010FFFF' // Maximum valid Unicode code point.
    	ReplacementChar = '\uFFFD'     // Represents invalid code points.
    	MaxASCII        = '\u007F'     // maximum ASCII value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 20:02:46 UTC 2023
    - 10K bytes
    - Viewed (0)
  7. src/unicode/utf8/utf8.go

    // MaxRune==unicode.MaxRune are verified in the tests.
    // Defining them locally avoids this package depending on package unicode.
    
    // 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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K 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/strings/strings_test.go

    	// 1.  Grow. This triggers two reallocations in Map.
    	maxRune := func(rune) rune { return unicode.MaxRune }
    	m := Map(maxRune, a)
    	expect := tenRunes(unicode.MaxRune)
    	if m != expect {
    		t.Errorf("growing: expected %q got %q", expect, m)
    	}
    
    	// 2. Shrink
    	minRune := func(rune) rune { return 'a' }
    	m = Map(minRune, tenRunes(unicode.MaxRune))
    	expect = a
    	if m != expect {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  10. 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)
Back to top