validate.h #1

  • //
  • guest/
  • perforce_software/
  • p4/
  • i18n/
  • validate.h
  • View
  • Commits
  • Open Download .zip Download (550 B)
/*
 * Copyright 1995, 2003 Perforce Software.  All rights reserved.
 *
 * This file is part of Perforce - the FAST SCM System.
 */

/*
 * ValidateCharSet
 */

class CharSetValid {
    public:
	virtual ~CharSetValid();
	virtual void Reset() = 0;
	virtual int Valid( const char *buf, int len, const char **retp = 0 ) = 0;
};

class CharSetUTF8Valid : public CharSetValid {
	int	followcnt;
	int	magic;
	static unsigned char validmap[256];
    public:
	CharSetUTF8Valid();
	void Reset();
	int Valid( const char *buf, int len, const char **retp = 0 );
};
# Change User Description Committed
#2 12188 Matt Attaway Move 'main' p4 into a release specific directory in prep for new releases
#1 9129 Matt Attaway Initial commit of the 2014.1 p4/p4api source code