Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleIndexAny (0.06 sec)

  1. src/bytes/example_test.go

    		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() {
    	fmt.Println(bytes.IndexAny([]byte("chicken"), "aeiouy"))
    	fmt.Println(bytes.IndexAny([]byte("crwth"), "aeiouy"))
    	// Output:
    	// 2
    	// -1
    }
    
    func ExampleIndexRune() {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 07 17:22:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top