xref: /aosp_15_r20/external/regex-re2/util/strutil.h (revision ccdc9c3e24c519bfa4832a66aa2e83a52c19f295)
1 // Copyright 2016 The RE2 Authors.  All Rights Reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4 
5 #ifndef UTIL_STRUTIL_H_
6 #define UTIL_STRUTIL_H_
7 
8 #include <string>
9 
10 #include "re2/stringpiece.h"
11 #include "util/util.h"
12 
13 namespace re2 {
14 
15 string CEscape(const StringPiece& src);
16 void PrefixSuccessor(string* prefix);
17 string StringPrintf(const char* format, ...);
18 void SStringPrintf(string* dst, const char* format, ...);
19 void StringAppendF(string* dst, const char* format, ...);
20 
21 }  // namespace re2
22 
23 #endif  // UTIL_STRUTIL_H_
24