Class LanguageTag
Provides methods for working with BCP 47 language tags
Inheritance
System.Object
LanguageTag
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Parsing
Assembly: dotNetRDF.dll
Syntax
public class LanguageTag
Fields
| Improve this Doc View SourceIrregularGrandfatheredTags
Tags that do not match the general langtag production and which would not otherwise be considered well-formed,
but which are valid although deprecated in most cases.
Declaration
public static readonly string[] IrregularGrandfatheredTags
Field Value
Type | Description |
---|---|
System.String[] |
RegularGrandfatheredTags
Tags that do match the general langtag production but their subtags are not semantically valid. These are
also considered valid tags although all are deprecated.
Declaration
public static readonly string[] RegularGrandfatheredTags
Field Value
Type | Description |
---|---|
System.String[] |
Methods
| Improve this Doc View SourceIsWellFormed(String)
Determine if a string represents a well-formed language tag.
Declaration
public static bool IsWellFormed(string languageTag)
Parameters
Type | Name | Description |
---|---|---|
System.String | languageTag | The string to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if languageTag is a well-formed language or a grandfathered tag that is considered valid. |