TokenString.h. #1

  • //
  • guest/
  • YourUncleBob/
  • p4win/
  • main/
  • gui/
  • TokenString.h.
  • View
  • Commits
  • Open Download .zip Download (607 B)
//
// Copyright 1997 Nicholas J. Irias.  All rights reserved.
//
//

// P4FileStats.h

#ifndef __TOKENSTRING__
#define __TOKENSTRING__

#define TOKENBUFFERSIZE 2048

class CTokenString 
{
public:
	CTokenString();
	~CTokenString();
	void Create(LPCTSTR str);
    void Reset();
	LPTSTR GetToken(BOOL acceptQuoted = FALSE, BOOL acceptGtLt = FALSE);
	LPTSTR GetRemainder();

	inline void PrepareParse() { ASSERT(m_Initialized); m_Token[0]=_T('\0'); m_pNext= m_pStr; }


protected:
	LPTSTR m_pStr;
	int m_Len;
	BOOL m_Initialized;
	LPTSTR m_pNext;
	TCHAR m_Token[TOKENBUFFERSIZE];
	
};

#endif //__TOKENSTRING__
# Change User Description Committed
#1 19924 YourUncleBob Populate -o //guest/perforce_software/p4win/...
//guest/YourUncleBob/p4win/.....
//guest/perforce_software/p4win/main/gui/TokenString.h
#1 16169 perforce_software Move files to follow new path scheme for branches.
//guest/perforce_software/p4win/gui/TokenString.h
#1 8562 Matt Attaway These feet never stop running.

Initial commit of the P4Win source code.  To the best of our knowledge this
compiles and runs using the 2013.3 P4 API and VS 2010. Expect a few changes
as we refine the build process. Please post any build issues to the forums.