Exemple #1
0
        internal static string NormalizeString(string word)
        {
#if !NOSTRNORMALIZE
            return(word.Normalize(NormalizationForm.FormKD));
#else
            return(KDTable.NormalizeKD(word));
#endif
        }
Exemple #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
        }
Exemple #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));
 }