/// <summary> /// Constructs a transliterator. /// </summary> public CaseFoldTransliterator() : base(_ID, null) { csp = UCaseProperties.Instance; iter = new ReplaceableContextEnumerator(); result = new StringBuilder(); }
} // ICU4N TODO: API - see whether it makes sense to make a [Flags] enum for opt internal static CaseLocale GetCaseLocale(CultureInfo locale) { if (locale == null) { locale = CultureInfo.CurrentCulture; } return(UCaseProperties.GetCaseLocale(locale)); }
/// <summary> /// Constructs a transliterator. /// </summary> public UppercaseTransliterator(ULocale loc) : base(_ID, null) { locale = loc; csp = UCaseProperties.Instance; iter = new ReplaceableContextEnumerator(); result = new StringBuilder(); caseLocale = UCaseProperties.GetCaseLocale(locale); }
/// <summary> /// Constructs a transliterator. /// </summary> public TitlecaseTransliterator(ULocale loc) : base(_ID, null) { locale = loc; // Need to look back 2 characters in the case of "can't" MaximumContextLength = 2; csp = UCaseProperties.Instance; iter = new ReplaceableContextEnumerator(); result = new StringBuilder(); caseLocale = UCaseProperties.GetCaseLocale(locale); }