C# 클래스 SIL.CoreImpl.VariantSubtag

This class represents a variant from the IANA language subtag registry.
상속: Subtag
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
ExtractLanguageCode ( string variant ) : string

When Language is "qaa" we embed the language name as the first private-use element (after any initial x- or embedded -x-) in the variant. Extract this and return it.

IsVariantOf ( string langTag ) : bool

Determines whether this subtag can be used with the specified lang tag.

VariantSubtag ( VariantSubtag subtag, string name ) : System

Initializes a new instance of the T:VariantSubtag class.

VariantSubtag ( string code, string name, bool isPrivateUse, IEnumerable prefixes ) : System

Initializes a new instance of the T:VariantSubtag class.

비공개 메소드들

메소드 설명
RemovePrivateLanguageName ( string code ) : string

Assuming the input is a variant which is or contains a private language name, remove it and return the rest. Return an empty string if there is nothing else.

메소드 상세

ExtractLanguageCode() 공개 정적인 메소드

When Language is "qaa" we embed the language name as the first private-use element (after any initial x- or embedded -x-) in the variant. Extract this and return it.
public static ExtractLanguageCode ( string variant ) : string
variant string
리턴 string

IsVariantOf() 공개 메소드

Determines whether this subtag can be used with the specified lang tag.
public IsVariantOf ( string langTag ) : bool
langTag string The lang tag.
리턴 bool

VariantSubtag() 공개 메소드

Initializes a new instance of the T:VariantSubtag class.
public VariantSubtag ( VariantSubtag subtag, string name ) : System
subtag VariantSubtag The subtag.
name string The name.
리턴 System

VariantSubtag() 공개 메소드

Initializes a new instance of the T:VariantSubtag class.
public VariantSubtag ( string code, string name, bool isPrivateUse, IEnumerable prefixes ) : System
code string The code.
name string The name.
isPrivateUse bool if set to true this is a private use subtag.
prefixes IEnumerable The prefixes.
리턴 System