----------------------------------------------------------------------
HISTORY: 01/30/2000 (BS) initial release
- 09/19/2002 (MSS) appended zeros to lines w/ comments
+ 09/19/2002 (MSS) appended zeros to lines w/ comments
----------------------------------------------------------------------
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
- USA or view http://www.gnu.org/copyleft/gpl.html.
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**********************************************************************/
while (tokencounter < tokenNo)
{
- if ((pos1 == inputLine.npos) || (pos1 == -1) || (pos == -1) )
+ if ((pos1 == inputLine.npos) || (pos1 == -1) || (pos == -1) )
return ""; //return an empty string if tokenNo exceeds the No of tokens in the line
inputLine = inputLine.substr(pos1 , MAXLINE);
}
if (pos1== -1 || pos == -1)
- return "";
+ return "";
else
return inputLine.substr(pos , pos1-pos); // return the desired token
}