Class LanguageTag
Provides methods for working with BCP 47 language tags.
Inheritance
System.Object
LanguageTag
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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 |
---|---|
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 |
---|---|
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 |
---|---|---|
string | languageTag | The string to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if |