--- trunk/OOPSE-2.0/src/utils/StringUtils.hpp 2004/10/18 16:29:53 1590 +++ trunk/OOPSE-2.0/src/utils/StringUtils.hpp 2004/10/19 18:21:25 1598 @@ -29,13 +29,22 @@ namespace oopse { string LowerCase(const string& S); /** + * Removes left and right spaces from a string + * + * @param str String to trim + * + * @return char* to the trimed string + */ + char* trimSpaces(char *str); + + /** * Finds the location of the string "begin " in an input stream. * @param theStream * @param startText * * @return the line number of the block within the theStream */ - int findBegin(istream theStream, char* startText ); + int findBegin(istream &theStream, char* startText ); /** * Counts the number of tokens on line which are delimited by the characters @@ -46,15 +55,6 @@ namespace oopse { int countTokens(char *line, char *delimiters); /** - * Removes left and right spaces from a string - * - * @param str String to trim - * - * @return char* to the trimed string - */ - char* TrimSpaces(char *str); - - /** * discovers whether or not the line contains the "end" token * * @param line The line to test