splr.h #1

  • //
  • guest/
  • perforce_software/
  • p4/
  • 2017-1/
  • support/
  • splr.h
  • View
  • Commits
  • Open Download .zip Download (721 B)
/*
 * Copyright 1995, 1996 Perforce Software.  All rights reserved.
 *
 * This file is part of Perforce - the FAST SCM System.
 */

/*
 * StrPtrLineReader: utility class for manipulating a string which
 *                   contains multiple "lines", separated by embedded
 *                   linefeed characters. Wins no awards for efficiency,
 *                   but is intended to be used by command line aliasing,
 *                   which is typically used with small string buffers.
 */
class StrPtrLineReader
{

    public:
	                StrPtrLineReader( const StrPtr *buf );
	                ~StrPtrLineReader();

	int		GetLine( StrBuf *line );

	int		CountLines();

    private:

	const char *	start;
} ;
# Change User Description Committed
#1 22288 mark_mears import 2017.1 code drop