예제 #1
0
        /**
         * Constructs a transliterator.
         */

        public CaseFoldTransliterator()
            : base(_ID, null)
        {
            csp    = UCaseProps.Instance;
            iter   = new ReplaceableContextIterator();
            result = new StringBuilder();
        }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }