Proof reading fixes and documentation improvement.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14380 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-08-30 14:54:07 +00:00
parent cbd9112a25
commit e48ff2709f
2 changed files with 18 additions and 11 deletions

View file

@ -61,6 +61,17 @@
specification are made available in the headers. specification are made available in the headers.
</desc> </desc>
</deflist> </deflist>
<p>
<em>NB</em> These preprocessor constants are used in
<em>developer code</em> (ie the code that users of GNUstep write)
rather than by the GNUstep software itsself. They permit a
developer to ensure that he/she does not write code which depends
upon API not present on other implementations (in practice,
MacOS-X or some old OPENSTEP systems).<br />
The actual GNUstep libraries are always built with the full
GNUstep API in place, so that the feature set is as consistent
as possible.
</p>
</subsect> </subsect>
<subsect> <subsect>
<heading>User defaults</heading> <heading>User defaults</heading>

View file

@ -1918,13 +1918,13 @@ handle_printf_atsign (FILE *stream,
* <item>U+000D (carriage return)</item> * <item>U+000D (carriage return)</item>
* <item>U+2028 (Unicode line separator)</item> * <item>U+2028 (Unicode line separator)</item>
* <item>U+2029 (Unicode paragraph separator)</item> * <item>U+2029 (Unicode paragraph separator)</item>
* <item>U+000D U+000A (CRLF</item> * <item>U+000D U+000A (CRLF)</item>
* </list> * </list>
* The index of the first character of the line at or before aRange is * The index of the first character of the line at or before aRange is
* returned in startIndex.<br /> * returned in startIndex.<br />
* The index of the first character of the next line after the line terminator * The index of the first character of the next line after the line terminator
* is returned in endIndex.<br /> * is returned in endIndex.<br />
* The index of the last character bfore the line terminator is returned * The index of the last character before the line terminator is returned
* contentsEndIndex.<br /> * contentsEndIndex.<br />
* Raises an NSRangeException if the range is invalid, but permits the index * Raises an NSRangeException if the range is invalid, but permits the index
* arguments to be null pointers (in which case no value is returned in that * arguments to be null pointers (in which case no value is returned in that
@ -4103,7 +4103,7 @@ handle_printf_atsign (FILE *stream,
- (NSString*) stringByRemovingSuffix: (NSString*)suffix - (NSString*) stringByRemovingSuffix: (NSString*)suffix
{ {
NSCAssert2([self hasSuffix: suffix], NSCAssert2([self hasSuffix: suffix],
@"'%@' has not the suffix '%@'", self, suffix); @"'%@' does not have the suffix '%@'", self, suffix);
return [self substringToIndex: ([self length] - [suffix length])]; return [self substringToIndex: ([self length] - [suffix length])];
} }
@ -4114,7 +4114,7 @@ handle_printf_atsign (FILE *stream,
- (NSString*) stringByRemovingPrefix: (NSString*)prefix - (NSString*) stringByRemovingPrefix: (NSString*)prefix
{ {
NSCAssert2([self hasPrefix: prefix], NSCAssert2([self hasPrefix: prefix],
@"'%@' has not the prefix '%@'", self, prefix); @"'%@' does not have the prefix '%@'", self, prefix);
return [self substringFromIndex: [prefix length]]; return [self substringFromIndex: [prefix length]];
} }
@ -4278,7 +4278,7 @@ handle_printf_atsign (FILE *stream,
- (void) removeSuffix: (NSString*)suffix - (void) removeSuffix: (NSString*)suffix
{ {
NSCAssert2([self hasSuffix: suffix], NSCAssert2([self hasSuffix: suffix],
@"'%@' has not the suffix '%@'", self, suffix); @"'%@' does not have the suffix '%@'", self, suffix);
[self deleteCharactersInRange: [self deleteCharactersInRange:
NSMakeRange([self length] - [suffix length], [suffix length])]; NSMakeRange([self length] - [suffix length], [suffix length])];
} }
@ -4290,7 +4290,7 @@ handle_printf_atsign (FILE *stream,
- (void) removePrefix: (NSString*)prefix; - (void) removePrefix: (NSString*)prefix;
{ {
NSCAssert2([self hasPrefix: prefix], NSCAssert2([self hasPrefix: prefix],
@"'%@' has not the prefix '%@'", self, prefix); @"'%@' does not have the prefix '%@'", self, prefix);
[self deleteCharactersInRange: NSMakeRange(0, [prefix length])]; [self deleteCharactersInRange: NSMakeRange(0, [prefix length])];
} }
@ -4361,12 +4361,8 @@ handle_printf_atsign (FILE *stream,
unichar (*caiImp)(NSString*, SEL, unsigned int); unichar (*caiImp)(NSString*, SEL, unsigned int);
caiImp = (unichar (*)())[self methodForSelector: caiSel]; caiImp = (unichar (*)())[self methodForSelector: caiSel];
while (end > 0) while (end > 0 && isspace((*caiImp)(self, caiSel, end - 1)))
{ {
if (!isspace((*caiImp)(self, caiSel, end - 1)))
{
break;
}
end--; end--;
} }
if (end < length) if (end < length)