/** * Constructs a transliterator. */ public CaseFoldTransliterator() : base(_ID, null) { csp = UCaseProps.Instance; iter = new ReplaceableContextIterator(); result = new StringBuilder(); }
/// <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); }