Ejemplo n.º 1
0
 public static bool ValidateSortRules(string rules, out string message)
 {
     Collator.CollationRuleErrorInfo errorInfo = Collator.CheckRules(LdmlCollationParser.ReplaceUnicodeEscapesForIcu(rules));
     if (errorInfo != null)
     {
         message = string.Format("Invalid ICU rules (Line: {0}, Column: {1}).", errorInfo.Line, errorInfo.Offset);
         return(false);
     }
     message = null;
     return(true);
 }