diff options
Diffstat (limited to 'src/core/SkString.cpp')
-rw-r--r-- | src/core/SkString.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/SkString.cpp b/src/core/SkString.cpp index 1e29dc7172..48459dbbd8 100644 --- a/src/core/SkString.cpp +++ b/src/core/SkString.cpp @@ -583,6 +583,14 @@ void SkString::prependf(const char format[], ...) { this->prepend(buffer, strlen(buffer)); } +void SkString::prependVAList(const char format[], va_list args) { + char buffer[kBufferSize]; + VSNPRINTF(buffer, kBufferSize, format, args); + + this->prepend(buffer, strlen(buffer)); +} + + /////////////////////////////////////////////////////////////////////////////// void SkString::remove(size_t offset, size_t length) { |