bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString -stringByTrimmingSpaces bug


From: Manuel Guesdon
Subject: NSString -stringByTrimmingSpaces bug
Date: Thu, 14 Mar 2002 11:35:54 +0100 (CET)

Hi,

The following case:
        '   0' (3 spaces and a character) is badly handled: the method return 
an empty string instead of '0'
I think the test
        if (start<end)
should be
        if (start<=end && end<length)

Manuel






reply via email to

[Prev in Thread] Current Thread [Next in Thread]