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

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

Issue 1841123002: Reverse dependency between SkScalar.h and SkFixed.h (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « include/core/SkScalar.h ('k') | include/core/SkWriteBuffer.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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 /** 104 /**
105 * Write the scaler in decimal format into buffer, and return a pointer to 105 * Write the scaler in decimal format into buffer, and return a pointer to
106 * the next char after the last one written. Note: a terminating 0 is not 106 * the next char after the last one written. Note: a terminating 0 is not
107 * written into buffer, which must be at least SkStrAppendScalar_MaxSize. 107 * written into buffer, which must be at least SkStrAppendScalar_MaxSize.
108 * Thus if the caller wants to add a 0 at the end, buffer must be at least 108 * Thus if the caller wants to add a 0 at the end, buffer must be at least
109 * SkStrAppendScalar_MaxSize + 1 bytes large. 109 * SkStrAppendScalar_MaxSize + 1 bytes large.
110 */ 110 */
111 #define SkStrAppendScalar SkStrAppendFloat 111 #define SkStrAppendScalar SkStrAppendFloat
112 112
113 char* SkStrAppendFloat(char buffer[], float); 113 char* SkStrAppendFloat(char buffer[], float);
114 char* SkStrAppendFixed(char buffer[], SkFixed);
115 114
116 /** \class SkString 115 /** \class SkString
117 116
118 Light weight class for managing strings. Uses reference 117 Light weight class for managing strings. Uses reference
119 counting to make string assignments and copies very fast 118 counting to make string assignments and copies very fast
120 with no extra RAM cost. Assumes UTF8 encoding. 119 with no extra RAM cost. Assumes UTF8 encoding.
121 */ 120 */
122 class SK_API SkString { 121 class SK_API SkString {
123 public: 122 public:
124 SkString(); 123 SkString();
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 }; 280 };
282 281
283 // Split str on any characters in delimiters into out. (Think, strtok with a sa ne API.) 282 // Split str on any characters in delimiters into out. (Think, strtok with a sa ne API.)
284 void SkStrSplit(const char* str, const char* delimiters, SkStrSplitMode splitMod e, 283 void SkStrSplit(const char* str, const char* delimiters, SkStrSplitMode splitMod e,
285 SkTArray<SkString>* out); 284 SkTArray<SkString>* out);
286 inline void SkStrSplit(const char* str, const char* delimiters, SkTArray<SkStrin g>* out) { 285 inline void SkStrSplit(const char* str, const char* delimiters, SkTArray<SkStrin g>* out) {
287 SkStrSplit(str, delimiters, kCoalesce_SkStrSplitMode, out); 286 SkStrSplit(str, delimiters, kCoalesce_SkStrSplitMode, out);
288 } 287 }
289 288
290 #endif 289 #endif
OLDNEW
« no previous file with comments | « include/core/SkScalar.h ('k') | include/core/SkWriteBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698