diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-27 17:11:31 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-27 17:11:31 +0000 |
commit | c4ae974db67977e766b66fb42e58e088c6381e29 (patch) | |
tree | fdded56573d2214abed88d8f0a83bcf22e54504e /src/core | |
parent | 8d033a1b125886c62906d975b5cc28a382064526 (diff) |
Add SkString.contains()
Review URL: https://codereview.appspot.com/6130046
git-svn-id: http://skia.googlecode.com/svn/trunk@3781 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkString.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/SkString.cpp b/src/core/SkString.cpp index 4658ff8cb1..0e0318b078 100644 --- a/src/core/SkString.cpp +++ b/src/core/SkString.cpp @@ -36,12 +36,6 @@ static const size_t kBufferSize = 256; /////////////////////////////////////////////////////////////////////////////// -bool SkStrStartsWith(const char string[], const char prefix[]) { - SkASSERT(string); - SkASSERT(prefix); - return !strncmp(string, prefix, strlen(prefix)); -} - bool SkStrEndsWith(const char string[], const char suffix[]) { SkASSERT(string); SkASSERT(suffix); |