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 |
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 |
62 |
|
* @return int (==1 if the line has "end", ==0 if not). |
63 |
|
*/ |
64 |
|
int isEndLine(char *line); |
65 |
+ |
|
66 |
|
} |
67 |
|
|
68 |
|
#endif |