1 #ifdef RYML_SINGLE_HEADER_INTS
2 #ifndef _RYML_SINGLE_HEADER_AMALGAMATED_HPP_
3 #include <ryml_ints.hpp>
5 #elif defined(RYML_SINGLE_HEADER)
6 #ifndef _RYML_SINGLE_HEADER_AMALGAMATED_HPP_
7 #include <ryml_all.hpp>
11 #ifndef _C4_YML_EXTRA_SCALAR_HPP_
23 #define _append(repl) \
25 if(repl.len && (pos + repl.len <= buffer.len)) \
26 memcpy(buffer.str + pos, repl.str, repl.len); \
29 #define _c4flush_use_instead(i, repl, skip) \
31 _append(val.range(prev, i)); \
32 _append(csubstr(repl)); \
36 uint8_t
const* C4_RESTRICT s =
reinterpret_cast<uint8_t const*
>(val.str);
38 for(
size_t i = 0; i < val.len; ++i)
65 const uint8_t np1 = s[i+1];
66 if(np1 == UINT8_C(0xa0))
68 else if(np1 == UINT8_C(0x85))
75 if(s[i+1] == UINT8_C(0x80))
77 if(s[i+2] == UINT8_C(0xa8))
79 else if(s[i+2] == UINT8_C(0xa9))
88 #undef _c4flush_use_instead
size_t escape_scalar(substr buffer, csubstr val)
#define _c4flush_use_instead(i, repl, skip)