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

Comparing branches/new_design/OOPSE-2.0/src/utils/StringUtils.cpp (file contents):
Revision 1683, Thu Oct 28 22:34:02 2004 UTC vs.
Revision 1822 by tim, Thu Dec 2 02:08:29 2004 UTC

# 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