CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
Line Parser Flags

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...
 

Detailed Description

Configuration flags for line parser behavior.

Enumeration Type Documentation

◆ LINEPARSER_FLAGS_ENUM

Line parser configuration flags.

Enumerator
LPARSE_Auto 

Auto-detect line ending style from first line found.

LPARSE_CRLF 

Expect CR+LF (Windows-style) line endings.

LPARSE_LF 

Expect LF (Unix-style) line endings.

LPARSE_Mixed 

Accept mixed CR+LF and LF line endings.

LPARSE_EOL_MASK 

Mask for extracting EOL mode.

LPARSE_EOL_COUNT 

Number of EOL modes (internal use)

LPARSE_IncludeEOL 

Include the EOL markers in the returned line (by default they are stripped)

LPARSE_NoIncomplete 

By default if the last line does not have an EOL character, it is still returned as if it had one. If this flag is set, the last line will not be parsed unless it has an EOL character.

Definition at line 64 of file lineparse.h.