Download Source Code

CStrParse Class Reference

Provides string parsing functions. More...

#include <StrParse.h>

List of all members.

Public Member Functions

 CStrParse (void)
 Constructor.
virtual ~CStrParse (void)
 Destructor.

Static Public Member Functions

static LONG FindNumber (LPCTSTR pBuf, LONG i, LONG lMax)
 Searches a string for a number character.
static LONG WFindNumber (LPCWSTR pBuf, LONG i, LONG lMax)
 Searches a string for a number character.
static UINT IsLineBreak (LPCTSTR pBuf, UINT *puSize=NULL)
 Returns non-zero if line break is found.
static BOOL IsTextChar (const char ch)
 Returns non-zero if ch is a text character.
static BOOL IsWhiteSpace (const char ch)
 Returns non-zero if ch is a white space / non-text character.
static DWORD SkipWhiteSpace (LPCTSTR pBuf, UINT i)
 Returns the index of the first character that is not white space.
static UINT SkipNonWhiteSpace (LPCTSTR pBuf, UINT i)
 Returns the index of the first character that is white space.
static UINT NextToken (LPCTSTR pBuf, UINT i)
 Returns the index of the next sequence of non-whitespace characters.
static UINT NextLine (LPCTSTR pBuf, UINT i)
 Returns the index of the next line after CRLF or LF.
static BOOL FindChar (LPCTSTR pBuf, char ch)
 Returns non-zero if the specified character is found in the buffer.
static BOOL FindChar (LPCTSTR pBuf, char ch, UINT uMax)
 Returns non-zero if the specified character is found in the buffer.
static UINT Skip (LPCTSTR pBuf, LPCTSTR pChars)
 Skips occurences of characters in pChars in pBuf.
static UINT FindChars (LPCTSTR pBuf, LPCTSTR pChars)
 Skips occurences of characters in pChars in pBuf.


Detailed Description

Provides string parsing functions.

Provides basic string parsing functions.


Member Function Documentation

static UINT CStrParse::FindChars LPCTSTR  pBuf,
LPCTSTR  pChars
[inline, static]
 

Skips occurences of characters in pChars in pBuf.

Returns:
Returns the offset of the first character in pChars or end of string

static UINT CStrParse::Skip LPCTSTR  pBuf,
LPCTSTR  pChars
[inline, static]
 

Skips occurences of characters in pChars in pBuf.

Returns:
Returns the offset of the first character not in pChars or end of string


The documentation for this class was generated from the following files:
  • inc/StrParse.h
  • StrParse.cpp
Copyright Robert Umbehant
This documentation is covered by the LGPL