|
Samond Classes Library 1.1.6-RELEASE build 132
|
Text class. More...
#import <SCText.h>
Text class.
Class implements the text as a single object.
Class was introduced in version 1.1.4.
| - (void) addText: | (SCText *) | text |
Adds into the receiving text the strings from the specified existing text.
| text | - existing source text |
| SCTextException | - text error detected |
| - (void) backwardMoveTextInRange: | (NSRange) | range |
Moves the text in the specified range to the one line down.
| range | - moved text range |
| SCTextException | - text error detected |
| - (void) backwardMoveTextInRange: | (NSRange) | range | |
| steps: | (SCULong) | steps | |
Moves the text in the specified range to the specified number of lines down.
| range | - moved text range |
| steps | - count of lines for text moving |
| SCTextException | - text error detected |
| - (void) backwardMoveTextToIndex: | (SCIndex) | index |
Moves the text between the top of text and the specified index to one line down.
| index | - last moved string index |
| SCTextException | - text error detected |
Moves the text between the text top and the specified index to the specified number of lines down.
| index | - last moved string index |
| steps | - count of lines for text moved |
| SCTextException | - text error detected |
| - (BOOL) containsText: | (SCText *) | text |
Returns a Boolean value that indicates whether a given text is present in the receiving text.
| text | - desired text |
| - (BOOL) containsText: | (SCText *) | text | |
| caseInsensitive: | (BOOL) | value | |
Returns a Boolean value that indicates whether a given text is present in the receiving text. Case insensitively depends on the value of the specified flag.
| text | - desired text |
| value | - YES for case insensitive comparison operations, otherwise NO |
| - (void) copyFromText: | (SCText *) | text |
Replaces the content and settings of the receiving text by using the specified existing text.
| text | - existing text |
| SCTextException | - text error detected |
Copies the strings from the specified index to the specified index.
| index | - index of the first copied string |
| destination | - destination index |
| SCTextException | - text error detected |
| - (void) copyTextInRange: | (NSRange) | range | |
| toIndex: | (SCIndex) | destination | |
Copies the text in the specified range to the specified index.
| range | - range of the copied text |
| destination | - destination index |
| SCTextException | - text error detected |
Copies the strings between the first and the specified index to the specified index.
| index | - index of the last copied string |
| destination | - destination index |
| SCTextException | - text error detected |
| - (SCUInteger) countOfText: | (SCText *) | text |
Returns the count of occurrences of the specified text into the receiving text.
| text | - desired text |
| - (SCUInteger) countOfText: | (SCText *) | text | |
| caseInsensitive: | (BOOL) | value | |
Returns the count of occurrences of the specified text into the receiving text. Case insensitively depens on the value of the specified flag.
| text | - desired text |
| value | - YES for case insensitive comparison operations, otherwise NO |
Returns a text containing the strings from the receiving text from the specified index and removes this text.
| index | - index of the first string for copying |
| SCTextException | - text error detected |
| - (SCText *) cutTextInRange: | (NSRange) | range |
Returns the text in the specified range and removes this text.
| range | - text range |
| SCTextException | - text error detected |
Returns a text containing the strings from the receiving text to the specified index and removes this text.
| index | - index of the last strings for copying |
| SCTextException | - text error detected |
| - (void) duplicateStringsFromIndex: | (SCIndex) | index |
Duplicates the strings from the specified index.
| index | - index of the first duplicated string |
| SCTextException | - text error detected |
| - (void) duplicateStringsInRange: | (NSRange) | range |
Duplicates the strings in the specified range.
| range | - range of the duplicated strings |
| SCTextException | - text error detected |
| - (void) duplicateStringsToIndex: | (SCIndex) | index |
Duplicates the strings to the specified index.
| index | - index of the last duplicated string |
| SCTextException | - text error detected |
| - (void) duplicateTextFromIndex: | (SCIndex) | index |
Duplicates the text from the specified index.
| index | - index of the first duplicated string |
| SCTextException | - text error detected |
| - (void) duplicateTextInRange: | (NSRange) | range |
Duplicates the text with the specified text range.
| range | - duplicated text range |
| SCTextException | - text error detected |
| - (void) duplicateTextToIndex: | (SCIndex) | index |
Duplicates the text to the specified index.
| index | - index of the last duplicated string |
| SCTextException | - text error detected |
| - (void) exchangeTextInRange: | (NSRange) | source | |
| withTextInRange: | (NSRange) | destination | |
Swaps the specified text ranges.
| source | - range of the first swaped text |
| destination | - range of the second swaped text |
| SCTextException | - text error detected |
| - (void) forwardMoveTextFromIndex: | (SCIndex) | index |
Moves the text from the specified index to one line up.
| index | - first moved string index |
| SCTextException | - text error detected |
Moves the text from the specified index to the specified number of lines up.
| index | - first moved string index |
| steps | - count of line for text moving |
| SCTextException | - text error detected |
| - (void) forwardMoveTextInRange: | (NSRange) | range |
Moves the text in the specified range up one line.
| range | - moved text range |
| SCTextException | - text error detected |
| - (void) forwardMoveTextInRange: | (NSRange) | range | |
| steps: | (SCULong) | steps | |
Moves the text in the specified range on the specified number of lines up.
| range | - moved text range |
| steps | - count of lines for text moving |
| SCTextException | - text error detected. |
Returns an array with the indexes of the all occurrences of the specified text into the receiving text.
| text | - desired text |
Returns an array with the indexes of the all occurrences of the specified text into the receiving text. Case insensitively depends on the value of the specified flag.
| text | - desired text |
| value | - YES for case insensitive comparison operations, otherwise NO |
Returns the index of the first occurrence of the specified text into the receiving text.
| text | - desired text |
Returns the index of the first occurrence of the specified text into the receiving text. Case insensitively depends on the value of the specified flag.
| text | - desired text |
| value | - YES for case insensitive comparison operations, otherwise NO |
| - (id) initWithText: | (SCText *) | text |
Initializes a text using the specified existing text.
| text | - existing text |
| SCTextException | - text error detected |
Inserts the strings from a given text into the receiving text at a given index.
| text | - source text |
| index | - index at which to insert strings |
| SCTextException | - text error detected |
| - (BOOL) isEqualToContentsOfText: | (SCText *) | text |
Returns a boolean value that indicates whether the contents of the receiving text are equal to the contents of another given text.
| text | - text with which to compare the receiving text |
| SCTextException | - text error detected |
| - (BOOL) isEqualToContentsOfText: | (SCText *) | text | |
| caseInsensitive: | (BOOL) | value | |
Returns a boolean value that indicates whether the contents of the receiving text are equal to the contents of another given text. Case insensitively depends on the value of the specified flag.
| text | - text with which to compare the receiving text |
| value | - YES for case insensitive comparison operations, otherwise NO |
| SCTextException | - text error detected |
| - (BOOL) isEqualToText: | (SCText *) | text |
Returns a boolean value that indicates whether the contents and settings of the receiving text are equal to the contents and settings of another given text.
| text | - text with which to compare the receiving text |
| SCTextException | - text error detected |
| - (BOOL) isEqualToText: | (SCText *) | text | |
| caseInsensitive: | (BOOL) | value | |
Returns a boolean value that indicates whether the contents and settings of the receiving text are equal to the contents and settings of another given text. Case insensitively depends on the value of the specified flag.
| text | - text with which to compare the receiving text |
| value | - YES for case insensitive comparison operations, otherwise NO |
| SCTextException | - text error detected |
| - (SCStrings *) list |
Returns the strings list with the copy of all receiving text strings.
Reimplemented from SCStrings.
Moves the text between the specified index and the last text string to the specified index.
| index | - index of the first moved string |
| destination | - destination index |
| SCTextException | - text error detected |
| - (void) moveTextInRange: | (NSRange) | range | |
| toIndex: | (SCIndex) | destination | |
Moves the text in the specified range to the specified index.
| range | - range of the moved text |
| destination | - destination index |
| SCTextException | - text error detected |
Moves the text between the first string and the specified index to the specified destination index.
| index | - index of the last moved string |
| destination | - destination index |
| SCTextException | - text error detected |
| - (void) moveToFirstPositionTextFromIndex: | (SCIndex) | index |
Moves the text after the specified index to the top of the text.
| index | - first moved string index |
| SCTextException | - text error detected |
| - (void) moveToFirstPositionTextInRange: | (NSRange) | range |
Moves the text in the specified range to the top of the text.
| range | - source text range |
| SCTextException | - text error detected |
| - (void) moveToLastPositionTextInRange: | (NSRange) | range |
Moves the text in the specified range to the bottom of the text.
| range | - source text range |
| SCTextException | - text error detected |
| - (void) moveToLastPositionTextToIndex: | (SCIndex) | index |
Moves the text before the specified index to the bottom of the text.
| index | - last moved string index |
| SCTextException | - text error detected |
| - (void) removeAllText |
Removes all strings from the receving text.
| SCTextException | - text error detected |
| - (void) removeSubstring: | (NSString *) | substring |
Removes all occurences in the text of the specified substring.
| substring | - removing substring |
| SCTextException | - text error detected |
| - (void) removeSubstring: | (NSString *) | substring | |
| caseInsensitive: | (BOOL) | value | |
Removes all occurences in the text of the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - removing substring |
| value | - YES for the case insensitive comparison operations, otherwise NO |
| SCTextException | - text error detected |
| - (void) removeTextFromIndex: | (SCIndex) | index |
Removes from the receiving text strings from the specified index.
| index | - first index of removed string |
| SCTextCollection | - text error detected |
| - (void) removeTextInRange: | (NSRange) | range |
Removes strings in the specified range from the receiving text.
| range | - range of the deleted strings |
| SCTextException | - text error detected |
| - (void) removeTextToIndex: | (SCIndex) | index |
Removes from the receiving text strings to the specified index.
| index | - last index of removed strings |
| SCTextException | - text error detected |
| - (void) removeTextWithoutSubstring: | (NSString *) | substring |
Removes all occurrences in the text of the strings which not contain the specified substring.
| substring | - keeping substring |
| SCTextException | - text error detected |
| - (void) removeTextWithoutSubstring: | (NSString *) | substring | |
| caseInsensitive: | (BOOL) | value | |
Removes all occurrences in the text of the strings which not contain the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - keeping substring |
| value | - YES for the case insensitive comparison operations, otherwise NO |
| SCTextException | - text error detected |
| - (void) removeTextWithSubstring: | (NSString *) | substring |
Removes all occurrences in the text of the strings which contain the specified substring.
| substring | - removing substring |
| SCTextException | - text error detected |
| - (void) removeTextWithSubstring: | (NSString *) | substring | |
| caseInsensitive: | (BOOL) | value | |
Removes all occurrences in the text of the strings which contain the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - removing substring |
| value | - YES for the case insensitive comparison operations, otherwise NO |
| SCTextException | - text error detected |
| - (void) replaceTextFromIndex: | (SCIndex) | index | |
| withStrings: | (NSString *) | string | |
| , | ... | ||
Replaces the text from the specified index with the specified nil terminated strings list.
| index | - index of the first replaced string |
| string | - first replacement string |
| ... | - other replacement strings |
| SCTextException | - text error detected |
| - (void) replaceTextFromIndex: | (SCIndex) | index | |
| withStringsFromCollection: | (id) | collection | |
Replaces the text from the specified index with the strings from the specified collection.
| index | - index of the first replaced string |
| collection | - collection with replacement strings |
| SCTextException | - text error detected |
Replaces the text from the specified index with the content of the specified strings list.
| index | - index of the first replaced string |
| list | - list with the replacement strings |
| SCTextException | - text error detected |
Replaces the text from the specified index with the specified replacement text.
| index | - index of the first replaced string |
| text | - replacement text |
| SCTextException | - text error detected |
| - (void) replaceTextInRange: | (NSRange) | range | |
| withStrings: | (NSString *) | string | |
| , | ... | ||
Replaces the text in the specified range with the specified nil terminated strings list.
| range | - range of the replaced text |
| string | - first replacement string |
| ... | - other replacement strings |
| SCTextException | - text error detected |
| - (void) replaceTextInRange: | (NSRange) | range | |
| withStringsFromCollection: | (id) | collection | |
Replaces the text in the specified range with the strings from the specified collection.
| range | - range of the replaced text |
| collection | - collection with the replacement strings |
| SCTextException | - text error detected |
| - (void) replaceTextInRange: | (NSRange) | range | |
| withStringsFromList: | (SCStrings *) | list | |
Replaces the text in the specified range with the content of the specified strings list.
| range | - range of the replaced text |
| list | - strings list with the replacement strings |
| SCTextException | - text error detected |
| - (void) replaceTextInRange: | (NSRange) | range | |
| withText: | (SCText *) | text | |
Replaces the text in the specified range with the specified new text.
| range | - range of the replaced text |
| text | - replacement text |
| SCTextException | - text error detected |
| - (void) replaceTextToIndex: | (SCIndex) | index | |
| withStrings: | (NSString *) | string | |
| , | ... | ||
Replaces the text to the specified index with the strings from the specified nil terminated list.
| index | - index of the last replaced string |
| string | - first replacement string |
| ... | - other replacement strings |
| SCTextException | - text error detected |
| - (void) replaceTextToIndex: | (SCIndex) | index | |
| withStringsFromCollection: | (id) | collection | |
Replaces the text to the specified index with the strings from the specified collection.
| index | - index of the last replaced string |
| collection | - collection with the replacement strings |
| SCTextException | - text error detected |
Replaces the text to the specified index with the content of the specified strings list.
| index | - index of the last replaced string |
| list | - replacement strings list |
| SCTextException | - text error detected |
Replaces the text to the specified index with the specified text.
| index | - index of the last replaced string |
| text | - replacement text |
| SCTextException | - text error detected |
| - (SCStrings *) strings |
Returns the strings list with the copy of all receiving text strings.
| + (SCText *) text |
Returns a text created by using the default settings.
Reimplemented in SCTextFile.
Returns a text containing the strings from the receiving text from the specified index.
| index | - index of the first string for copying |
| SCTextException | - text error detected |
| - (SCArray *) textIndexesOfSubstring: | (NSString *) | substring |
Returns an array with text indexes of the all occurrences of the specified substring.
| substring | - desired substring |
| - (SCArray *) textIndexesOfSubstring: | (NSString *) | substring | |
| caseInsensitive: | (BOOL) | value | |
Returns an array with text indexes of the all occurrences of the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - desired substring |
| value | - YES for case insensitive comparison operations, otherwise NO |
| - (SCTextIndex *) textIndexOfSubstring: | (NSString *) | substring |
Returns a text index of the first occurrence of the specified substring.
| substring | - desired substring |
| - (SCTextIndex *) textIndexOfSubstring: | (NSString *) | substring | |
| caseInsensitive: | (BOOL) | value | |
Returns a text index of the first occurrence of the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - desired substring |
| value | - YES for case insensitive comparison operations, otherwise NO |
| - (SCText *) textInRange: | (NSRange) | range |
Returns a text containing the strings from the receiving text in the specified range.
| range | - text range |
| SCTextCollection | - text error detected |
Returns a text containing the strings from the receiving text to the specified index.
| index | - index of the last strings for copying |
| SCTextException | - text error detected |
Returns a text created by using the specified text capacity.
| capacity | - text capacity |
| + (SCText *) textWithCoder: | (NSCoder *) | coder |
Returns a text created by using the specified coder.
| coder | - source coder |
| + (SCText *) textWithCollection: | (id) | collection |
Returns a text created by using the specified existing collection.
| collection | - existing collection |
| SCTextException | - text error detected |
| + (SCText *) textWithContentsOfSerializedFile: | (NSString *) | path |
Returns a text created by using the contents of serialized file with the specified path.
| path | - source serialized file path |
| + (SCText *) textWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a text created by using the specified dictionary.
| dictionary | - source dictionary |
| + (SCText *) textWithDataDictionaryFromFile: | (NSString *) | path |
Returns a text created by using the dictionary from the specified file.
| path | - source dictionary file path |
| + (SCText *) textWithDelegate: | (id<SCTextDelegate>) | delegate |
Returns a text created by using the specified delegate object.
| delegate | - delegate object |
| + (SCText *) textWithFileStream: | (NSString *) | path |
Returns a text created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Returns a text created by using the specified existing strings list.
| list | - existing strings list |
| SCTextException | - text error detected |
| + (SCText *) textWithName: | (NSString *) | name |
Returns a text created by using the specified text name.
| name | - text name |
Returns a text created by using the specified text name and capacity.
| name | - text name |
| capacity | - text capacity |
| + (SCText *) textWithName: | (NSString *) | name | |
| capacity: | (SCULong) | capacity | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Returns a text created by using the specified text name, capacity and delegate object.
| name | - text name |
| capacity | - text capacity |
| delegate | - delegate object |
| + (SCText *) textWithName: | (NSString *) | name | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Returns a text created by using the specified text name and delegate object.
| name | - text name |
| delegate | - delegate object |
| - (SCText *) textWithoutSubstring: | (NSString *) | substring |
Returns a text with the strings from the receiving text which not contains the specified substring.
| substring | - required substring |
| - (SCText *) textWithoutSubstring: | (NSString *) | substring | |
| caseInsensitive: | (BOOL) | value | |
Returns a text with the strings from the receiving text which not contains the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - required substring |
| value | - YES for case insensitive comparison operations, otherwise NO |
Returns a text created from the specified stream.
| stream | - stream for reading text |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCText *) textWithString: | (NSString *) | string |
Returns a text created by using the specified existing string.
| string | - existing string |
| SCTextException | - text error detected |
| + (SCText *) textWithStrings: | (NSString *) | string | |
| , | ... | ||
Returns the text created by using the specified nil terminated list of existing strings.
| string | - first string |
| ... | - other strings |
| SCTextException | - text error detected |
| - (SCText *) textWithSubstring: | (NSString *) | substring |
Returns a text with the strings from the receiving text which contains the specified substring.
| substring | - required substring |
| - (SCText *) textWithSubstring: | (NSString *) | substring | |
| caseInsensitive: | (BOOL) | value | |
Returns a text with the strings from the receiving text which contains the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - required substring |
| value | - YES for case insensitive comparison operations, otherwise NO |
Returns a text created by using the specified existing text.
| text | - existing text |
| SCTextException | - text error detected |
1.7.3