Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parseNamedClass (0.2 sec)

  1. src/regexp/syntax/parse.go

    	if g.sign == 0 {
    		return
    	}
    	return p.appendGroup(r, g), s[2:]
    }
    
    // parseNamedClass parses a leading POSIX named character class like [:alnum:]
    // from the beginning of s. If one is present, it appends the characters to r
    // and returns the new slice r and the remainder of the string.
    func (p *parser) parseNamedClass(s string, r []rune) (out []rune, rest string, err error) {
    	if len(s) < 2 || s[0] != '[' || s[1] != ':' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
Back to top