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

Side by Side Diff: base/i18n/rtl.cc

Issue 1542323002: Switch to standard integer types in base/i18n/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: header Created 5 years 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 | « base/i18n/number_formatting_unittest.cc ('k') | base/i18n/rtl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/i18n/rtl.h" 5 #include "base/i18n/rtl.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <algorithm> 10 #include <algorithm>
8 11
9 #include "base/command_line.h" 12 #include "base/command_line.h"
10 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
11 #include "base/i18n/base_i18n_switches.h" 14 #include "base/i18n/base_i18n_switches.h"
12 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h"
13 #include "base/strings/string_split.h" 17 #include "base/strings/string_split.h"
14 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
15 #include "base/strings/sys_string_conversions.h" 19 #include "base/strings/sys_string_conversions.h"
16 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "build/build_config.h"
17 #include "third_party/icu/source/common/unicode/locid.h" 22 #include "third_party/icu/source/common/unicode/locid.h"
18 #include "third_party/icu/source/common/unicode/uchar.h" 23 #include "third_party/icu/source/common/unicode/uchar.h"
19 #include "third_party/icu/source/common/unicode/uscript.h" 24 #include "third_party/icu/source/common/unicode/uscript.h"
20 #include "third_party/icu/source/i18n/unicode/coll.h" 25 #include "third_party/icu/source/i18n/unicode/coll.h"
21 26
22 #if defined(OS_IOS) 27 #if defined(OS_IOS)
23 #include "base/ios/ios_util.h" 28 #include "base/ios/ios_util.h"
24 #endif 29 #endif
25 30
26 namespace { 31 namespace {
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 begin == kRightToLeftOverride) 444 begin == kRightToLeftOverride)
440 ++begin_index; 445 ++begin_index;
441 size_t end_index = text.length() - 1; 446 size_t end_index = text.length() - 1;
442 if (text[end_index] == kPopDirectionalFormatting) 447 if (text[end_index] == kPopDirectionalFormatting)
443 --end_index; 448 --end_index;
444 return text.substr(begin_index, end_index - begin_index + 1); 449 return text.substr(begin_index, end_index - begin_index + 1);
445 } 450 }
446 451
447 } // namespace i18n 452 } // namespace i18n
448 } // namespace base 453 } // namespace base
OLDNEW
« no previous file with comments | « base/i18n/number_formatting_unittest.cc ('k') | base/i18n/rtl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698