mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +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
49dfed3d80
commit
fa877c87d4
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>
|
2009-01-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSRunLoop.m: check for performers in thread even if there are
|
* Source/NSRunLoop.m: check for performers in thread even if there are
|
||||||
|
|
|
@ -2361,6 +2361,10 @@ handle_printf_atsign (FILE *stream,
|
||||||
forRange: (NSRange)range
|
forRange: (NSRange)range
|
||||||
{
|
{
|
||||||
// FIXME
|
// FIXME
|
||||||
|
[self getLineStart: startPtr
|
||||||
|
end: parEndPtr
|
||||||
|
contentsEnd: contentsEndPtr
|
||||||
|
forRange: range];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Changing Case
|
// Changing Case
|
||||||
|
@ -3234,7 +3238,14 @@ static NSFileManager *fm = nil;
|
||||||
|
|
||||||
- (NSRange) paragraphRangeForRange: (NSRange)range
|
- (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
|
- (NSString*) pathExtension
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue