/// <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); }
private static string FoldCase(string foldee) { return(UCharacter.FoldCase(foldee, true)); }