-
Notifications
You must be signed in to change notification settings - Fork 0
/
RegExText.h
51 lines (37 loc) · 1011 Bytes
/
RegExText.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// RegExText.h
// RegExhibit
//
// Copyright 2007 Roger Jolly. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface RegExText : NSObject
{
BOOL containsPositions;
int beginPosition, endPosition;
NSString *theText;
}
#pragma mark-
#pragma mark Initialisation
- (id) init;
#pragma mark-
#pragma mark Accessors
- (void) setBeginPosition: (int) position;
- (int) beginPosition;
- (void) setEndPosition: (int) position;
- (int) endPosition;
- (void) setBeginPosition: (int) startPosition endPosition: (int) stopPosition;
- (void) setContainsPositions: (BOOL) positionsSet;
- (BOOL) containsPositions;
- (void) setTheText: (NSString *) newText;
- (NSString *) theText;
#pragma mark-
#pragma mark Other methods
- (NSString *) displayWithSource: (NSString *) sourceText;
- (NSString *) displayInOutlineWithSource: (NSString *) sourceText;
- (int) numberOfChildrenShowingReplacements: (BOOL) showReplacements;
- (NSRange) range;
#pragma mark-
#pragma mark Cleaning up
- (void) dealloc;
@end