Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for han (0.02 sec)

  1. src/bytes/example_test.go

    	fmt.Println(bytes.IndexByte([]byte("chicken"), byte('g')))
    	// Output:
    	// 4
    	// -1
    }
    
    func ExampleIndexFunc() {
    	f := func(c rune) bool {
    		return unicode.Is(unicode.Han, c)
    	}
    	fmt.Println(bytes.IndexFunc([]byte("Hello, 世界"), f))
    	fmt.Println(bytes.IndexFunc([]byte("Hello, world"), f))
    	// Output:
    	// 7
    	// -1
    }
    
    func ExampleIndexAny() {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 07 17:22:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    		// Cyrillic is mostly 2 and 3 byte runes.
    		benchBytes(b, indexSizes, bmIndexRuneUnicode(unicode.Cyrillic, 'Ꙁ'))
    	})
    	b.Run("Han", func(b *testing.B) {
    		// Han consists only of 3 and 4 byte runes.
    		benchBytes(b, indexSizes, bmIndexRuneUnicode(unicode.Han, '𠀿'))
    	})
    }
    
    func bmIndexRuneASCII(index func([]byte, rune) int) func(b *testing.B, n int) {
    	return func(b *testing.B, n int) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  3. RELEASE.md

    # Release 2.17.1
    
    ### Bug Fixes and Other Changes
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Oct 22 14:33:53 UTC 2024
    - 735.3K bytes
    - Viewed (0)
  4. api/go1.txt

    pkg unicode, var Gothic *RangeTable
    pkg unicode, var GraphicRanges []*RangeTable
    pkg unicode, var Greek *RangeTable
    pkg unicode, var Gujarati *RangeTable
    pkg unicode, var Gurmukhi *RangeTable
    pkg unicode, var Han *RangeTable
    pkg unicode, var Hangul *RangeTable
    pkg unicode, var Hanunoo *RangeTable
    pkg unicode, var Hebrew *RangeTable
    pkg unicode, var Hex_Digit *RangeTable
    pkg unicode, var Hiragana *RangeTable
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top