/* * Copyright 1995, 1996 Perforce Software. All rights reserved. * * This file is part of Perforce - the FAST SCM System. */ # include "specchar.h" void SpecChar::Set( const char *p ) { this->p = p - 1; this->line = 1; this->cc = cEOS; this->Advance(); } void SpecChar::Advance( void ) { char c = *++p; if( cc == cNL ) ++line; switch( c ) { case ' ': cc = cSPACE; break; case '\t': cc = cSPACE; break; case '\r': cc = cSPACE; break; case '\n': cc = cNL; break; case ':': cc = cCOLON; break; case '#': cc = cPOUND; break; case '\"': cc = cQUOTE; break; case '\0': cc = cEOS; break; default: cc = cMISC; break; } } const char *const charNames[] = { "sp", "nl", ":", "#", "\"", "*", "EOS" } ; const char * SpecChar::CharName( void ) { return charNames[ this->cc ]; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 18760 | rlranft |
Populate -o //guest/perforce_software/p4/... //guest/rlranft/p4/.... |
||
//guest/perforce_software/p4/2014-2/support/specchar.cc | |||||
#1 | 15903 | Matt Attaway | Everything should be happy now between the Workshop and the depot paths | ||
//guest/perforce_software/p4/2014_2/support/specchar.cc | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | ||
//guest/perforce_software/p4/2014.2/support/specchar.cc | |||||
#1 | 12189 | Matt Attaway | Initial (and much belated) drop of 2014.2 p4 source code |