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.

Typedefs

typedef bool(* lparseLineCB) (strref line, void *ctx)
 

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

bool lparseRegisterPull (StreamBuffer *sb, uint32 flags)
 
bool lparseLine (StreamBuffer *sb, string *out)
 
bool lparseRegisterPush (StreamBuffer *sb, lparseLineCB pline, sbufCleanupCB pcleanup, void *ctx, uint32 flags)
 

Detailed Description

Line-oriented stream buffer consumer.

Definition in file lineparse.h.