CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
lineparse.h File Reference

Line-oriented stream buffer consumer. More...

Go to the source code of this file.

Macros

#define lparseCreatePull(sb, ...)   _lparseCreatePull(sb, opt_flags(__VA_ARGS__))
 
#define lparseCreatePush(sb, pline, ...)   _lparseCreatePush(sb, pline, opt_flags(__VA_ARGS__))
 

Typedefs

typedef bool(* lparseLineCB) (stvlist *cvars, strref line)
 

Enumerations

enum  LINEPARSER_FLAGS_ENUM {
  LPARSE_Auto = 0 , LPARSE_CRLF = 1 , LPARSE_LF = 2 , LPARSE_Mixed = 3 ,
  LPARSE_EOL_MASK = 3 , LPARSE_EOL_COUNT = 4 , LPARSE_IncludeEOL = 8 , LPARSE_NoIncomplete = 16
}
 Line parser configuration flags. More...
 

Functions

void lparseDestroy (LineParser **lp)
 
bool lparseLine (LineParser *lp, string *out)
 

Detailed Description

Line-oriented stream buffer consumer.

Definition in file lineparse.h.