![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cIniSection.h>
Static Public Member Functions | |
static bool __stdcall | IsSectionHeader (const IniChar_t *pszLine) |
static bool __stdcall | IsLineComment (const IniChar_t *pszLine) |
static IniChar_t *__stdcall | FindLineArg (const IniChar_t *pszLine, bool bAllowSpace=false) |
static StrLen_t __stdcall | FindScriptLineEnd (const IniChar_t *pLineStr) |
static cStringI __stdcall | GetLineParse2 (const IniChar_t *pszLine, IniChar_t **ppszArgs=nullptr) |
static cStringI __stdcall | GetLineParse3 (const IniChar_t *pszLine, OUT cStringI &rsArgs) |
Helper for reading/parsing an INI file/stream.
|
static |
Find the argument/value portion of a line. "TAG=Args", "TAG: Args" (for HTTP) or "Tag Args" (if bAllowSpace)
Now parse the line for comments and trailing whitespace junk comments are #; as first char or // comment at end of line be careful not to strip http://xx so we require a space after // for comments. Similar to StrT::FindBlockEnd()
|
static |
Parse the pszLine into 2 parts. "TAG=Args" or "Tag Args"
|
static |
Parse a line in the format of: "TAG=Value // comments." Clip comments off the end of the arg.
Whole line is just a comment? DOS Bat files might use REM XXX (NOT supported here) :: Comment line
is this line a [section header] of some sort ?