コード例 #1
0
 /// <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)
 {
 }
コード例 #2
0
 /// <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)
 {
 }
コード例 #3
0
 /// <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)
 {
 }
コード例 #4
0
 /// <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)
 {
 }
コード例 #5
0
 /// <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)
 {
 }
コード例 #6
0
 /// <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)
 {
 }
コード例 #7
0
 /// <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)
 {
 }
コード例 #8
0
ファイル: LanguageTag.Ctors.cs プロジェクト: ExM/NLanguageTag
 /// <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)
 {
 }
コード例 #9
0
ファイル: LanguageTag.Ctors.cs プロジェクト: ExM/NLanguageTag
 /// <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)
 {
 }
コード例 #10
0
ファイル: LanguageTag.Ctors.cs プロジェクト: ExM/NLanguageTag
 /// <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)
 {
 }
コード例 #11
0
ファイル: LanguageTag.Ctors.cs プロジェクト: ExM/NLanguageTag
 /// <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)
 {
 }
コード例 #12
0
ファイル: LanguageTag.Ctors.cs プロジェクト: ExM/NLanguageTag
 /// <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)
 {
 }