Changeset 128156 in webkit
- Timestamp:
- Sep 11, 2012 1:15:20 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r128155 r128156 1 2012-09-11 Keishi Hattori <keishi@webkit.org> 2 3 Create Localizer factory method for LocaleMac 4 https://bugs.webkit.org/show_bug.cgi?id=96355 5 6 Reviewed by Kent Tamura. 7 8 Preparing to use Localizer instead of LocaleMac/Win/ICU 9 10 No new tests. Covered in unit test tests/LocaleMacTest.cpp 11 12 * platform/text/Localizer.h: 13 (Localizer): 14 * platform/text/mac/LocaleMac.mm: 15 (WebCore::Localizer::create): 16 (WebCore): 17 1 18 2012-09-11 Mihnea Ovidenie <mihnea@adobe.com> 2 19 -
trunk/Source/WebCore/platform/text/Localizer.h
r128147 r128156 33 33 class Localizer { 34 34 public: 35 static PassOwnPtr<Localizer> create(const AtomicString&); 35 36 String convertToLocalizedNumber(const String&); 36 37 String convertFromLocalizedNumber(const String&); -
trunk/Source/WebCore/platform/text/mac/LocaleMac.mm
r128147 r128156 46 46 namespace WebCore { 47 47 48 PassOwnPtr<Localizer> Localizer::create(const AtomicString& locale) 49 { 50 return LocaleMac::create(locale.string()); 51 } 52 48 53 static NSDateFormatter* createDateTimeFormatter(NSLocale* locale, NSDateFormatterStyle dateStyle, NSDateFormatterStyle timeStyle) 49 54 { -
trunk/Source/WebKit/chromium/ChangeLog
r128151 r128156 1 2012-09-11 Keishi Hattori <keishi@webkit.org> 2 3 Create Localizer factory method for LocaleMac 4 https://bugs.webkit.org/show_bug.cgi?id=96355 5 6 Reviewed by Kent Tamura. 7 8 * tests/LocaleMacTest.cpp: 9 (testNumberIsReversible): Use Localizer::create. 10 (testNumbers): 11 1 12 2012-09-11 Sheriff Bot <webkit.review.bot@gmail.com> 2 13 -
trunk/Source/WebKit/chromium/tests/LocaleMacTest.cpp
r125141 r128156 222 222 #endif 223 223 224 static void testNumberIsReversible(const String& localeString, const char* original, const char* shouldHave = 0)225 { 226 OwnPtr<Local eMac> locale = LocaleMac::create(localeString);224 static void testNumberIsReversible(const AtomicString& localeString, const char* original, const char* shouldHave = 0) 225 { 226 OwnPtr<Localizer> locale = Localizer::create(localeString); 227 227 String localized = locale->convertToLocalizedNumber(original); 228 228 if (shouldHave) … … 232 232 } 233 233 234 void testNumbers(const String& localeString, const char* decimalSeparatorShouldBe = 0)234 void testNumbers(const AtomicString& localeString, const char* decimalSeparatorShouldBe = 0) 235 235 { 236 236 testNumberIsReversible(localeString, "123456789012345678901234567890");
Note: See TracChangeset
for help on using the changeset viewer.