rapidyaml  0.11.0
parse and emit YAML, and do it fast
ints_utils.hpp
Go to the documentation of this file.
1 #ifndef _C4_YML_EXTRA_INTS_UTILS_HPP_
2 #define _C4_YML_EXTRA_INTS_UTILS_HPP_
3 
4 #ifndef _C4_YML_EXTRA_EVENT_HANDLER_INTS_HPP_
6 #endif
7 
8 
9 //-----------------------------------------------------------------------------
10 
11 namespace c4 {
12 namespace yml {
13 namespace extra {
14 
15 
16 /** @addtogroup doc_event_handlers
17  * @{ */
18 
19 
20 namespace ievt {
21 /** Convert bit mask of @ref ievt::EventFlags to text. */
22 RYML_EXPORT size_t to_chars(substr buf, yml::extra::ievt::DataType flags);
23 /** Convert bit mask of @ref ievt::EventFlags to text. */
24 RYML_EXPORT csubstr to_chars_sub(substr buf, yml::extra::ievt::DataType flags);
25 } // namespace ievt
26 
27 
28 /** Print integer events to stdout */
29 RYML_EXPORT void events_ints_print(csubstr parsed_yaml, csubstr arena, ievt::DataType const* evts_ints, ievt::DataType evts_ints_sz);
30 
31 
32 /** @} */
33 
34 } // namespace extra
35 } // namespace yml
36 } // namespace c4
37 
38 #endif /* _C4_YML_EXTRA_INTS_UTILS_HPP_ */
An event handler that creates an integer buffer with a very compact representation of the YAML tree i...
#define RYML_EXPORT
Definition: export.hpp:15
void events_ints_print(csubstr parsed_yaml, csubstr arena, ievt::DataType const *evts, ievt::DataType evts_sz)
Print integer events to stdout.
Definition: ints_utils.cpp:94
csubstr to_chars_sub(substr buf, ievt::DataType flags)
Convert bit mask of ievt::EventFlags to text.
Definition: ints_utils.cpp:73
int32_t DataType
data type for integer events.
size_t to_chars(substr buf, ievt::DataType flags)
Convert bit mask of ievt::EventFlags to text.
Definition: ints_utils.cpp:68
(Undefined by default) Use shorter error message from checks/asserts: do not show the check condition...
Definition: common.cpp:14