Index: Source/platform/text/PlatformLocale.cpp |
diff --git a/Source/platform/text/PlatformLocale.cpp b/Source/platform/text/PlatformLocale.cpp |
index 60acf5a59ba7e7e0b5abb69a3a4ca862ac4f605e..c79c85618633791549c7467bf4dd1612594f2d86 100644 |
--- a/Source/platform/text/PlatformLocale.cpp |
+++ b/Source/platform/text/PlatformLocale.cpp |
@@ -348,10 +348,15 @@ unsigned Locale::matchedDecimalSymbolIndex(const String& input, unsigned& positi |
return DecimalSymbolsSize; |
} |
+static bool isSpaceCharacter(UChar c) |
+{ |
+ return c == ' '; |
+} |
+ |
String Locale::convertFromLocalizedNumber(const String& localized) |
{ |
initializeLocaleData(); |
- String input = localized.stripWhiteSpace(); |
+ String input = localized.removeCharacters(isSpaceCharacter); |
tkent
2014/04/16 01:52:51
Let's use isASCIISpace in wtf/ASCIICType.h for sim
gnana
2014/04/16 14:13:56
Done.
|
if (!m_hasLocaleData || input.isEmpty()) |
return input; |