Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for 0x10FFFF (0.1 sec)

  1. src/regexp/syntax/parse_test.go

    	{`\s`, `cc{0x9-0xa 0xc-0xd 0x20}`},
    	{`\S`, `cc{0x0-0x8 0xb 0xe-0x1f 0x21-0x10ffff}`},
    	{`\w`, `cc{0x30-0x39 0x41-0x5a 0x5f 0x61-0x7a}`},
    	{`\W`, `cc{0x0-0x2f 0x3a-0x40 0x5b-0x5e 0x60 0x7b-0x10ffff}`},
    	{`(?i)\w`, `cc{0x30-0x39 0x41-0x5a 0x5f 0x61-0x7a 0x17f 0x212a}`},
    	{`(?i)\W`, `cc{0x0-0x2f 0x3a-0x40 0x5b-0x5e 0x60 0x7b-0x17e 0x180-0x2129 0x212b-0x10ffff}`},
    	{`[^\\]`, `cc{0x0-0x5b 0x5d-0x10ffff}`},
    	//	{ `\C`, `byte{}` },  // probably never
    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. test/string_lit.go

    	assert("\\x\\u\\U\\", `\x\u\U\`, "backslash 3 (backquote)")
    
    	// test large and surrogate-half runes. perhaps not the most logical place for these tests.
    	var r int32
    	r = 0x10ffff // largest rune value
    	s = string(r)
    	assert(s, "\xf4\x8f\xbf\xbf", "largest rune")
    	r = 0x10ffff + 1
    	s = string(r)
    	assert(s, "\xef\xbf\xbd", "too-large rune")
    	r = 0xD800
    	s = string(r)
    	assert(s, "\xef\xbf\xbd", "surrogate rune min")
    	r = 0xDFFF
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 13 01:17:02 UTC 2013
    - 3.6K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/internal/xml/XmlValidationTest.groovy

            0xb            | _
            0xf            | _
            (0x20 - 1)     | _
            (0xd7ff + 1)   | _
            (0xe000 - 1)   | _
            (0xfffd + 1)   | _
            (0x10000 - 1)  | _
            (0x10ffff + 1) | _
        }
    
        def "identifies legal character"() {
            expect:
            //	Char	   ::=   	#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 22 14:56:07 UTC 2019
    - 3.5K bytes
    - Viewed (0)
  4. src/unicode/utf16/utf16_test.go

    		}
    	}
    }
    
    type encodeTest struct {
    	in  []rune
    	out []uint16
    }
    
    var encodeTests = []encodeTest{
    	{[]rune{1, 2, 3, 4}, []uint16{1, 2, 3, 4}},
    	{[]rune{0xffff, 0x10000, 0x10001, 0x12345, 0x10ffff},
    		[]uint16{0xffff, 0xd800, 0xdc00, 0xd800, 0xdc01, 0xd808, 0xdf45, 0xdbff, 0xdfff}},
    	{[]rune{'a', 'b', 0xd7ff, 0xd800, 0xdfff, 0xe000, 0x110000, -1},
    		[]uint16{'a', 'b', 0xd7ff, 0xfffd, 0xfffd, 0xe000, 0xfffd, 0xfffd}},
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. test/stringrange.go

    package main
    
    import (
    	"fmt"
    	"os"
    	"unicode/utf8"
    )
    
    func main() {
    	s := "\000\123\x00\xca\xFE\u0123\ubabe\U0000babe\U0010FFFFx"
    	expect := []rune{0, 0123, 0, 0xFFFD, 0xFFFD, 0x123, 0xbabe, 0xbabe, 0x10FFFF, 'x'}
    	offset := 0
    	var i int
    	var c rune
    	ok := true
    	cnum := 0
    	for i, c = range s {
    		r, size := utf8.DecodeRuneInString(s[i:len(s)]) // check it another way
    		if i != offset {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 08 21:01:23 UTC 2012
    - 1.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/PercentEscaper.java

          dest[4] = UPPER_HEX_DIGITS[0x8 | (cp & 0x3)];
          cp >>>= 2;
          dest[2] = UPPER_HEX_DIGITS[cp];
          return dest;
        } else if (cp <= 0x10ffff) {
          char[] dest = new char[12];
          // Four byte UTF-8 characters [cp >= 0xffff && cp <= 0x10ffff]
          // Start with "%F-%--%--%--" and fill in the blanks
          dest[0] = '%';
          dest[1] = 'F';
          dest[3] = '%';
          dest[6] = '%';
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/net/PercentEscaper.java

          dest[4] = UPPER_HEX_DIGITS[0x8 | (cp & 0x3)];
          cp >>>= 2;
          dest[2] = UPPER_HEX_DIGITS[cp];
          return dest;
        } else if (cp <= 0x10ffff) {
          char[] dest = new char[12];
          // Four byte UTF-8 characters [cp >= 0xffff && cp <= 0x10ffff]
          // Start with "%F-%--%--%--" and fill in the blanks
          dest[0] = '%';
          dest[1] = 'F';
          dest[3] = '%';
          dest[6] = '%';
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

      }
    
      @Test fun outOfBounds() {
        assertFailsWith<IllegalArgumentException> {
          table.map(-1, Buffer())
        }
        table.map(0, Buffer()) // Lowest legal code point.
        table.map(0x10ffff, Buffer()) // Highest legal code point.
        assertFailsWith<IllegalArgumentException> {
          table.map(0x110000, Buffer())
        }
      }
    
      @Test fun binarySearchEvenSizedRange() {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. src/unicode/utf8/example_test.go

    	fmt.Println(buf)
    	fmt.Println(n)
    	// Output:
    	// [228 184 150]
    	// 3
    }
    
    func ExampleEncodeRune_outOfRange() {
    	runes := []rune{
    		// Less than 0, out of range.
    		-1,
    		// Greater than 0x10FFFF, out of range.
    		0x110000,
    		// The Unicode replacement character.
    		utf8.RuneError,
    	}
    	for i, c := range runes {
    		buf := make([]byte, 3)
    		size := utf8.EncodeRune(buf, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 21:29:18 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  10. src/encoding/json/scanner_test.go

    }
    
    func genString(stddev float64) string {
    	n := int(math.Abs(rand.NormFloat64()*stddev + stddev/2))
    	c := make([]rune, n)
    	for i := range c {
    		f := math.Abs(rand.NormFloat64()*64 + 32)
    		if f > 0x10ffff {
    			f = 0x10ffff
    		}
    		c[i] = rune(f)
    	}
    	return string(c)
    }
    
    func genArray(n int) []any {
    	f := int(math.Abs(rand.NormFloat64()) * math.Min(10, float64(n/2)))
    	if f > n {
    		f = n
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:00:37 UTC 2023
    - 6.9K bytes
    - Viewed (0)
Back to top