Opened 19 years ago

Closed 15 years ago

#224 closed Feature Requests (fixed)

Extensions to std::string: compareIgnoreCase(), trim(), ...

Reported by: panzi@… Owned by: az_sw_dude
Milestone: Component: string_algo
Version: None Severity: Problem
Keywords: Cc:

Description (last modified by Dave Abrahams)

Extensions to std::string like a member function
compareCaseIgnore(...) and [l|r]trim(const char *
whitespace = " \t\r\n") would be very nice and so I
haven't to use stricmp( str1.c_str(), str2.c_str() )
any more!

PS: boost is great!

Change History (4)

comment:1 by Dave Abrahams, 15 years ago

Description: modified (diff)
Owner: changed from nobody to az_sw_dude
Reporter: changed from panzi to panzi@…
Severity: Showstopper
Status: assignednew

reassigning to Jeff because I know he has built something like this, but it should probably be closed as it is really a library suggestion, not a feature request.

comment:2 by Marshall Clow, 15 years ago

Component: Nonestring_algo

comment:3 by Marshall Clow, 15 years ago

Severity: ShowstopperProblem

comment:4 by Marshall Clow, 15 years ago

Resolution: Nonefixed
Status: newclosed

The requested functions are already available in the string_algorithms library.

Check out the file <boost/algorithm/string/trim.hpp>. (or the umbrella <boost/algorithm/string.hpp>

Note: See TracTickets for help on using tickets.