Samond Classes Library 1.2.1-RELEASE build 181
|
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) | + 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: |
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 a text index created by using the default settings.
+ (instancetype) textIndexWithCoder: | (NSCoder *) | coder |
Returns a text index created by using the specified coder.
coder | - the source coder |
+ (instancetype) textIndexWithContentsOfSerializedFile: | (NSString *) | path |
Returns a text index created by using the content of the serialized file with the specified path.
path | - the source serialized file path |
+ (instancetype) textIndexWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a text index created by using the specified data dictionary.
dictionary | - the source data dictionary |
+ (instancetype) textIndexWithDataDictionaryFromFile: | (NSString *) | path |
Returns a text index created by using the data dictionary from the specified file.
path | - the source data dictionary file path |
+ (instancetype) textIndexWithFileStream: | (NSString *) | path |
Returns a 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 a 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 a 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 a text index created by using the specified existing text index.
textIndex | - existing source text index |
|
readwritenonatomicassign |
Character number.
|
readwritenonatomicassign |
Line number.