Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: src/core/SkString.cpp

Issue 78903006: upload again, rietveld diff failed. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/core/SkString.h ('k') | src/gpu/gl/GrGLShaderBuilder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "SkString.h" 10 #include "SkString.h"
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 this->set(buffer, strlen(buffer)); 562 this->set(buffer, strlen(buffer));
563 } 563 }
564 564
565 void SkString::appendf(const char format[], ...) { 565 void SkString::appendf(const char format[], ...) {
566 char buffer[kBufferSize]; 566 char buffer[kBufferSize];
567 ARGS_TO_BUFFER(format, buffer, kBufferSize); 567 ARGS_TO_BUFFER(format, buffer, kBufferSize);
568 568
569 this->append(buffer, strlen(buffer)); 569 this->append(buffer, strlen(buffer));
570 } 570 }
571 571
572 void SkString::appendf(const char format[], va_list args) { 572 void SkString::appendVAList(const char format[], va_list args) {
573 char buffer[kBufferSize]; 573 char buffer[kBufferSize];
574 VSNPRINTF(buffer, kBufferSize, format, args); 574 VSNPRINTF(buffer, kBufferSize, format, args);
575 575
576 this->append(buffer, strlen(buffer)); 576 this->append(buffer, strlen(buffer));
577 } 577 }
578 578
579 void SkString::prependf(const char format[], ...) { 579 void SkString::prependf(const char format[], ...) {
580 char buffer[kBufferSize]; 580 char buffer[kBufferSize];
581 ARGS_TO_BUFFER(format, buffer, kBufferSize); 581 ARGS_TO_BUFFER(format, buffer, kBufferSize);
582 582
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 SkString SkStringPrintf(const char* format, ...) { 629 SkString SkStringPrintf(const char* format, ...) {
630 SkString formattedOutput; 630 SkString formattedOutput;
631 char buffer[kBufferSize]; 631 char buffer[kBufferSize];
632 ARGS_TO_BUFFER(format, buffer, kBufferSize); 632 ARGS_TO_BUFFER(format, buffer, kBufferSize);
633 formattedOutput.set(buffer); 633 formattedOutput.set(buffer);
634 return formattedOutput; 634 return formattedOutput;
635 } 635 }
636 636
637 #undef VSNPRINTF 637 #undef VSNPRINTF
638 #undef SNPRINTF 638 #undef SNPRINTF
OLDNEW
« no previous file with comments | « include/core/SkString.h ('k') | src/gpu/gl/GrGLShaderBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698