Back to index

nux  3.0.0
Namespaces | Defines | Functions
Parsing.cpp File Reference
#include "NuxCore.h"
#include "Parsing.h"

Go to the source code of this file.

Namespaces

namespace  nux
 The Writer singleton is responsible for controlling where the logging message go.

Defines

#define CHAR_TAB   TEXT('\t')
#define CHAR_CR   TEXT('\r')
#define CHAR_FF   TEXT('\f')
#define CHAR_NEW_LINE   TEXT('\n')
#define CHAR_QUOTE   TEXT('\"')

Functions

bool nux::ParseCommand (const TCHAR **Stream, const TCHAR *Match)
 Parse a stream of characters and look for a string of TCHAR at the start of the stream.
bool nux::Parse_tchar (const TCHAR *stream, const TCHAR *Match, TCHAR *value, int size, int MaxLen)
 Parses a string of N character from a character stream after a named token.
bool nux::ParseParam (const TCHAR *Stream, const TCHAR *Param)
 Checks if a Token command-line parameter exists in the stream.
bool nux::Parse_string (const TCHAR *Stream, const TCHAR *Match, NString &Value)
 Parse a NString after the named token.
bool nux::Parse_u64 (const TCHAR *Stream, const TCHAR *Match, QWORD &Value)
 Parse a QUADWORD after the named token.
bool nux::Parse_s64 (const TCHAR *Stream, const TCHAR *Match, SQWORD &Value)
 Parse a SIGNED QUADWORD after the named token.
bool nux::Parse_u32 (const TCHAR *stream, const TCHAR *Match, DWORD &value)
 Parse a stream of characters and look for a t_32 value after the token string.
bool nux::Parse_u8 (const TCHAR *Stream, const TCHAR *Match, BYTE &Value)
 Parse a BYTE after the named token.
bool nux::Parse_s8 (const TCHAR *Stream, const TCHAR *Match, SBYTE &Value)
 Parse a signed BYTE after the named token.
bool nux::Parse_u16 (const TCHAR *Stream, const TCHAR *Match, WORD &Value)
 Parse a WORD after the named token.
bool nux::Parse_s16 (const TCHAR *Stream, const TCHAR *Match, SWORD &Value)
 Parse a signed WORD after the named token.
bool nux::Parse_float (const TCHAR *Stream, const TCHAR *Match, float &Value)
 Parse a floating point value after the named token.
bool nux::Parse_int (const TCHAR *Stream, const TCHAR *Match, int &Value)
 Parse a double WORD after the named token.
bool nux::Parse_bool (const TCHAR *Stream, const TCHAR *Match, bool &OnOff)
 Parse a BOOLEAN after the named token.
void nux::ParseToNextLine (const TCHAR **Stream, TCHAR CommentChar)
 Go to the next token in the stream.
bool nux::ParseToken (const TCHAR *Str, TCHAR *TokenBuffer, int BufferSize)
 Parse the next space-delimited string from the input stream. If the next token starts with a quote, gets entire quoted string.
bool nux::ParseToken (const TCHAR *Str, NString &TokenString)
 Parse the next space-delimited string from the input stream. If the next token starts with a quote, gets entire quoted string.
NString nux::ParseToken (const TCHAR *Str, bool UseEscape)
bool nux::ParseLine (const TCHAR **Stream, TCHAR *LineBuffer, int BufferSize)
 Extract a line of Stream (everything up to, but not including, CR/LF).
bool nux::ParseLine (const TCHAR **Stream, NString &LineString)
 Extract a line of Stream (everything up to, but not including, CR/LF).

Define Documentation

#define CHAR_CR   TEXT('\r')

Definition at line 27 of file Parsing.cpp.

#define CHAR_FF   TEXT('\f')

Definition at line 28 of file Parsing.cpp.

#define CHAR_NEW_LINE   TEXT('\n')

Definition at line 29 of file Parsing.cpp.

#define CHAR_QUOTE   TEXT('\"')

Definition at line 30 of file Parsing.cpp.

#define CHAR_TAB   TEXT('\t')

Definition at line 26 of file Parsing.cpp.