CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
lineparse.h
Go to the documentation of this file.
1
54
56
62
86
88
94
120_Check_return_ bool lparseRegisterPull(_Inout_ StreamBuffer* sb, uint32 flags);
121
134_Success_(return) _Check_return_ bool
135lparseLine(_Inout_ _On_failure_(_Post_invalid_) StreamBuffer* sb, _Inout_ string* out);
136
138
144
158typedef bool (*lparseLineCB)(_In_opt_ strref line, _Pre_opt_valid_ void* ctx);
159
190_Check_return_ bool
191lparseRegisterPush(_Inout_ StreamBuffer* sb, _In_ lparseLineCB pline,
192 _In_opt_ sbufCleanupCB pcleanup, _Inout_opt_ void* ctx, uint32 flags);
193
LINEPARSER_FLAGS_ENUM
Line parser configuration flags.
Definition lineparse.h:64
@ LPARSE_NoIncomplete
Definition lineparse.h:84
@ LPARSE_LF
Expect LF (Unix-style) line endings.
Definition lineparse.h:70
@ LPARSE_CRLF
Expect CR+LF (Windows-style) line endings.
Definition lineparse.h:68
@ LPARSE_IncludeEOL
Include the EOL markers in the returned line (by default they are stripped)
Definition lineparse.h:79
@ LPARSE_Auto
Auto-detect line ending style from first line found.
Definition lineparse.h:66
@ LPARSE_Mixed
Accept mixed CR+LF and LF line endings.
Definition lineparse.h:72
@ LPARSE_EOL_COUNT
Number of EOL modes (internal use)
Definition lineparse.h:76
@ LPARSE_EOL_MASK
Mask for extracting EOL mode.
Definition lineparse.h:74
bool lparseLine(StreamBuffer *sb, string *out)
bool lparseRegisterPull(StreamBuffer *sb, uint32 flags)
bool(* lparseLineCB)(strref line, void *ctx)
Definition lineparse.h:158
bool lparseRegisterPush(StreamBuffer *sb, lparseLineCB pline, sbufCleanupCB pcleanup, void *ctx, uint32 flags)
Core stream buffer implementation for efficient data streaming.