Re: string by Igor
Igor
Tue Dec 16 14:52:06 CST 2003
"anonymous" <anonymous@discussions.microsoft.com> wrote in message
news:022701c3c409$49c7b380$a301280a@phx.gbl...
> I have the following line of the code where I am deleting
> the spaces after the last char. How do I delete the spaces
> before the char?
> string.erase (string.find_last_not_of (" ") + 1 ) ;
string.erase(0, string.find_first_not_of(' '));
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken