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