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

Comparing branches/new_design/OOPSE-4/src/utils/StringUtils.cpp (file contents):
Revision 1792 by tim, Mon Nov 29 17:59:56 2004 UTC vs.
Revision 1822 by tim, Thu Dec 2 02:08:29 2004 UTC

# Line 139 | Line 139 | int isEndLine(char *line) {
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