/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="variants">enumarate of variant subtags</param> /// <param name="privateUseSubtags">private use subtag</param> public LanguageTag(Language lang, IEnumerable <Variant> variants, PrivateUseSubtags privateUseSubtags) : this( (Language?)lang, null, null, VariantCollection.Create(lang, null, variants), default, privateUseSubtags) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="script">script subtag</param> /// <param name="region">region subtag</param> /// <param name="variants">enumarate of variant subtags</param> /// <param name="extSubtags">enumarate of extensions subtags</param> /// <param name="privateUseSubtags">private use subtag</param> public LanguageTag(Language lang, Script?script, Region?region, IEnumerable <Variant> variants, IEnumerable <ExtensionSubtag> extSubtags, PrivateUseSubtags privateUseSubtags) : this( (Language?)lang, script, region, VariantCollection.Create(lang, script, variants), new ExtensionSubtagCollection(extSubtags), privateUseSubtags) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="variants">enumarate of variant subtags</param> public LanguageTag(Language lang, IEnumerable <Variant> variants) : this( (Language?)lang, null, null, VariantCollection.Create(lang, null, variants), default, default) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="script">script subtag</param> /// <param name="variants">enumarate of variant subtags</param> /// <param name="extSubtags">enumarate of extensions subtags</param> public LanguageTag(Language lang, Script?script, IEnumerable <Variant> variants, IEnumerable <ExtensionSubtag> extSubtags) : this( (Language?)lang, script, null, VariantCollection.Create(lang, script, variants), new ExtensionSubtagCollection(extSubtags), default) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="script">script subtag</param> /// <param name="region">region subtag</param> /// <param name="variants">enumarate of variant subtags</param> /// <param name="privateUseSubtags">private use subtag</param> public LanguageTag(Language lang, Script?script, Region?region, IEnumerable <Variant> variants, PrivateUseSubtags privateUseSubtags) : this( (Language?)lang, script, region, VariantCollection.Create(lang, script, variants), default, privateUseSubtags) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="variants">enumarate of variant subtags</param> /// <param name="extSubtags">enumarate of extensions subtags</param> /// <param name="privateUseSubtags">private use subtag</param> public LanguageTag(Language lang, IEnumerable <Variant> variants, IEnumerable <ExtensionSubtag> extSubtags, PrivateUseSubtags privateUseSubtags) : this( (Language?)lang, null, null, VariantCollection.Create(lang, null, variants), new ExtensionSubtagCollection(extSubtags), privateUseSubtags) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="region">region subtag</param> /// <param name="variants">enumarate of variant subtags</param> /// <param name="extSubtags">enumarate of extensions subtags</param> public LanguageTag(Language lang, Region?region, IEnumerable <Variant> variants, IEnumerable <ExtensionSubtag> extSubtags) : this( (Language?)lang, null, region, VariantCollection.Create(lang, null, variants), new ExtensionSubtagCollection(extSubtags), default) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="variants">enumarate of variant subtags</param> /// <param name="privateUseSubtags">private use subtag</param> public LanguageTag(Language lang, IEnumerable <Variant>?variants, ExtensionSubtag privateUseSubtags) : this( lang, null, null, VariantCollection.Create(lang, null, variants), default, privateUseSubtags) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="script">script subtag</param> /// <param name="region">region subtag</param> /// <param name="variants">enumarate of variant subtags</param> /// <param name="extSubtags">enumarate of extensions subtags</param> public LanguageTag(Language lang, Script?script, Region?region, IEnumerable <Variant>?variants, IEnumerable <ExtensionSubtag>?extSubtags) : this( lang, script, region, VariantCollection.Create(lang, script, variants), new ExtensionSubtagCollection(extSubtags), default) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="script">script subtag</param> /// <param name="region">region subtag</param> /// <param name="variants">enumarate of variant subtags</param> public LanguageTag(Language lang, Script?script, Region?region, IEnumerable <Variant>?variants) : this( lang, script, region, VariantCollection.Create(lang, script, variants), default, default) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="script">script subtag</param> /// <param name="variants">enumarate of variant subtags</param> /// <param name="extSubtags">enumarate of extensions subtags</param> /// <param name="privateUseSubtags">private use subtag</param> public LanguageTag(Language lang, Script?script, IEnumerable <Variant>?variants, IEnumerable <ExtensionSubtag>?extSubtags, ExtensionSubtag privateUseSubtags) : this( lang, script, null, VariantCollection.Create(lang, script, variants), new ExtensionSubtagCollection(extSubtags), privateUseSubtags) { }
/// <summary> /// Initializes new value of <see cref="LanguageTag"/> /// </summary> /// <param name="lang">primary language</param> /// <param name="variants">enumarate of variant subtags</param> /// <param name="extSubtags">enumarate of extensions subtags</param> public LanguageTag(Language lang, IEnumerable <Variant>?variants, IEnumerable <ExtensionSubtag>?extSubtags) : this( lang, null, null, VariantCollection.Create(lang, null, variants), new ExtensionSubtagCollection(extSubtags), default) { }