On 11/13/13 3:35 PM, "Maurice Amsellem" <maurice.amsel...@systar.com>
wrote:

>Hi,
>
>I have noticed that trim will return a copy of the string argument even
>if there are no spaces, instead of returning the original string.
>Is that intended behavior (maybe for compatibility, or something ...)  ?

No idea.  I was trying to think of any danger of manipulating the returned
string if it is the original and not always a copy, but I can't think of
anything off-hand.

Is it much faster to add the check and return the original?

-Alex

Reply via email to