2014-03-27 12:54:54 -07:00
|
|
|
#ifndef COMPILER_UTIL_STRING_HELPERS_H_
|
|
|
|
|
#define COMPILER_UTIL_STRING_HELPERS_H_
|
|
|
|
|
|
|
|
|
|
#include <string>
|
2014-04-14 23:11:10 -07:00
|
|
|
#include <vector>
|
|
|
|
|
#include <set>
|
2014-03-27 12:54:54 -07:00
|
|
|
|
|
|
|
|
namespace tree_sitter {
|
2014-07-20 21:43:27 -07:00
|
|
|
namespace util {
|
|
|
|
|
|
|
|
|
|
void str_replace(std::string *input, const std::string &search,
|
|
|
|
|
const std::string &replace);
|
|
|
|
|
std::string escape_string(std::string input);
|
2014-09-28 18:27:47 -07:00
|
|
|
std::string escape_char(uint32_t character);
|
2014-07-20 21:43:27 -07:00
|
|
|
|
|
|
|
|
} // namespace util
|
|
|
|
|
} // namespace tree_sitter
|
2014-03-27 12:54:54 -07:00
|
|
|
|
|
|
|
|
#endif // COMPILER_UTIL_STRING_HELPERS_H_
|