|
Samond Classes Library 1.1.6-RELEASE build 132
|
Text position class. More...
#import <SCTextIndex.h>
Public Member Functions | |
Initializing Text Index | |
| (id) | - init |
| (id) | - initWithLine:character: |
| (id) | - initWithTextIndex: |
Setting and Getting Text Index Properties | |
| (SCULong) | - line |
| (SCULong) | - character |
| (NSString *) | - description |
| (void) | - setLine: |
| (void) | - setCharacter: |
| (void) | - setLine:character: |
| (void) | - setTextIndex: |
Comparing Text Index | |
| (BOOL) | - isEqualToTextIndex: |
| (BOOL) | - isEqual: |
| (BOOL) | - isEqualToLine:character: |
Static Public Member Functions | |
Creating Text Index | |
| (SCTextIndex *) | + textIndexWithDataDictionary: |
| (SCTextIndex *) | + textIndexWithDataDictionaryFromFile: |
| (SCTextIndex *) | + textIndexWithCoder: |
| (SCTextIndex *) | + textIndexWithContentsOfSerializedFile: |
| (SCTextIndex *) | + textIndexWithStream: |
| (SCTextIndex *) | + textIndexWithFileStream: |
| (SCTextIndex *) | + textIndex |
| (SCTextIndex *) | + textIndexWithLine:character: |
| (SCTextIndex *) | + textIndexWithTextIndex: |
Text position class.
Class implements the pointer within text information (line and character indexes).
Class was introduced in version 1.1.4.
Class declares the following properties:
| - (SCULong) character |
Returns the character index.
| - (NSString *) description |
Returns a string with text index description.
| - (id) init |
Initializes the text index using the default line and character indexes.
Initializes the text index using the specified line and character indexes.
| line | - line index |
| character | - character index |
| - (id) initWithTextIndex: | (SCTextIndex *) | index |
Initializes the text index using the specified existing text index.
| index | - existing text index |
| - (BOOL) isEqual: | (id) | object |
Returns a boolean value that indicates whether the receiving text index is equal to the specified object.
| object | - class instance with which to compare the receiving class instance |
Reimplemented from SCObject.
Returns a boolean value that indicates whether the receiving text index is equal to the specified line and character indexes.
| line | - line index |
| character | - character index |
| - (BOOL) isEqualToTextIndex: | (SCTextIndex *) | index |
Returns a boolean value that indicates whether the receiving text index is equal to the specified text index.
| index | - text index with which to compare the receiving class instance |
| - (SCULong) line |
Returns the line index.
| - (void) setCharacter: | (SCULong) | character |
Sets the specified character index.
| character | - character index |
| - (void) setLine: | (SCULong) | line |
Sets the specified line index.
| line | - line index |
Sets the specified line and character indexes.
| line | - line index |
| character | - character index |
| - (void) setTextIndex: | (SCTextIndex *) | index |
Sets the line and character indexes by using the specified existing text index.
| index | - source text index |
| + (SCTextIndex *) textIndex |
Returns a text index created by using the default line and character indexes.
| + (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 contents of serialized file with the specified path.
| path | - source serialized file path |
| + (SCTextIndex *) textIndexWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a text index created by using the specified dictionary.
| dictionary | - source dictionary |
| + (SCTextIndex *) textIndexWithDataDictionaryFromFile: | (NSString *) | path |
Returns a text index created by using the dictionary from the specified file.
| path | - source dictionary file path |
| + (SCTextIndex *) textIndexWithFileStream: | (NSString *) | path |
Returns a text index created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextIndex *) textIndexWithLine: | (SCULong) | line | |
| character: | (SCULong) | character | |
Returns a text index created by using the specified line and character indexes.
| line | - line index |
| character | - character index |
| + (SCTextIndex *) textIndexWithStream: | (SCStream *) | stream |
Returns a text index created from the specified stream.
| stream | - stream for reading text index |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextIndex *) textIndexWithTextIndex: | (SCTextIndex *) | index |
Returns a text index created by using the existing text index.
| index | - existing text index |
1.7.3