/* * Copyright 2002 Perforce Software. All rights reserved. * * This file is part of Perforce - the FAST SCM System. */ /* * diffsr.h -- diff's Sequence's Sequencer * * Public classes: * * LineReader - a diff Sequencer for lines * WordReader - a diff Sequencer for words separated by whitespace * WClassReader - a diff Sequencer for classes of characters * DifflReader - a diff Sequencer for lines, line endings ignored * DiffbReader - a diff Sequencer for lines, whitespace changes ignored * DiffwReader - a diff Sequencer for lines, all whitespace ignored */ class LineReader : public Sequencer { public: virtual int Equal( LineNo lA, Sequence *B, LineNo lB ); virtual void Load( Error *e ); } ; class WordReader : public LineReader { public: virtual void Load( Error *e ); } ; class WClassReader : public LineReader { public: virtual void Load( Error *e ); } ; class DifflReader : public Sequencer { public: virtual int Equal( LineNo lA, Sequence *B, LineNo lB ); virtual void Load( Error *e ); // any newline character int NewLine( UChar c ) { return c == '\r' || c == '\n'; } } ; class DiffbReader : public DifflReader { public: virtual int Equal( LineNo lA, Sequence *B, LineNo lB ); virtual void Load( Error *e ); // for purposes of diff -b: what is whitespace? int Whitespace( UChar c ) { return c == ' ' || c == '\t'; } } ; class DiffwReader : public DiffbReader { public: virtual int Equal( LineNo lA, Sequence *B, LineNo lB ); virtual void Load( Error *e ); } ;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 18760 | rlranft |
Populate -o //guest/perforce_software/p4/... //guest/rlranft/p4/.... |
||
//guest/perforce_software/p4/2014-2/diff/diffsr.h | |||||
#1 | 15903 | Matt Attaway | Everything should be happy now between the Workshop and the depot paths | ||
//guest/perforce_software/p4/2014_2/diff/diffsr.h | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | ||
//guest/perforce_software/p4/2014.2/diff/diffsr.h | |||||
#1 | 12189 | Matt Attaway | Initial (and much belated) drop of 2014.2 p4 source code |