} // ICU4N TODO: API - see whether it makes sense to make a [Flags] enum for opt private static int GetCaseLocale(CultureInfo locale) { if (locale == null) { locale = CultureInfo.CurrentCulture; } return(UCaseProps.GetCaseLocale(locale)); }
/// <summary> /// Constructs a transliterator. /// </summary> public UppercaseTransliterator(ULocale loc) : base(_ID, null) { locale = loc; csp = UCaseProps.Instance; iter = new ReplaceableContextIterator(); result = new StringBuilder(); caseLocale = UCaseProps.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 = UCaseProps.Instance; iter = new ReplaceableContextIterator(); result = new StringBuilder(); caseLocale = UCaseProps.GetCaseLocale(locale); }