OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |