| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "../private/SkAtomics.h" | 10 #include "SkAtomics.h" |
| 11 #include "SkFixed.h" | 11 #include "SkFixed.h" |
| 12 #include "SkString.h" | 12 #include "SkString.h" |
| 13 #include "SkUtils.h" | 13 #include "SkUtils.h" |
| 14 #include <stdarg.h> | 14 #include <stdarg.h> |
| 15 #include <stdio.h> | 15 #include <stdio.h> |
| 16 | 16 |
| 17 // number of bytes (on the stack) to receive the printf result | 17 // number of bytes (on the stack) to receive the printf result |
| 18 static const size_t kBufferSize = 1024; | 18 static const size_t kBufferSize = 1024; |
| 19 | 19 |
| 20 #ifdef SK_BUILD_FOR_WIN | 20 #ifdef SK_BUILD_FOR_WIN |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 const size_t len = strcspn(str, delimiters); | 631 const size_t len = strcspn(str, delimiters); |
| 632 out->push_back().set(str, len); | 632 out->push_back().set(str, len); |
| 633 str += len; | 633 str += len; |
| 634 // Skip any delimiters. | 634 // Skip any delimiters. |
| 635 str += strspn(str, delimiters); | 635 str += strspn(str, delimiters); |
| 636 } | 636 } |
| 637 } | 637 } |
| 638 | 638 |
| 639 #undef VSNPRINTF | 639 #undef VSNPRINTF |
| 640 #undef SNPRINTF | 640 #undef SNPRINTF |
| OLD | NEW |