Samond Classes Library 1.2.6-STABLE build 219
|
Text index class. More...
#import <SCTextIndex.h>
Instance Properties | |
SCIndex | line |
SCIndex | character |
Creating Text Indexes | |
(instancetype) | + textIndexWithCoder: |
(instancetype) | + textIndexWithContentsOfSerializedFile: |
(instancetype) | + textIndexWithDataDictionary: |
(instancetype) | + textIndexWithDataDictionaryFromFile: |
(instancetype) | + textIndexWithStream: |
(instancetype) | + textIndexWithFileStream: |
(instancetype) | + textIndexWithData: |
(instancetype) | + textIndexWithContentsOfFile: |
(instancetype) | + textIndexWithContentsOfURL: |
(instancetype) | + textIndexWithContentsOfURLString: |
(instancetype) | + textIndexWithLine:character: |
(instancetype) | + textIndexWithTextIndex: |
(instancetype) | + textIndex |
Initializing Text Indexes | |
(instancetype) | - initWithLine:character: |
(instancetype) | - initWithTextIndex: |
(instancetype) | - init |
Copying Text Indexes | |
(void) | - setLine:character: |
(void) | - setTextIndex: |
Comparing Text Indexes | |
(BOOL) | - isEqualToTextIndex: |
(BOOL) | - isEqualTo: |
(BOOL) | - isEqual: |
(BOOL) | - isEqualToLine:character: |
Additional Inherited Members | |
![]() | |
(instancetype) | - initWithContentsOfSerializedFile: |
(BOOL) | - writeContentsToSerializedFile: |
(instancetype) | - initWithDataDictionaryFromFile: |
(void) | - writeToDataDictionaryFile:atomically: |
(void) | - writeToDataDictionaryFile: |
(NSDictionary *) | - dataDictionary |
(instancetype) | - initWithFileStream: |
(void) | - writeToFileStream: |
(void) | - appendToFileStream: |
(instancetype) | - initWithData: |
(instancetype) | - initWithContentsOfFile: |
(instancetype) | - initWithContentsOfURL: |
(instancetype) | - initWithContentsOfURLString: |
(BOOL) | - writeToFile: |
(BOOL) | - writeToURL: |
(BOOL) | - writeToURLString: |
(NSData *) | - data |
![]() | |
NSString * | className |
Text index class.
Class SCTextIndex implements the entity of the text index, which is a combination of the string number within the strings list and the character number within the string.
- (instancetype) init |
Initializes a text index using the default settings.
Initializes a text index using the specified line number and character number.
line | - the line number |
character | - the character number |
- (instancetype) initWithTextIndex: | (SCTextIndex *) | textIndex |
Initializes a text index using the specified existing text index.
textIndex | - an existing source text index |
- (BOOL) isEqual: | (id) | object |
Returns a boolean value that indicates whether the receiving text index is equals to the specified object.
object | - an object with which to compare the receiving text index |
Reimplemented from SCObject.
- (BOOL) isEqualTo: | (id) | object |
Returns a boolean value that indicates whether the receiving text index is equals to the specified object.
object | - a class instance with which to compare the receiving text index |
Returns a boolean value that indicates whether the receiving text index is equals to the specified line number and character number.
line | - the line number with which to compare the receiving text index |
character | - the character number with which to compare the receiving text index |
- (BOOL) isEqualToTextIndex: | (SCTextIndex *) | index |
Returns a boolean value that indicates whether the receiving text index is equals to the specified text index.
index | - the text index with which to compare the receiving text index |
Sets the specified line number and character number.
line | - the line number |
character | - the character number |
- (void) setTextIndex: | (SCTextIndex *) | index |
Sets the line number and character number by using the specified existing text index.
index | - an existing source text index |
+ (instancetype) textIndex |
Returns the text index created by using the default settings.
+ (instancetype) textIndexWithCoder: | (NSCoder *) | coder |
Returns the text index created by using the specified coder.
coder | - the source coder |
+ (instancetype) textIndexWithContentsOfFile: | (NSString *) | path |
Returns the text index created by using the file with the specified path.
path | - the path to the source file |
+ (instancetype) textIndexWithContentsOfSerializedFile: | (NSString *) | path |
Returns the text index created by using the content of the serialized file with the specified path.
path | - the source serialized file path |
+ (instancetype) textIndexWithContentsOfURL: | (NSURL *) | url |
Returns the text index created by using the specified URL.
url | - the source URL |
+ (instancetype) textIndexWithContentsOfURLString: | (NSString *) | urlString |
Returns the text index created by using the data from the URL with the specified string.
urlString | - the string of the source URL |
+ (instancetype) textIndexWithData: | (NSData *) | data |
Returns the text index created by using the specified data object.
data | - the source data object |
+ (instancetype) textIndexWithDataDictionary: | (NSDictionary *) | dictionary |
Returns the text index created by using the specified data dictionary.
dictionary | - the source data dictionary |
+ (instancetype) textIndexWithDataDictionaryFromFile: | (NSString *) | path |
Returns the text index created by using the data dictionary from the specified file.
path | - the source data dictionary file path |
+ (instancetype) textIndexWithFileStream: | (NSString *) | path |
Returns the text index created by using the data from the file stream with the specified path.
path | - the path of the source file stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
Returns the text index created by using the specified line number and character number.
line | - the line number |
character | - the character number |
+ (instancetype) textIndexWithStream: | (SCStream *) | stream |
Returns the text index created by using the data from the specified stream.
stream | - the source stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
+ (instancetype) textIndexWithTextIndex: | (SCTextIndex *) | textIndex |
Returns the text index created by using the specified existing text index.
textIndex | - existing source text index |
|
readwritenonatomicassign |
A character number
|
readwritenonatomicassign |
A line number