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

Side by Side Diff: Source/core/platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp

Issue 14990009: Remove core/platform/text/chromium/ and move the files in the directory one level higher. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/platform/text/chromium/Hyphenation.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Google Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
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
17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
19 *
20 */
21
22 #include "config.h"
23 #include "core/platform/text/TextBreakIteratorInternalICU.h"
24
25 #include "core/platform/Language.h"
26 #include <wtf/StdLibExtras.h>
27 #include <wtf/text/CString.h>
28 #include <wtf/text/WTFString.h>
29
30 namespace WebCore {
31
32 static const char* UILanguage()
33 {
34 // Chrome's UI language can be different from the OS UI language on Windows.
35 // We want to return Chrome's UI language here.
36 DEFINE_STATIC_LOCAL(CString, locale, (defaultLanguage().latin1()));
37 return locale.data();
38 }
39
40 const char* currentSearchLocaleID()
41 {
42 return UILanguage();
43 }
44
45 const char* currentTextBreakLocaleID()
46 {
47 return UILanguage();
48 }
49
50 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/text/chromium/Hyphenation.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698