Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isHTMLSpace (0.1 sec)

  1. src/html/template/url.go

    // Derived from https://play.golang.org/p/Dhmj7FORT5
    const htmlSpaceAndASCIIAlnumBytes = "\x00\x36\x00\x00\x01\x00\xff\x03\xfe\xff\xff\x07\xfe\xff\xff\x07"
    
    // isHTMLSpace is true iff c is a whitespace character per
    // https://infra.spec.whatwg.org/#ascii-whitespace
    func isHTMLSpace(c byte) bool {
    	return (c <= 0x20) && 0 != (htmlSpaceAndASCIIAlnumBytes[c>>3]&(1<<uint(c&0x7)))
    }
    
    func isHTMLSpaceOrASCIIAlnum(c byte) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 6.6K bytes
    - Viewed (0)
Back to top