Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(878)

Side by Side Diff: third_party/WebKit/Source/platform/text/LocaleICUTest.cpp

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return builder.toString(); 69 return builder.toString();
70 } 70 }
71 71
72 private: 72 private:
73 Vector<String> m_labels; 73 Vector<String> m_labels;
74 }; 74 };
75 75
76 protected: 76 protected:
77 Labels labelsFromTwoElements(const String& element1, const String& element2) { 77 Labels labelsFromTwoElements(const String& element1, const String& element2) {
78 Vector<String> labels = Vector<String>(); 78 Vector<String> labels = Vector<String>();
79 labels.append(element1); 79 labels.push_back(element1);
80 labels.append(element2); 80 labels.push_back(element2);
81 return Labels(labels); 81 return Labels(labels);
82 } 82 }
83 83
84 String monthFormat(const char* localeString) { 84 String monthFormat(const char* localeString) {
85 std::unique_ptr<LocaleICU> locale = LocaleICU::create(localeString); 85 std::unique_ptr<LocaleICU> locale = LocaleICU::create(localeString);
86 return locale->monthFormat(); 86 return locale->monthFormat();
87 } 87 }
88 88
89 String localizedDateFormatText(const char* localeString) { 89 String localizedDateFormatText(const char* localeString) {
90 std::unique_ptr<LocaleICU> locale = LocaleICU::create(localeString); 90 std::unique_ptr<LocaleICU> locale = LocaleICU::create(localeString);
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 testNumbers("de_DE"); 290 testNumbers("de_DE");
291 testNumbers("es_ES"); 291 testNumbers("es_ES");
292 testNumbers("ja_JP"); 292 testNumbers("ja_JP");
293 testNumbers("ko_KR"); 293 testNumbers("ko_KR");
294 testNumbers("zh_CN"); 294 testNumbers("zh_CN");
295 testNumbers("zh_HK"); 295 testNumbers("zh_HK");
296 testNumbers("zh_TW"); 296 testNumbers("zh_TW");
297 } 297 }
298 298
299 } // namespace blink 299 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/LocaleICU.cpp ('k') | third_party/WebKit/Source/platform/text/QuotedPrintable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698