/// <summary>
 /// Constructs a transliterator.
 /// </summary>
 ///
 public UppercaseTransliterator(ULocale loc) : base(_ID, null)
 {
     locale = loc;
     try {
         csp = IBM.ICU.Impl.UCaseProps.GetSingleton();
     } catch (IOException e) {
         csp = null;
     }
     iter        = new ReplaceableContextIterator();
     result      = new StringBuilder();
     locCache    = new int[1];
     locCache[0] = 0;
 }
示例#2
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"
     SetMaximumContextLength(2);
     try {
         csp = IBM.ICU.Impl.UCaseProps.GetSingleton();
     } catch (IOException e) {
         csp = null;
     }
     iter        = new ReplaceableContextIterator();
     result      = new StringBuilder();
     locCache    = new int[1];
     locCache[0] = 0;
 }