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:
trunk/OOPSE-3.0/src/utils/StringUtils.cpp (file contents), Revision 1600 by gezelter, Tue Oct 19 20:40:30 2004 UTC vs.
branches/new_design/OOPSE-3.0/src/utils/StringUtils.cpp (file contents), Revision 1822 by tim, Thu Dec 2 02:08:29 2004 UTC

# Line 1 | Line 1 | using namespace std;
1   #include "utils/StringUtils.hpp"
2  
3   using namespace std;
4 using namespace oopse;
4  
5 + namespace oopse {
6   string UpperCase(const string& S) {
7    string uc = S;
8    unsigned int n = uc.size();
# Line 138 | Line 138 | int isEndLine(char *line) {
138  
139   return 0;
140   }
141 +
142 +
143 + std::string getPrefix(const std::string& str) {
144 +  return str.substr(0, str.rfind('.'));
145 + }
146 +
147 + std::string getSuffix(const std::string& str) {
148 +    return str.substr(0, str.find('.'));
149 + }
150 +
151 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines