diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-16 17:19:07 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-18 11:25:43 +0900 |
commit | 02fc55bc02e541a5ce4b648a82d78f2aacec89d4 (patch) | |
tree | 215d6d58deda47a08cdc7ab8fde8a6da4a78cc5c /strutil.h | |
parent | 4f22f5c9402855277049e9e752043cef55e50290 (diff) | |
download | kati-02fc55bc02e541a5ce4b648a82d78f2aacec89d4.tar.gz |
[C++] Add broken VarSubst implementation
Diffstat (limited to 'strutil.h')
-rw-r--r-- | strutil.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -47,4 +47,18 @@ inline string JoinStrings(vector<String> v, const char* sep) { return r; } +void AppendString(StringPiece str, string* out); + +bool HasPrefix(StringPiece str, StringPiece prefix); + +bool HasSuffix(StringPiece str, StringPiece suffix); + +StringPiece TrimSuffix(StringPiece str, StringPiece suffix); + +void AppendSubstPattern(StringPiece str, StringPiece pat, StringPiece subst, + string* out); + +void AppendSubstRef(StringPiece str, StringPiece pat, StringPiece subst, + string* out); + #endif // STRUTIL_H_ |