Ejemplo n.º 1
0
 /// <seealso cref="Transliterator.AddSourceTargetSet(UnicodeSet, UnicodeSet, UnicodeSet)"/>
 public override void AddSourceTargetSet(UnicodeSet inputFilter, UnicodeSet sourceSet, UnicodeSet targetSet)
 {
     lock (typeof(UppercaseTransliterator))
     {
         if (sourceTargetUtility == null)
         {
             sourceTargetUtility = new SourceTargetUtility(new StringTransform(transform: (source) =>
             {
                 return(UCharacter.FoldCase(source, true));
             }));
         }
     }
     sourceTargetUtility.AddSourceTargetSet(this, inputFilter, sourceSet, targetSet);
 }
Ejemplo n.º 2
0
 private static string FoldCase(string foldee)
 {
     return(UCharacter.FoldCase(foldee, true));
 }