ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/utils/StringUtils.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/utils/StringUtils.cpp (file contents):
Revision 1823 by tim, Thu Dec 2 02:08:29 2004 UTC vs.
Revision 1824 by tim, Thu Dec 2 03:12:25 2004 UTC

# Line 1 | Line 1
1   #include "utils/StringUtils.hpp"
2  
3 using namespace std;
4
3   namespace oopse {
4 < string UpperCase(const string& S) {
5 <  string uc = S;
4 > std::string UpperCase(const std::string& S) {
5 >  std::string uc = S;
6    unsigned int n = uc.size();
7    for (unsigned int j = 0; j < n; j++) {  
8      char sj = uc[j];
# Line 13 | Line 11 | string LowerCase(const string& S) {
11    return uc;
12   }
13  
14 < string LowerCase(const string& S) {
15 <  string lc = S;
14 > std::string LowerCase(const std::string& S) {
15 >  std::string lc = S;
16    unsigned int n = lc.size();
17    for (unsigned int j = 0; j < n; j++) {
18      char sj = lc[j];
# Line 51 | Line 49 | int findBegin(istream &theStream, char* startText ){
49    return (str);
50   }
51  
52 < int findBegin(istream &theStream, char* startText ){
52 > int findBegin(std::istream &theStream, char* startText ){
53    const int MAXLEN = 1024;
54    char readLine[MAXLEN];  
55    int foundText = 0;
# Line 60 | Line 58 | int findBegin(istream &theStream, char* startText ){
58    char* eof_test;
59  
60    // rewind the stream
61 <  theStream.seekg (0, ios::beg);
61 >  theStream.seekg (0, std::ios::beg);
62    lineNum = 0;
63    
64    if (!theStream.eof()) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines