Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cleanClass (0.29 sec)

  1. src/regexp/syntax/parse.go

    	// Use &re.Rune instead of &class to avoid allocation.
    	re.Rune = class
    	class = cleanClass(&re.Rune)
    	if sign < 0 {
    		class = negateClass(class)
    	}
    	re.Rune = class
    	p.push(re)
    	return t, nil
    }
    
    // cleanClass sorts the ranges (pairs of elements of r),
    // merges them, and eliminates duplicates.
    func cleanClass(rp *[]rune) []rune {
    
    	// Sort by lo increasing, hi decreasing to break ties.
    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