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

Side by Side Diff: base/strings/utf_offset_string_conversions.h

Issue 1548993002: Switch to standard integer types in base/strings/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 // 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 #ifndef BASE_STRINGS_UTF_OFFSET_STRING_CONVERSIONS_H_ 5 #ifndef BASE_STRINGS_UTF_OFFSET_STRING_CONVERSIONS_H_
6 #define BASE_STRINGS_UTF_OFFSET_STRING_CONVERSIONS_H_ 6 #define BASE_STRINGS_UTF_OFFSET_STRING_CONVERSIONS_H_
7 7
8 #include <stddef.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/base_export.h" 13 #include "base/base_export.h"
12 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
13 #include "base/strings/string_piece.h" 15 #include "base/strings/string_piece.h"
14 16
15 namespace base { 17 namespace base {
16 18
17 // A helper class and associated data structures to adjust offsets into a 19 // A helper class and associated data structures to adjust offsets into a
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 if (offset > limit_) 119 if (offset > limit_)
118 offset = T::npos; 120 offset = T::npos;
119 } 121 }
120 122
121 size_t limit_; 123 size_t limit_;
122 }; 124 };
123 125
124 } // namespace base 126 } // namespace base
125 127
126 #endif // BASE_STRINGS_UTF_OFFSET_STRING_CONVERSIONS_H_ 128 #endif // BASE_STRINGS_UTF_OFFSET_STRING_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « base/strings/sys_string_conversions_win.cc ('k') | base/strings/utf_offset_string_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698