Index: base/i18n/char_iterator.cc |
diff --git a/base/i18n/char_iterator.cc b/base/i18n/char_iterator.cc |
index a6cf9441f028d2c5de210cf0ad64b41469dfc7cd..ce4d513a7453962a623e1f51492702851b0f77b2 100644 |
--- a/base/i18n/char_iterator.cc |
+++ b/base/i18n/char_iterator.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -8,6 +8,7 @@ |
#include "unicode/utf16.h" |
namespace base { |
+namespace i18n { |
UTF8CharIterator::UTF8CharIterator(const std::string* str) |
: str_(reinterpret_cast<const uint8_t*>(str->data())), |
@@ -20,6 +21,9 @@ UTF8CharIterator::UTF8CharIterator(const std::string* str) |
U8_NEXT(str_, next_pos_, len_, char_); |
} |
+UTF8CharIterator::~UTF8CharIterator() { |
+} |
+ |
bool UTF8CharIterator::Advance() { |
if (array_pos_ >= len_) |
return false; |
@@ -54,6 +58,9 @@ UTF16CharIterator::UTF16CharIterator(const char16* str, size_t str_len) |
ReadChar(); |
} |
+UTF16CharIterator::~UTF16CharIterator() { |
+} |
+ |
bool UTF16CharIterator::Advance() { |
if (array_pos_ >= len_) |
return false; |
@@ -71,4 +78,5 @@ void UTF16CharIterator::ReadChar() { |
U16_NEXT(str_, next_pos_, len_, char_); |
} |
+} // namespace i18n |
} // namespace base |