validate.h #1

  • //
  • guest/
  • dannyz_snps/
  • p4/
  • 2016-1/
  • 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
#1 21443 dannyz_snps "Forking branch 2016-1 of perforce_software-p4 to dannyz_snps-p4."
//guest/perforce_software/p4/2016-1/i18n/validate.h
#1 19472 Liz Lam Initial add of the 2016.1 p4/p4api source code.