# NSString+GNUstepBase documentation

rfm@gnu.org
Generated at 2025-09-10 09:16:48 +0000
2003-2010 Free Software Foundation, Inc.
Software documentation for the NSString(GNUstepBase) category
GNUstepBase/NSString+GNUstepBase.h
Provides some additional (non-standard) utility methods.
stringWithFormat:
format
arguments:
argList
Alternate way to invoke `stringWithFormat` if you have or wish to build an explicit `va_list` structure.
stringByDeletingPrefix:
prefix
Returns a string formed by removing the prefix string from the receiver. Raises an exception if the prefix is not present.
stringByDeletingSuffix:
suffix
Returns a string formed by removing the suffix string from the receiver. Raises an exception if the suffix is not present.
stringByReplacingString:
replace
withString:
by
Returns a string in which any (and all) occurrences of replace in the receiver have been replaced with by. Returns the receiver if replace does not occur within the receiver. NB. an empty string is not considered to exist within the receiver.
stringByTrimmingLeadSpaces
Returns a string formed by removing leading white space from the receiver.
stringByTrimmingSpaces
Returns a string formed by removing both leading and trailing white space from the receiver.
stringByTrimmingTailSpaces
Returns a string formed by removing trailing white space from the receiver.
substringFromRange:
aRange
An obsolete name for -substringWithRange: ... deprecated.