OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/sync/util/character_set_converters.h" | 5 #include "chrome/browser/sync/util/character_set_converters.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 using std::string; | 9 using std::string; |
10 | 10 |
(...skipping 40 matching lines...) Loading... |
51 if ((c & 0x0f8) == 0x0f0) // 4-byte encoded char. | 51 if ((c & 0x0f8) == 0x0f0) // 4-byte encoded char. |
52 if (3 == partial_enc_bytes) | 52 if (3 == partial_enc_bytes) |
53 return; | 53 return; |
54 else | 54 else |
55 break; | 55 break; |
56 } | 56 } |
57 string->resize(string->length() - 1 - partial_enc_bytes); | 57 string->resize(string->length() - 1 - partial_enc_bytes); |
58 } | 58 } |
59 | 59 |
60 } // namespace browser_sync | 60 } // namespace browser_sync |
OLD | NEW |