|
Boost Users : |
From: Groleo Marius (groleo_at_[hidden])
Date: 2005-03-17 03:02:06
hello
int main(){
string str1="\t \nhello world! ";
trim_if(str1, is_any_of("\t") ); //
str1 == "hello world!"
trim_if(str1, is_any_of("\n") ); //
str1 == "hello world!"
cout << str1;
}
I get the following output:
#>
hello world! #>
Isn't it supposed to be:
#>
hello world! #>
???
-- Regards, Groleo! .''`. # touch universe : :' : # chmod +rwx universe `. `'` # ./universe `- Debian - when you have better things to do than fix a system
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net