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

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

Issue 2799683005: Rewrite references to "wtf/" to "platform/wtf/" in platform/text. (Closed)
Patch Set: Created 3 years, 8 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Google Inc. 3 * Copyright (C) 2008, 2009 Google Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA. 18 * Boston, MA 02111-1307, USA.
19 * 19 *
20 */ 20 */
21 21
22 #include "platform/text/TextBreakIteratorInternalICU.h" 22 #include "platform/text/TextBreakIteratorInternalICU.h"
23 23
24 #include "platform/Language.h" 24 #include "platform/Language.h"
25 #include "wtf/StdLibExtras.h" 25 #include "platform/wtf/StdLibExtras.h"
26 #include "wtf/text/CString.h" 26 #include "platform/wtf/text/CString.h"
27 #include "wtf/text/WTFString.h" 27 #include "platform/wtf/text/WTFString.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 static const char* UILanguage() { 31 static const char* UILanguage() {
32 // Chrome's UI language can be different from the OS UI language on Windows. 32 // Chrome's UI language can be different from the OS UI language on Windows.
33 // We want to return Chrome's UI language here. 33 // We want to return Chrome's UI language here.
34 DEFINE_STATIC_LOCAL(const CString, locale, (defaultLanguage().latin1())); 34 DEFINE_STATIC_LOCAL(const CString, locale, (defaultLanguage().latin1()));
35 return locale.data(); 35 return locale.data();
36 } 36 }
37 37
38 const char* currentSearchLocaleID() { 38 const char* currentSearchLocaleID() {
39 return UILanguage(); 39 return UILanguage();
40 } 40 }
41 41
42 const char* currentTextBreakLocaleID() { 42 const char* currentTextBreakLocaleID() {
43 return UILanguage(); 43 return UILanguage();
44 } 44 }
45 45
46 } // namespace blink 46 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698