Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for regionInclusion (0.27 sec)

  1. src/cmd/vendor/golang.org/x/text/internal/language/language.go

    func (r Region) IsGroup() bool {
    	if r == 0 {
    		return false
    	}
    	return int(regionInclusion[r]) < len(regionContainment)
    }
    
    // Contains returns whether Region c is contained by Region r. It returns true
    // if c == r.
    func (r Region) Contains(c Region) bool {
    	if r == c {
    		return true
    	}
    	g := regionInclusion[r]
    	if g >= nRegionGroups {
    		return false
    	}
    	m := regionContainment[g]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 16.8K bytes
    - Viewed (0)
Back to top