コード例 #1
0
 /// <summary>
 /// Constructs a transliterator.
 /// </summary>
 public CaseFoldTransliterator()
     : base(_ID, null)
 {
     csp    = UCaseProperties.Instance;
     iter   = new ReplaceableContextEnumerator();
     result = new StringBuilder();
 }
コード例 #2
0
        }                                                    // ICU4N TODO: API - see whether it makes sense to make a [Flags] enum for opt

        internal static CaseLocale GetCaseLocale(CultureInfo locale)
        {
            if (locale == null)
            {
                locale = CultureInfo.CurrentCulture;
            }
            return(UCaseProperties.GetCaseLocale(locale));
        }
コード例 #3
0
 /// <summary>
 /// Constructs a transliterator.
 /// </summary>
 public UppercaseTransliterator(ULocale loc)
     : base(_ID, null)
 {
     locale     = loc;
     csp        = UCaseProperties.Instance;
     iter       = new ReplaceableContextEnumerator();
     result     = new StringBuilder();
     caseLocale = UCaseProperties.GetCaseLocale(locale);
 }
コード例 #4
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        = UCaseProperties.Instance;
     iter       = new ReplaceableContextEnumerator();
     result     = new StringBuilder();
     caseLocale = UCaseProperties.GetCaseLocale(locale);
 }