ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/utils/StringUtils.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/utils/StringUtils.hpp (file contents):
Revision 1590 by gezelter, Mon Oct 18 16:29:53 2004 UTC vs.
Revision 1598 by chrisfen, Tue Oct 19 18:21:25 2004 UTC

# Line 29 | Line 29 | namespace oopse {
29    string LowerCase(const string& S);
30  
31    /**
32 +   * Removes left and right spaces from a string
33 +   *
34 +   * @param str  String to trim
35 +   *
36 +   * @return  char* to the trimed string
37 +   */
38 +  char* trimSpaces(char *str);
39 +
40 +  /**
41     * Finds the location of the string "begin <startText>" in an input stream.
42     * @param theStream
43     * @param startText
44     *
45     * @return the line number of the block within the theStream
46     */
47 <  int findBegin(istream theStream, char* startText );
47 >  int findBegin(istream &theStream, char* startText );
48  
49    /**
50     * Counts the number of tokens on line which are delimited by the characters
# Line 46 | Line 55 | namespace oopse {
55    int countTokens(char *line, char *delimiters);
56  
57    /**
49   * Removes left and right spaces from a string
50   *
51   * @param str  String to trim
52   *
53   * @return  char* to the trimed string
54   */
55  char* TrimSpaces(char *str);
56
57  /**
58     * discovers whether or not the line contains the "end" token
59     *
60     * @param line  The line to test

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines