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

34 lines, 15 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
16Tuple2<int, int> Utf8DecodeOne(BigStr* s, int start);
17
18} // namespace fastfunc
19
20namespace pyj8 {
21
22bool PartIsUtf8(BigStr* s, int start, int end);
23
24void WriteString(BigStr* s, int options, mylib::BufWriter* buf);
25
26} // namespace pyj8
27
28namespace j8 {
29
30int HeapValueId(value_asdl::value_t* val);
31
32} // namespace j8
33
34#endif // DATA_LANG_H