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

Unified Diff: base/strings/string16.h

Issue 803593002: Move string16 and char16 in to base:: (Closed) Base URL: https://chromium.googlesource.com/chromium/mini_chromium@master
Patch Set: Created 6 years 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 | base/strings/string16.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/strings/string16.h
diff --git a/base/strings/string16.h b/base/strings/string16.h
index f7e64dbfca3ab9e57a8993f75833a4fecf925ccf..5e6d431dcfd45b2df7848470e66c53516a5dfdaa 100644
--- a/base/strings/string16.h
+++ b/base/strings/string16.h
@@ -10,10 +10,10 @@
#include <string>
-typedef uint16_t char16;
-
namespace base {
+typedef uint16_t char16;
+
int c16memcmp(const char16* s1, const char16* s2, size_t n);
size_t c16len(const char16* s);
const char16* c16memchr(const char16* s, char16 c, size_t n);
@@ -88,16 +88,13 @@ struct string16_char_traits {
}
};
-} // namespace base
-
-extern template class std::basic_string<char16, base::string16_char_traits>;
-
typedef std::basic_string<char16, base::string16_char_traits> string16;
-namespace base {
-
extern std::ostream& operator<<(std::ostream& out, const string16& str);
} // namespace base
+extern template class std::basic_string<base::char16,
+ base::string16_char_traits>;
+
#endif // MINI_CHROMIUM_BASE_STRINGS_STRING16_H_
« no previous file with comments | « no previous file | base/strings/string16.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698