1 | #pragma once |
---|---|
2 | |
3 | #include <ostream> |
4 | #include <sstream> |
5 | #include <string> |
6 | #include <functional> |
7 | |
8 | #include "taichi/util/lang_util.h" |
9 | |
10 | namespace taichi::lang { |
11 | |
12 | // Quote |str| with a pair of ". Escape special characters like \n, \t etc. |
13 | std::string c_quoted(std::string const &str); |
14 | |
15 | std::string format_error_message(const std::string &error_message_template, |
16 | const std::function<uint64(int)> &fetcher); |
17 | |
18 | } // namespace taichi::lang |
19 |