From d7e92f2c9aa4f0c5c4bcd03d0bbbb83b53bb3e7a Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Wed, 2 Mar 2016 08:16:29 +0000 Subject: [PATCH] ICU-9503 Undo removal of lenient parse data. Only English wasn't moved to CLDR. X-SVN-Rev: 38461 --- icu4c/source/data/rbnf/en.txt | 2 ++ icu4c/source/data/xml/rbnf/en.xml | 7 ++++++- icu4c/source/test/intltest/itrbnf.cpp | 10 ++++------ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/icu4c/source/data/rbnf/en.txt b/icu4c/source/data/rbnf/en.txt index 104cf97b6e6..b5705b18a5c 100644 --- a/icu4c/source/data/rbnf/en.txt +++ b/icu4c/source/data/rbnf/en.txt @@ -42,6 +42,8 @@ en{ "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=;", diff --git a/icu4c/source/data/xml/rbnf/en.xml b/icu4c/source/data/xml/rbnf/en.xml index b82d7ecb133..e0754da4864 100644 --- a/icu4c/source/data/xml/rbnf/en.xml +++ b/icu4c/source/data/xml/rbnf/en.xml @@ -1,6 +1,6 @@ @@ -43,5 +43,10 @@ & ':' = '.' = ' ' = '-'; + + + &[last primary ignorable ] ←← ' ' ←← ',' ←← '-' ←← '­'; + + diff --git a/icu4c/source/test/intltest/itrbnf.cpp b/icu4c/source/test/intltest/itrbnf.cpp index 937bbee47dc..037cda10a32 100644 --- a/icu4c/source/test/intltest/itrbnf.cpp +++ b/icu4c/source/test/intltest/itrbnf.cpp @@ -1166,9 +1166,8 @@ IntlTestRBNF::TestEnglishSpellout() 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" }, @@ -1176,9 +1175,8 @@ IntlTestRBNF::TestEnglishSpellout() { "fifteen hundred and zero", "1,500" }, { "FOurhundred thiRTY six", "436" }, { NULL, NULL} - }; - doLenientParseTest(formatter, lpTestData); - } + }; + doLenientParseTest(formatter, lpTestData); #endif } delete formatter; -- 2.40.0