http and lots of formats
This commit is contained in:
21
public/tier2/tokenizer.h
Normal file
21
public/tier2/tokenizer.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef TIER2_TOKENIZER_H
|
||||
#define TIER2_TOKENIZER_H
|
||||
#include "tier0/platform.h"
|
||||
#include "tier1/utlstring.h"
|
||||
#include "tier1/utlvector.h"
|
||||
|
||||
struct Token_t
|
||||
{
|
||||
CUtlString m_szValue;
|
||||
bool m_bIsQuoted;
|
||||
|
||||
uint32_t m_iLine;
|
||||
uint32_t m_iCharacter;
|
||||
};
|
||||
|
||||
typedef bool( *fnIsAlphabetSymbol )( char c );
|
||||
CUtlVector<Token_t> Tokenize( const char *szString );
|
||||
CUtlVector<Token_t> Tokenize( const char *szString, fnIsAlphabetSymbol pfnIsAlphabetSymbol );
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user