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

Side by Side Diff: include/core/SkString.h

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 | « no previous file | src/core/SkString.cpp » ('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 #ifndef SkString_DEFINED 10 #ifndef SkString_DEFINED
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 void prepend(const char text[]) { this->insert(0, text); } 189 void prepend(const char text[]) { this->insert(0, text); }
190 void prepend(const char text[], size_t len) { this->insert(0, text, len); } 190 void prepend(const char text[], size_t len) { this->insert(0, text, len); }
191 void prependUnichar(SkUnichar uni) { this->insertUnichar(0, uni); } 191 void prependUnichar(SkUnichar uni) { this->insertUnichar(0, uni); }
192 void prependS32(int32_t value) { this->insertS32(0, value); } 192 void prependS32(int32_t value) { this->insertS32(0, value); }
193 void prependS64(int32_t value, int minDigits = 0) { this->insertS64(0, value , minDigits); } 193 void prependS64(int32_t value, int minDigits = 0) { this->insertS64(0, value , minDigits); }
194 void prependHex(uint32_t value, int minDigits = 0) { this->insertHex(0, valu e, minDigits); } 194 void prependHex(uint32_t value, int minDigits = 0) { this->insertHex(0, valu e, minDigits); }
195 void prependScalar(SkScalar value) { this->insertScalar((size_t)-1, value); } 195 void prependScalar(SkScalar value) { this->insertScalar((size_t)-1, value); }
196 196
197 void printf(const char format[], ...) SK_PRINTF_LIKE(2, 3); 197 void printf(const char format[], ...) SK_PRINTF_LIKE(2, 3);
198 void appendf(const char format[], ...) SK_PRINTF_LIKE(2, 3); 198 void appendf(const char format[], ...) SK_PRINTF_LIKE(2, 3);
199 void appendf(const char format[], va_list); 199 void appendVAList(const char format[], va_list);
200 void prependf(const char format[], ...) SK_PRINTF_LIKE(2, 3); 200 void prependf(const char format[], ...) SK_PRINTF_LIKE(2, 3);
201 201
202 void remove(size_t offset, size_t length); 202 void remove(size_t offset, size_t length);
203 203
204 SkString& operator+=(const SkString& s) { this->append(s); return *this; } 204 SkString& operator+=(const SkString& s) { this->append(s); return *this; }
205 SkString& operator+=(const char text[]) { this->append(text); return *this; } 205 SkString& operator+=(const char text[]) { this->append(text); return *this; }
206 SkString& operator+=(const char c) { this->append(&c, 1); return *this; } 206 SkString& operator+=(const char c) { this->append(&c, 1); return *this; }
207 207
208 /** 208 /**
209 * Swap contents between this and other. This function is guaranteed 209 * Swap contents between this and other. This function is guaranteed
(...skipping 28 matching lines...) Expand all
238 /// Creates a new string and writes into it using a printf()-style format. 238 /// Creates a new string and writes into it using a printf()-style format.
239 SkString SkStringPrintf(const char* format, ...); 239 SkString SkStringPrintf(const char* format, ...);
240 240
241 // Specialized to take advantage of SkString's fast swap path. The unspecialized function is 241 // Specialized to take advantage of SkString's fast swap path. The unspecialized function is
242 // declared in SkTypes.h and called by SkTSort. 242 // declared in SkTypes.h and called by SkTSort.
243 template <> inline void SkTSwap(SkString& a, SkString& b) { 243 template <> inline void SkTSwap(SkString& a, SkString& b) {
244 a.swap(b); 244 a.swap(b);
245 } 245 }
246 246
247 #endif 247 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698