Beispiel #1
0
        internal static string NormalizeString(string word)
        {
#if !NOSTRNORMALIZE
            return(word.Normalize(NormalizationForm.FormKD));
#else
            return(KDTable.NormalizeKD(word));
#endif
        }
Beispiel #2
0
        internal static string NormalizeString(string word)
        {
#if !NOSTRNORMALIZE
            if (!SupportOsNormalization())
            {
                return(KDTable.NormalizeKD(word));
            }
            else
            {
                return(word.Normalize(NormalizationForm.FormKD));
            }
#else
            return(KDTable.NormalizeKD(word));
#endif
        }
Beispiel #3
0
        internal static string NormalizeString(string word)
        {
#if !NOSTRNORMALIZE
            if (IsRunningOnMono())
            {
                return(KDTable.NormalizeKD(word));
            }
            else
            {
                try
                {
                    return(word.Normalize(NormalizationForm.FormKD));
                }
                catch (NotImplementedException)
                {
                    return(KDTable.NormalizeKD(word));
                }
            }
#else
            return(KDTable.NormalizeKD(word));
#endif
        }
 internal static string NormalizeString(string word)
 {
     return(KDTable.NormalizeKD(word));
 }