| 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/char_set_impl.h" | 5 #include "ppapi/shared_impl/char_set_impl.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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 (output.size() + 1) * sizeof(uint16_t))); | 143 (output.size() + 1) * sizeof(uint16_t))); |
| 144 if (!ret_buf) | 144 if (!ret_buf) |
| 145 return NULL; | 145 return NULL; |
| 146 | 146 |
| 147 *output_length = static_cast<uint32_t>(output.size()); | 147 *output_length = static_cast<uint32_t>(output.size()); |
| 148 memcpy(ret_buf, output.c_str(), (output.size() + 1) * sizeof(uint16_t)); | 148 memcpy(ret_buf, output.c_str(), (output.size() + 1) * sizeof(uint16_t)); |
| 149 return ret_buf; | 149 return ret_buf; |
| 150 } | 150 } |
| 151 | 151 |
| 152 } // namespace ppapi | 152 } // namespace ppapi |
| OLD | NEW |