Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (19 sloc) 0.666 kb
//
// NSString+Paragraphs.h
// DTRichTextEditor
//
// Created by Oliver Drobnik on 11/11/11.
// Copyright (c) 2011 Cocoanetics. All rights reserved.
//
/**
Methods simplifying dealing with text that is in paragraphs.
The character used to separate paragraphs from each other is '\n'.
*/
@interface NSString (Paragraphs)
/*
Extends the given range such that it contains only full paragraphs.
*/
- (NSRange)rangeOfParagraphsContainingRange:(NSRange)range parBegIndex:(NSUInteger *)parBegIndex parEndIndex:(NSUInteger *)parEndIndex;
- (BOOL)indexIsAtBeginningOfParagraph:(NSUInteger)index;
- (NSRange)rangeOfParagraphAtIndex:(NSUInteger)index;
@end
Jump to Line
Something went wrong with that request. Please try again.