| 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_I18N_STRING_SEARCH_H_ | 5 #ifndef BASE_I18N_STRING_SEARCH_H_ |
| 6 #define BASE_I18N_STRING_SEARCH_H_ | 6 #define BASE_I18N_STRING_SEARCH_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include "base/i18n/base_i18n_export.h" | 10 #include "base/i18n/base_i18n_export.h" |
| 9 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 10 | 12 |
| 11 struct UStringSearch; | 13 struct UStringSearch; |
| 12 | 14 |
| 13 namespace base { | 15 namespace base { |
| 14 namespace i18n { | 16 namespace i18n { |
| 15 | 17 |
| 16 // Returns true if |in_this| contains |find_this|. If |match_index| or | 18 // Returns true if |in_this| contains |find_this|. If |match_index| or |
| 17 // |match_length| are non-NULL, they are assigned the start position and total | 19 // |match_length| are non-NULL, they are assigned the start position and total |
| (...skipping 26 matching lines...) Expand all Loading... |
| 44 | 46 |
| 45 private: | 47 private: |
| 46 string16 find_this_; | 48 string16 find_this_; |
| 47 UStringSearch* search_; | 49 UStringSearch* search_; |
| 48 }; | 50 }; |
| 49 | 51 |
| 50 } // namespace i18n | 52 } // namespace i18n |
| 51 } // namespace base | 53 } // namespace base |
| 52 | 54 |
| 53 #endif // BASE_I18N_STRING_SEARCH_H_ | 55 #endif // BASE_I18N_STRING_SEARCH_H_ |
| OLD | NEW |