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

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

Issue 12316141: Sort GL extension strings and search to find. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months 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 | include/core/SkTypes.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 #ifndef SkString_DEFINED 10 #ifndef SkString_DEFINED
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 const uint16_t* getUCS2() const { return fUCS2; } 237 const uint16_t* getUCS2() const { return fUCS2; }
238 238
239 private: 239 private:
240 int fCount; 240 int fCount;
241 uint16_t* fUCS2; 241 uint16_t* fUCS2;
242 }; 242 };
243 243
244 /// Creates a new string and writes into it using a printf()-style format. 244 /// Creates a new string and writes into it using a printf()-style format.
245 SkString SkStringPrintf(const char* format, ...); 245 SkString SkStringPrintf(const char* format, ...);
246 246
247 // Specialized to take advantage of SkString's fast swap path. The unspecialized function is
248 // declared in SkTypes.h and called by SkTSort.
249 template <> inline void SkTSwap(SkString& a, SkString& b) {
250 a.swap(b);
251 }
252
247 #endif 253 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698