/* * -------------------------------------------------------------------- * CS2S03/SE2S03, November 2011 * Assignment 5, Question 3 * File: scanpriv.h * -------------------------------------------------------------------- * This file contains the private data for the extended version * of the Scanner class. */ /* Instance variables */ string buffer; /* The string containing the tokens */ int len; /* The buffer length, for efficiency */ int cp; /* The current index in the buffer */ spaceOptionT spaceOption; /* Setting of the space option */ /* ------------------- change ------------------ */ stringOptionT stringOption; /* Setting of the string option */ /* ---------------- end of change -------------- */ /* Private method prototypes */ void skipSpaces(); int scanToEndOfIdentifier(); /* -------------------- change ----------------- */ int scanToEndOfQuotedString(); /* ------------------ end of change ------------ */