Пример #1
0
        private void ReadCollationRulesForCustomSimple(string collationXml, WritingSystemDefinitionV0 ws)
        {
            string rules;

            if (LdmlCollationParserV0.TryGetSimpleRulesFromCollationNode(collationXml, out rules))
            {
                ws.SortRules = rules;
                return;
            }
            // fall back to ICU rules if Simple rules don't work
            ws.SortUsing = WritingSystemDefinitionV0.SortRulesType.CustomICU;
            ReadCollationRulesForCustomICU(collationXml, ws);
        }
Пример #2
0
 private void ReadCollationRulesForCustomICU(string collationXml, WritingSystemDefinitionV0 ws)
 {
     ws.SortRules = LdmlCollationParserV0.GetIcuRulesFromCollationNode(collationXml);
 }