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