Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(193)

Unified Diff: icu4c/source/i18n/decimfmt.cpp

Issue 339290043: Adding currency names matcher to C++ number parsing code. Base URL: svn+icussh://source.icu-project.org/repos/icu/branches/shane/numberformat4/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: icu4c/source/i18n/decimfmt.cpp
===================================================================
--- icu4c/source/i18n/decimfmt.cpp (revision 40880)
+++ icu4c/source/i18n/decimfmt.cpp (working copy)
@@ -2171,10 +2171,11 @@
// determine our locale.
const char* loc = fCurrencyPluralInfo->getLocale().getName();
ParsePosition ppos(pos);
+ int32_t currMatchLen = 0;
UChar curr[4];
UErrorCode ec = U_ZERO_ERROR;
// Delegate parse of display name => ISO code to Currency
- uprv_parseCurrency(loc, text, ppos, type, curr, ec);
+ uprv_parseCurrency(loc, text, ppos, type, &currMatchLen, curr, ec);
// If parse succeeds, populate currency[0]
if (U_SUCCESS(ec) && ppos.getIndex() != pos) {

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b