13 |
|
#include <sstream> |
14 |
|
|
15 |
|
namespace oopse { |
16 |
– |
|
17 |
– |
using namespace std; |
16 |
|
|
17 |
|
|
18 |
|
/** |
19 |
|
* Converts a string to UPPER CASE |
20 |
|
* @param S |
21 |
|
*/ |
22 |
< |
string UpperCase(const string& S); |
22 |
> |
std::string UpperCase(const std::string& S); |
23 |
|
|
24 |
|
/** |
25 |
|
* Converts a string to lower case |
26 |
|
* @param S |
27 |
|
*/ |
28 |
< |
string LowerCase(const string& S); |
28 |
> |
std::string LowerCase(const std::string& S); |
29 |
|
|
30 |
|
/** |
31 |
|
* Removes left and right spaces from a string |
43 |
|
* |
44 |
|
* @return the line number of the block within the theStream |
45 |
|
*/ |
46 |
< |
int findBegin(istream &theStream, char* startText ); |
46 |
> |
int findBegin(std::istream &theStream, char* startText ); |
47 |
|
|
48 |
|
/** |
49 |
|
* Counts the number of tokens on line which are delimited by the characters |