"0: =#,##0=$(ordinal,one{st}two{nd}few{rd}other{th})$;",
}
SpelloutRules{
+ "%%lenient-parse:",
+ "&[last primary ignorable ] << ' ' << ',' << '-' << '\u00AD';",
"%%2d-year:",
"0: hundred;",
"1: oh-=%spellout-numbering=;",
<?xml version="1.0" encoding="UTF-8" ?>
<!--
- Copyright (c) 2013-2015 International Business Machines Corporation and others. All rights reserved.
+ Copyright (c) 2013-2016 International Business Machines Corporation and others. All rights reserved.
-->
<!DOCTYPE ldml SYSTEM "http://www.unicode.org/repos/cldr/trunk/common/dtd/ldml.dtd">
<ldml>
<rbnfrule value="0">& ':' = '.' = ' ' = '-';</rbnfrule>
</ruleset>
</rulesetGrouping>
+ <rulesetGrouping type="SpelloutRules">
+ <ruleset type="lenient-parse" access="private">
+ <rbnfrule value="0">&[last primary ignorable ] ←← ' ' ←← ',' ←← '-' ←← '';</rbnfrule>
+ </ruleset>
+ </rulesetGrouping>
</rbnf>
</ldml>
doTest(formatter, testData, TRUE);
#if !UCONFIG_NO_COLLATION
- if( !logKnownIssue("9503") ) {
- formatter->setLenient(TRUE);
- static const char* lpTestData[][2] = {
+ formatter->setLenient(TRUE);
+ static const char* lpTestData[][2] = {
{ "fifty-7", "57" },
{ " fifty-7", "57" },
{ " fifty-7", "57" },
{ "fifteen hundred and zero", "1,500" },
{ "FOurhundred thiRTY six", "436" },
{ NULL, NULL}
- };
- doLenientParseTest(formatter, lpTestData);
- }
+ };
+ doLenientParseTest(formatter, lpTestData);
#endif
}
delete formatter;