mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Basic implementation of the NSString methods -paragraphRangeForRange:
and -getParagraphStart:... git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27524 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7ae871d1ac
commit
10d455121d
2 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-01-05 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSString.m (-paragraphRangeForRange:,
|
||||
-getParagraphStart:...): Basic implementation of these methods.
|
||||
|
||||
2009-01-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSRunLoop.m: check for performers in thread even if there are
|
||||
|
|
|
@ -2361,6 +2361,10 @@ handle_printf_atsign (FILE *stream,
|
|||
forRange: (NSRange)range
|
||||
{
|
||||
// FIXME
|
||||
[self getLineStart: startPtr
|
||||
end: parEndPtr
|
||||
contentsEnd: contentsEndPtr
|
||||
forRange: range];
|
||||
}
|
||||
|
||||
// Changing Case
|
||||
|
@ -3234,7 +3238,14 @@ static NSFileManager *fm = nil;
|
|||
|
||||
- (NSRange) paragraphRangeForRange: (NSRange)range
|
||||
{
|
||||
return NSMakeRange(0, 0); // FIXME
|
||||
NSUInteger startIndex;
|
||||
NSUInteger endIndex;
|
||||
|
||||
[self getParagraphStart: &startIndex
|
||||
end: &endIndex
|
||||
contentsEnd: NULL
|
||||
forRange: range];
|
||||
return NSMakeRange(startIndex, endIndex - startIndex);
|
||||
}
|
||||
|
||||
- (NSString*) pathExtension
|
||||
|
|
Loading…
Reference in a new issue