aboutsummaryrefslogtreecommitdiff
path: root/util/strutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/strutil.h')
-rw-r--r--util/strutil.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/util/strutil.h b/util/strutil.h
new file mode 100644
index 0000000..2c3c104
--- /dev/null
+++ b/util/strutil.h
@@ -0,0 +1,23 @@
+// Copyright 2016 The RE2 Authors. All Rights Reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+#ifndef UTIL_STRUTIL_H_
+#define UTIL_STRUTIL_H_
+
+#include <string>
+
+#include "re2/stringpiece.h"
+#include "util/util.h"
+
+namespace re2 {
+
+string CEscape(const StringPiece& src);
+void PrefixSuccessor(string* prefix);
+string StringPrintf(const char* format, ...);
+void SStringPrintf(string* dst, const char* format, ...);
+void StringAppendF(string* dst, const char* format, ...);
+
+} // namespace re2
+
+#endif // UTIL_STRUTIL_H_