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

Comparing branches/new_design/OOPSE-4/src/utils/Trim.hpp (file contents):
Revision 1792 by tim, Mon Nov 29 17:59:56 2004 UTC vs.
Revision 1840 by tim, Fri Dec 3 00:26:07 2004 UTC

# Line 128 | Line 128 | namespace oopse {
128       * Remove all leading spaces in-place.
129       * @param str An input sequence
130       */
131 <    void trimLeft(std::string& str) {
132 <        trimLeftIf(str, std::isspace);
133 <    }
131 >    void trimLeft(std::string& str);
132  
133      /**
134       * Remove all trailing spaces in-place.
135       * @param str An input sequence
136       */
137 <    void trimRight(std::string& str) {
140 <        trimRightIf(str, std::isspace);
141 <    }
137 >    void trimRight(std::string& str);
138  
139      /**
140       *Remove all leading and trailing spaces in-place
141       * @param str An input sequence
142       */
143 <    void trim(std::string& str) {
148 <        trimIf(str, std::isspace);
149 <    }
143 >    void trim(std::string& str);
144  
145      /**
146       * Remove all leading spaces from the input.
147       * @return A trimmed copy of the input
148       * @param input An input sequence
149       */
150 <    std::string trimLeftCopy(const std::string& input) {
157 <        return trimLeftCopyIf(input, std::isspace);
158 <    }
150 >    std::string trimLeftCopy(const std::string& input);
151  
152      /**
153       * Remove all trailing spaces from the input.
154       * @return A trimmed copy of the input
155       * @param input An input sequence
156       */
157 <    std::string trimRightCopy(const std::string& input) {
166 <        return trimRightCopyIf(input, std::isspace);
167 <    }
157 >    std::string trimRightCopy(const std::string& input);
158  
159      /**
160       *Remove all leading and trailing spaces from the input.
161       * @return A trimmed copy of the input
162       * @param input An input sequence
163       */
164 <    std::string trimCopy(const std::string& input) {
175 <        return trimCopyIf(input, std::isspace);
176 <    }
164 >    std::string trimCopy(const std::string& input);
165  
166   }//end namespace oopse
167   #endif //UTILS_TRIM_HPP    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines