Opened 15 years ago

Closed 11 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 Changed 11 years ago by Dave Abrahams

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 Changed 11 years ago by Marshall Clow

Component: Nonestring_algo

comment:3 Changed 11 years ago by Marshall Clow

Severity: ShowstopperProblem

comment:4 Changed 11 years ago by Marshall Clow

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.