OILS / cpp / data_lang.h View on Github | oilshell.org

32 lines, 14 significant
1#ifndef DATA_LANG_H
2#define DATA_LANG_H
3
4#include "_gen/core/value.asdl.h"
5#include "mycpp/runtime.h"
6
7// Direct dependencies of data_lang/j8_lite
8namespace fastfunc {
9
10bool CanOmitQuotes(BigStr* s);
11
12BigStr* J8EncodeString(BigStr* s, int j8_fallback);
13
14BigStr* ShellEncodeString(BigStr* s, int ysh_fallback);
15
16} // namespace fastfunc
17
18namespace pyj8 {
19
20bool PartIsUtf8(BigStr* s, int start, int end);
21
22void WriteString(BigStr* s, int options, mylib::BufWriter* buf);
23
24} // namespace pyj8
25
26namespace j8 {
27
28int HeapValueId(value_asdl::value_t* val);
29
30} // namespace j8
31
32#endif // DATA_LANG_H