OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/shared_impl/ppb_char_set_shared.h" | 5 #include "ppapi/shared_impl/ppb_char_set_shared.h" |
6 | 6 |
7 #include "base/i18n/icu_string_conversions.h" | 7 #include "base/i18n/icu_string_conversions.h" |
8 #include "ppapi/c/dev/ppb_memory_dev.h" | 8 #include "ppapi/c/dev/ppb_memory_dev.h" |
9 #include "ppapi/thunk/thunk.h" | 9 #include "ppapi/thunk/thunk.h" |
10 #include "unicode/ucnv.h" | 10 #include "unicode/ucnv.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 (output.size() + 1) * sizeof(uint16_t))); | 145 (output.size() + 1) * sizeof(uint16_t))); |
146 if (!ret_buf) | 146 if (!ret_buf) |
147 return NULL; | 147 return NULL; |
148 | 148 |
149 *output_length = static_cast<uint32_t>(output.size()); | 149 *output_length = static_cast<uint32_t>(output.size()); |
150 memcpy(ret_buf, output.c_str(), (output.size() + 1) * sizeof(uint16_t)); | 150 memcpy(ret_buf, output.c_str(), (output.size() + 1) * sizeof(uint16_t)); |
151 return ret_buf; | 151 return ret_buf; |
152 } | 152 } |
153 | 153 |
154 } // namespace ppapi | 154 } // namespace ppapi |
OLD | NEW |