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

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

Issue 1702073002: Move SkTArray to include/private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix kilobench. Created 4 years, 10 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/SkImageFilter.h ('k') | include/core/SkTArray.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
11 #define SkString_DEFINED 11 #define SkString_DEFINED
12 12
13 #include "../private/SkTArray.h"
13 #include "SkScalar.h" 14 #include "SkScalar.h"
14 #include "SkTArray.h"
15 15
16 #include <stdarg.h> 16 #include <stdarg.h>
17 17
18 /* Some helper functions for C strings 18 /* Some helper functions for C strings
19 */ 19 */
20 20
21 static bool SkStrStartsWith(const char string[], const char prefixStr[]) { 21 static bool SkStrStartsWith(const char string[], const char prefixStr[]) {
22 SkASSERT(string); 22 SkASSERT(string);
23 SkASSERT(prefixStr); 23 SkASSERT(prefixStr);
24 return !strncmp(string, prefixStr, strlen(prefixStr)); 24 return !strncmp(string, prefixStr, strlen(prefixStr));
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 }; 281 };
282 282
283 // Split str on any characters in delimiters into out. (Think, strtok with a sa ne API.) 283 // 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, 284 void SkStrSplit(const char* str, const char* delimiters, SkStrSplitMode splitMod e,
285 SkTArray<SkString>* out); 285 SkTArray<SkString>* out);
286 inline void SkStrSplit(const char* str, const char* delimiters, SkTArray<SkStrin g>* out) { 286 inline void SkStrSplit(const char* str, const char* delimiters, SkTArray<SkStrin g>* out) {
287 SkStrSplit(str, delimiters, kCoalesce_SkStrSplitMode, out); 287 SkStrSplit(str, delimiters, kCoalesce_SkStrSplitMode, out);
288 } 288 }
289 289
290 #endif 290 #endif
OLDNEW
« no previous file with comments | « include/core/SkImageFilter.h ('k') | include/core/SkTArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698