Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TypeForKey (0.25 sec)

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

    const _und = 0
    
    type fullTag interface {
    	IsRoot() bool
    	Parent() language.Tag
    }
    
    // Make a compact Tag from a fully specified internal language Tag.
    func Make(t language.Tag) (tag Tag) {
    	if region := t.TypeForKey("rg"); len(region) == 6 && region[2:] == "zzzz" {
    		if r, err := language.ParseRegion(region[:2]); err == nil {
    			tFull := t
    			t, _ = t.SetTypeForKey("rg", "")
    			// TODO: should we not consider "va" for the language tag?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/language/language.go

    		e = append(e, Extension{ext})
    	}
    	return e
    }
    
    // TypeForKey returns the type associated with the given key, where key and type
    // are of the allowed values defined for the Unicode locale extension ('u') in
    // https://www.unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers.
    // TypeForKey will traverse the inheritance chain to get the correct value.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/internal/language/language.go

    		i, ext = getExtension(t.str, i)
    		e = append(e, ext)
    	}
    	return e
    }
    
    // TypeForKey returns the type associated with the given key, where key and type
    // are of the allowed values defined for the Unicode locale extension ('u') in
    // https://www.unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers.
    // TypeForKey will traverse the inheritance chain to get the correct value.
    //
    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