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

Unified Diff: base/strings/string_tokenizer.h

Issue 12087091: Move string tokenizer to base/strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/string_tokenizer_unittest.cc ('k') | base/strings/string_tokenizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/strings/string_tokenizer.h
diff --git a/base/string_tokenizer.h b/base/strings/string_tokenizer.h
similarity index 97%
rename from base/string_tokenizer.h
rename to base/strings/string_tokenizer.h
index c2307a5209d1a496ce60745af11e4bf37d6f2266..791051a6b6d9638e5259ad978c8cb2d26a9cbd56 100644
--- a/base/string_tokenizer.h
+++ b/base/strings/string_tokenizer.h
@@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_STRING_TOKENIZER_H_
-#define BASE_STRING_TOKENIZER_H_
+#ifndef BASE_STRINGS_STRING_TOKENIZER_H_
+#define BASE_STRINGS_STRING_TOKENIZER_H_
#include <algorithm>
#include <string>
#include "base/string_piece.h"
+namespace base {
+
// StringTokenizerT is a simple string tokenizer class. It works like an
// iterator that with each step (see the Advance method) updates members that
// refer to the next token in the input string. The user may optionally
@@ -253,4 +255,6 @@ typedef StringTokenizerT<std::wstring, std::wstring::const_iterator>
WStringTokenizer;
typedef StringTokenizerT<std::string, const char*> CStringTokenizer;
-#endif // BASE_STRING_TOKENIZER_H_
+} // namespace base
+
+#endif // BASE_STRINGS_STRING_TOKENIZER_H_
« no previous file with comments | « base/string_tokenizer_unittest.cc ('k') | base/strings/string_tokenizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698