|
Samond Classes Library 1.2.0-RELEASE build 166
|
Text index class. More...
#import <SCTextIndex.h>
Instance Properties | |
| SCULong | line |
| SCULong | character |
| NSString * | description |
Creating Text Indexes | |
| (SCTextIndex *) | + textIndexWithCoder: |
| (SCTextIndex *) | + textIndexWithContentsOfSerializedFile: |
| (SCTextIndex *) | + textIndexWithDataDictionary: |
| (SCTextIndex *) | + textIndexWithDataDictionaryFromFile: |
| (SCTextIndex *) | + textIndexWithStream: |
| (SCTextIndex *) | + textIndexWithFileStream: |
| (SCTextIndex *) | + textIndexWithLine:character: |
| (SCTextIndex *) | + textIndexWithTextIndex: |
| (SCTextIndex *) | + textIndex |
Initializing Text Indexes | |
| (id) | - initWithLine:character: |
| (id) | - initWithTextIndex: |
| (id) | - init |
Copying Text Indexes | |
| (void) | - setLine:character: |
| (void) | - setTextIndex: |
Comparing Text Indexes | |
| (BOOL) | - isEqualToTextIndex: |
| (BOOL) | - isEqualTo: |
| (BOOL) | - isEqual: |
| (BOOL) | - isEqualToLine:character: |
Additional Inherited Members | |
Instance Methods inherited from SCObject | |
| (id) | - initWithContentsOfSerializedFile: |
| (BOOL) | - writeContentsToSerializedFile: |
| (id) | - initWithDataDictionaryFromFile: |
| (void) | - writeToDataDictionaryFile:atomically: |
| (void) | - writeToDataDictionaryFile: |
| (NSDictionary *) | - dataDictionary |
| (id) | - initWithFileStream: |
| (void) | - writeToFileStream: |
| (void) | - appendToFileStream: |
Instance Methods inherited from <SCCoding> | |
Instance Methods inherited from <SCDictionaring> | |
Instance Methods inherited from <SCCollectioning> | |
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.
| - (id) init |
Initializes a text index using the default settings.
Initializes a text index using the specified line number and character number.
| line | - line number |
| character | - character number |
| - (id) initWithTextIndex: | (SCTextIndex *) | textIndex |
Initializes a text index using the specified existing text index.
| textIndex | - 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 | - 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 | - 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 | - line number with which to compare the receiving text index |
| character | - 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 | - text index with which to compare the receiving text index |
Sets the specified line number and character number.
| line | - line number |
| character | - character number |
| - (void) setTextIndex: | (SCTextIndex *) | index |
Sets the line number and character number by using the specified existing text index.
| index | - existing source text index |
| + (SCTextIndex *) textIndex |
Returns a text index created by using the default settings.
| + (SCTextIndex *) textIndexWithCoder: | (NSCoder *) | coder |
Returns a text index created by using the specified coder.
| coder | - source coder |
| + (SCTextIndex *) textIndexWithContentsOfSerializedFile: | (NSString *) | path |
Returns a text index created by using the content of the serialized file with the specified path.
| path | - source serialized file path |
| + (SCTextIndex *) textIndexWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a text index created by using the specified data dictionary.
| dictionary | - source data dictionary |
| + (SCTextIndex *) textIndexWithDataDictionaryFromFile: | (NSString *) | path |
Returns a text index created by using the data dictionary from the specified file.
| path | - source data dictionary file path |
| + (SCTextIndex *) textIndexWithFileStream: | (NSString *) | path |
Returns a text index created by using the data from the file stream with the specified path.
| path | - source file stream path |
| SCStreamException | - stream error detected |
| SCSystemException | - system error detected |
| + (SCTextIndex *) textIndexWithLine: | (SCULong) | line | |
| character: | (SCULong) | character | |
Returns a text index created by using the specified line number and character number.
| line | - line number |
| character | - character number |
| + (SCTextIndex *) textIndexWithStream: | (SCStream *) | stream |
Returns a text index created by using the data from the specified stream.
| stream | - source stream |
| SCStreamException | - stream error detected |
| SCSystemException | - system error detected |
| + (SCTextIndex *) textIndexWithTextIndex: | (SCTextIndex *) | textIndex |
Returns a text index created by using the specified existing text index.
| textIndex | - existing source text index |
|
readwritenonatomicassign |
Character number.
|
readnonatomicretain |
Text index description
|
readwritenonatomicassign |
Line number.
1.8.9.1