| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 4 * | 3 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | 8 |
| 10 #include "SkUtils.h" | 9 #include "SkUtils.h" |
| 11 | 10 |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 } | 270 } |
| 272 } else { | 271 } else { |
| 273 char* start = utf8; | 272 char* start = utf8; |
| 274 while (utf16 < stop) { | 273 while (utf16 < stop) { |
| 275 utf8 += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), utf8); | 274 utf8 += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), utf8); |
| 276 } | 275 } |
| 277 size = utf8 - start; | 276 size = utf8 - start; |
| 278 } | 277 } |
| 279 return size; | 278 return size; |
| 280 } | 279 } |
| OLD | NEW |