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

Unified Diff: base/string_tokenizer.h

Issue 458: [new http] Normalize line continuations in response headers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « no previous file | net/http/http_response_headers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_tokenizer.h
===================================================================
--- base/string_tokenizer.h (revision 1706)
+++ base/string_tokenizer.h (working copy)
@@ -2,8 +2,8 @@
// 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_STRING_TOKENIZER_H_
+#define BASE_STRING_TOKENIZER_H_
#include <string>
@@ -74,10 +74,9 @@
// }
//
//
-template <class str>
+template <class str, class const_iterator>
class StringTokenizerT {
public:
- typedef typename str::const_iterator const_iterator;
typedef typename str::value_type char_type;
// Options that may be pass to set_options()
@@ -194,8 +193,11 @@
bool token_is_delim_;
};
-typedef StringTokenizerT<std::string> StringTokenizer;
-typedef StringTokenizerT<std::wstring> WStringTokenizer;
+typedef StringTokenizerT<std::string, std::string::const_iterator>
+ StringTokenizer;
+typedef StringTokenizerT<std::wstring, std::wstring::const_iterator>
+ WStringTokenizer;
+typedef StringTokenizerT<std::string, const char*> CStringTokenizer;
-#endif // BASE_STRING_TOKENIZER_H__
+#endif // BASE_STRING_TOKENIZER_H_
« no previous file with comments | « no previous file | net/http/http_response_headers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698