Portability Libraries  2015.2.0.0
Common Methods and Objects for Platform Independance.
SoftwareAndServices::Library::Common::Parse Class Reference

#include "<SaS/Common/Parse.hpp>"

+ Inheritance diagram for SoftwareAndServices::Library::Common::Parse:
+ Collaboration diagram for SoftwareAndServices::Library::Common::Parse:

Public Types

enum  charWidth_t { UnknownCharWidth_t = 0, MultibyteCharWidth_t = 1, WideCharWidth_t = 2, BinaryData_t = 3 }
 

Public Member Functions

 Parse (charWidth_t mode)
 
 Parse (const int fd, const char *filename, charWidth_t mode, const char *iCharset=NULL, const char *oCharset=NULL)
 
 Parse (const char *buffer, charWidth_t mode, const char *iCharset=NULL, const char *oCharset=NULL)
 
 Parse (const wchar_t *buffer, charWidth_t mode, const char *iCharset=NULL, const char *oCharset=NULL)
 
 Parse (File *file, charWidth_t mode, const char *iCharset=NULL, const char *oCharset=NULL)
 
virtual ~Parse ()
 
size_t CheckAccept (const String &accept) const
 
size_t CheckAccept (const wchar_t *accept) const
 
size_t CheckAccept (const char *accept) const
 
size_t CheckDouble () const
 
size_t CheckInt () const
 
size_t CheckReject (const String &reject) const
 
size_t CheckReject (const wchar_t *reject) const
 
size_t CheckReject (const char *reject) const
 
StringGetCount (size_t count) const
 
bool GetDouble (double &results) const
 
StringGetEntireBuffer () const
 
const char * GetInputCharset () const
 
bool GetInt (int &results) const
 
charWidth_t GetMode () const
 
const char * GetOutputCharset () const
 
StringGetUntil (const String &term) const
 
StringGetUntil (const wchar_t *term) const
 
StringGetUntil (const char *term) const
 
StringGetUntilRegex (const String &term) const
 
StringGetUntilRegex (const wchar_t *term) const
 
StringGetUntilRegex (const char *term) const
 
bool IsEof () const
 
StringLookCount (size_t count) const
 
StringLookUntil (const char *term) const
 
StringLookUntil (const String &term) const
 
bool Ncasecmp (const char *CompareTo, unsigned int HowManyCharacters) const
 
bool Ncmp (const char *CompareTo, unsigned int HowManyCharacters) const
 
bool Open (const char *file, int rwMode, charWidth_t charMode, const char *iCharset=NULL, const char *oCharset=NULL)
 
 operator char () const
 
 operator wchar_t () const
 
bool operator!= (const char c) const
 
bool operator!= (const wchar_t c) const
 
bool operator== (const char c) const
 
bool operator== (const wchar_t c) const
 
bool SetInputCharset (const char *charset)
 
bool SetMode (charWidth_t Width)
 
bool SetOutputCharset (const char *charset)
 
size_t Skip (size_t count) const
 
size_t SkipUntil (const String &term) const
 
size_t SkipUntil (const wchar_t *term) const
 
size_t SkipUntil (const char *term) const
 
StringSkipWhile (const char *ToSkip)
 
StringSkipWhileNot (const char *ToSkip)
 
- Public Member Functions inherited from SoftwareAndServices::Library::Common::instance< Parse >
 instance ()
 
virtual InstanceCount_t decInstance () const
 
virtual InstanceCount_t getInstance () const
 
virtual InstanceCount_t incInstance () const
 
void operator delete (void *ToFree)
 

Static Public Attributes

static const char * utf8
 

Detailed Description

Generic text parsing routines.

Definition at line 102 of file Parse.hpp.


The documentation for this class was generated from the following file: