Samond Classes Library 1.1.6-RELEASE build 132

SCText Class Reference

Text class. More...

#import <SCText.h>

Inheritance diagram for SCText:
SCStrings SCObject <SCDictionaryObjectProtocol> <SCCodingProtocol> <SCStreamProtocol> <SCCollectionProtocol> SCTextFile

List of all members.

Public Member Functions

Initializing Text
(id) - initWithText:
Setting and Copying Texts
(void) - copyFromText:
Comparing Text
(BOOL) - isEqualToText:caseInsensitive:
(BOOL) - isEqualToText:
(BOOL) - isEqualToContentsOfText:caseInsensitive:
(BOOL) - isEqualToContentsOfText:
Converting Text
(SCStrings *) - list
(SCStrings *) - strings
Adding Text
(void) - addText:
(void) - insertText:atIndex:
Removing Text
(void) - removeAllText
(void) - removeTextInRange:
(void) - removeTextFromIndex:
(void) - removeTextToIndex:
(void) - removeTextWithSubstring:caseInsensitive:
(void) - removeTextWithSubstring:
(void) - removeTextWithoutSubstring:caseInsensitive:
(void) - removeTextWithoutSubstring:
(void) - removeSubstring:caseInsensitive:
(void) - removeSubstring:
(SCText *) - cutTextInRange:
(SCText *) - cutTextFromIndex:
(SCText *) - cutTextToIndex:
Replacing Text
(void) - replaceTextInRange:withText:
(void) - replaceTextInRange:withStrings:
(void) - replaceTextInRange:withStringsFromCollection:
(void) - replaceTextInRange:withStringsFromList:
(void) - replaceTextFromIndex:withText:
(void) - replaceTextFromIndex:withStrings:
(void) - replaceTextFromIndex:withStringsFromCollection:
(void) - replaceTextFromIndex:withStringsFromList:
(void) - replaceTextToIndex:withText:
(void) - replaceTextToIndex:withStrings:
(void) - replaceTextToIndex:withStringsFromCollection:
(void) - replaceTextToIndex:withStringsFromList:
Moving and Copying Text
(void) - exchangeTextInRange:withTextInRange:
(void) - duplicateTextInRange:
(void) - duplicateTextFromIndex:
(void) - duplicateTextToIndex:
(void) - duplicateStringsInRange:
(void) - duplicateStringsFromIndex:
(void) - duplicateStringsToIndex:
(void) - copyTextInRange:toIndex:
(void) - copyTextFromIndex:toIndex:
(void) - copyTextToIndex:toIndex:
(void) - moveTextInRange:toIndex:
(void) - moveTextFromIndex:toIndex:
(void) - moveTextToIndex:toIndex:
(void) - forwardMoveTextInRange:steps:
(void) - forwardMoveTextFromIndex:steps:
(void) - forwardMoveTextInRange:
(void) - forwardMoveTextFromIndex:
(void) - backwardMoveTextInRange:steps:
(void) - backwardMoveTextToIndex:steps:
(void) - backwardMoveTextInRange:
(void) - backwardMoveTextToIndex:
(void) - moveToFirstPositionTextInRange:
(void) - moveToFirstPositionTextFromIndex:
(void) - moveToLastPositionTextInRange:
(void) - moveToLastPositionTextToIndex:
Querying Text
(SCText *) - textInRange:
(SCText *) - textFromIndex:
(SCText *) - textToIndex:
Finding and Selecting Strings
(BOOL) - containsText:caseInsensitive:
(BOOL) - containsText:
(SCIndex- indexOfText:caseInsensitive:
(SCIndex- indexOfText:
(SCUInteger- countOfText:caseInsensitive:
(SCUInteger- countOfText:
(SCArray *) - indexesOfText:caseInsensitive:
(SCArray *) - indexesOfText:
(SCText *) - textWithSubstring:caseInsensitive:
(SCText *) - textWithSubstring:
(SCText *) - textWithoutSubstring:caseInsensitive:
(SCText *) - textWithoutSubstring:
(SCTextIndex *) - textIndexOfSubstring:caseInsensitive:
(SCTextIndex *) - textIndexOfSubstring:
(SCArray *) - textIndexesOfSubstring:caseInsensitive:
(SCArray *) - textIndexesOfSubstring:

Static Public Member Functions

Creating Text
(SCText *) + textWithDataDictionary:
(SCText *) + textWithDataDictionaryFromFile:
(SCText *) + textWithCoder:
(SCText *) + textWithContentsOfSerializedFile:
(SCText *) + textWithStream:
(SCText *) + textWithFileStream:
(SCText *) + textWithName:capacity:delegate:
(SCText *) + textWithName:capacity:
(SCText *) + textWithName:delegate:
(SCText *) + textWithName:
(SCText *) + textWithDelegate:
(SCText *) + textWithCapacity:
(SCText *) + text
(SCText *) + textWithString:
(SCText *) + textWithStrings:
(SCText *) + textWithCollection:
(SCText *) + textWithList:
(SCText *) + textWithText:

Detailed Description

Text class.

Class implements the text as a single object.
Class was introduced in version 1.1.4.


Member Function Documentation

- (void) addText: (SCText *)  text

Adds into the receiving text the strings from the specified existing text.

Parameters:
text- existing source text
Exceptions:
SCTextException- text error detected
- (void) backwardMoveTextInRange: (NSRange)  range

Moves the text in the specified range to the one line down.

Parameters:
range- moved text range
Exceptions:
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.

Parameters:
range- moved text range
steps- count of lines for text moving
Exceptions:
SCTextException- text error detected
- (void) backwardMoveTextToIndex: (SCIndex index

Moves the text between the top of text and the specified index to one line down.

Parameters:
index- last moved string index
Exceptions:
SCTextException- text error detected
- (void) backwardMoveTextToIndex: (SCIndex index
steps: (SCULong steps 

Moves the text between the text top and the specified index to the specified number of lines down.

Parameters:
index- last moved string index
steps- count of lines for text moved
Exceptions:
SCTextException- text error detected
- (BOOL) containsText: (SCText *)  text

Returns a Boolean value that indicates whether a given text is present in the receiving text.

Parameters:
text- desired text
Returns:
YES if a given text is present in the text, otherwise NO
See also:
- containsText:caseInsensitive:
- (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.

Parameters:
text- desired text
value- YES for case insensitive comparison operations, otherwise NO
Returns:
YES if a given text is present in the text, otherwise NO
See also:
- containsText:
- (void) copyFromText: (SCText *)  text

Replaces the content and settings of the receiving text by using the specified existing text.

Parameters:
text- existing text
Exceptions:
SCTextException- text error detected
- (void) copyTextFromIndex: (SCIndex index
toIndex: (SCIndex destination 

Copies the strings from the specified index to the specified index.

Parameters:
index- index of the first copied string
destination- destination index
Exceptions:
SCTextException- text error detected
- (void) copyTextInRange: (NSRange)  range
toIndex: (SCIndex destination 

Copies the text in the specified range to the specified index.

Parameters:
range- range of the copied text
destination- destination index
Exceptions:
SCTextException- text error detected
- (void) copyTextToIndex: (SCIndex index
toIndex: (SCIndex destination 

Copies the strings between the first and the specified index to the specified index.

Parameters:
index- index of the last copied string
destination- destination index
Exceptions:
SCTextException- text error detected
- (SCUInteger) countOfText: (SCText *)  text

Returns the count of occurrences of the specified text into the receiving text.

Parameters:
text- desired text
Returns:
Count of occurences
See also:
- countOfText:caseInsensitive:
- (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.

Parameters:
text- desired text
value- YES for case insensitive comparison operations, otherwise NO
Returns:
Count of occurences
See also:
- countOfText:
- (SCText *) cutTextFromIndex: (SCIndex index

Returns a text containing the strings from the receiving text from the specified index and removes this text.

Parameters:
index- index of the first string for copying
Returns:
Text with the required strings
Exceptions:
SCTextException- text error detected
- (SCText *) cutTextInRange: (NSRange)  range

Returns the text in the specified range and removes this text.

Parameters:
range- text range
Returns:
Text with the required strings
Exceptions:
SCTextException- text error detected
- (SCText *) cutTextToIndex: (SCIndex index

Returns a text containing the strings from the receiving text to the specified index and removes this text.

Parameters:
index- index of the last strings for copying
Returns:
Text with the required strings
Exceptions:
SCTextException- text error detected
- (void) duplicateStringsFromIndex: (SCIndex index

Duplicates the strings from the specified index.

Parameters:
index- index of the first duplicated string
Exceptions:
SCTextException- text error detected
- (void) duplicateStringsInRange: (NSRange)  range

Duplicates the strings in the specified range.

Parameters:
range- range of the duplicated strings
Exceptions:
SCTextException- text error detected
- (void) duplicateStringsToIndex: (SCIndex index

Duplicates the strings to the specified index.

Parameters:
index- index of the last duplicated string
Exceptions:
SCTextException- text error detected
- (void) duplicateTextFromIndex: (SCIndex index

Duplicates the text from the specified index.

Parameters:
index- index of the first duplicated string
Exceptions:
SCTextException- text error detected
- (void) duplicateTextInRange: (NSRange)  range

Duplicates the text with the specified text range.

Parameters:
range- duplicated text range
Exceptions:
SCTextException- text error detected
- (void) duplicateTextToIndex: (SCIndex index

Duplicates the text to the specified index.

Parameters:
index- index of the last duplicated string
Exceptions:
SCTextException- text error detected
- (void) exchangeTextInRange: (NSRange)  source
withTextInRange: (NSRange)  destination 

Swaps the specified text ranges.

Parameters:
source- range of the first swaped text
destination- range of the second swaped text
Exceptions:
SCTextException- text error detected
- (void) forwardMoveTextFromIndex: (SCIndex index

Moves the text from the specified index to one line up.

Parameters:
index- first moved string index
Exceptions:
SCTextException- text error detected
- (void) forwardMoveTextFromIndex: (SCIndex index
steps: (SCULong steps 

Moves the text from the specified index to the specified number of lines up.

Parameters:
index- first moved string index
steps- count of line for text moving
Exceptions:
SCTextException- text error detected
- (void) forwardMoveTextInRange: (NSRange)  range

Moves the text in the specified range up one line.

Parameters:
range- moved text range
Exceptions:
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.

Parameters:
range- moved text range
steps- count of lines for text moving
Exceptions:
SCTextException- text error detected.
- (SCArray *) indexesOfText: (SCText *)  text

Returns an array with the indexes of the all occurrences of the specified text into the receiving text.

Parameters:
text- desired text
Returns:
Array with the indexes
See also:
textIndexesOfText:caseInsensitive:
- (SCArray *) indexesOfText: (SCText *)  text
caseInsensitive: (BOOL)  value 

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.

Parameters:
text- desired text
value- YES for case insensitive comparison operations, otherwise NO
Returns:
Array with the indexes
See also:
textIndexesOfText:
- (SCIndex) indexOfText: (SCText *)  text

Returns the index of the first occurrence of the specified text into the receiving text.

Parameters:
text- desired text
Returns:
Index of the first occurrence, otherwise SCNotFound
See also:
- indexOfText:caseInsensitive:
- (SCIndex) indexOfText: (SCText *)  text
caseInsensitive: (BOOL)  value 

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.

Parameters:
text- desired text
value- YES for case insensitive comparison operations, otherwise NO
Returns:
Index of the first occurrence, otherwise SCNotFound
See also:
- indexOfText:
- (id) initWithText: (SCText *)  text

Initializes a text using the specified existing text.

Parameters:
text- existing text
Returns:
A newly initialized text
Exceptions:
SCTextException- text error detected
- (void) insertText: (SCText *)  text
atIndex: (SCIndex index 

Inserts the strings from a given text into the receiving text at a given index.

Parameters:
text- source text
index- index at which to insert strings
Exceptions:
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.

Parameters:
text- text with which to compare the receiving text
Returns:
YES if the contents of other textare equal to the contents of the receiving text, otherwise NO
Exceptions:
SCTextException- text error detected
See also:
- isEqualToContentsOfText:caseInsensitive:
- (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.

Parameters:
text- text with which to compare the receiving text
value- YES for case insensitive comparison operations, otherwise NO
Returns:
YES if the contents of other text are equal to the contents of the receiving text, otherwise NO
Exceptions:
SCTextException- text error detected
See also:
- isEqualToContentsOfText:
- (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.

Parameters:
text- text with which to compare the receiving text
Returns:
YES if the contents and settings of other text are equal to the contents and settings of the receiving text, otherwise NO
Exceptions:
SCTextException- text error detected
See also:
- isEqualToText:caseInsensitive:
- (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.

Parameters:
text- text with which to compare the receiving text
value- YES for case insensitive comparison operations, otherwise NO
Returns:
YES if the contents and settings of other text are equal to the contents and settings of the receiving text, otherwise NO
Exceptions:
SCTextException- text error detected
See also:
- isEqualToText:
- (SCStrings *) list

Returns the strings list with the copy of all receiving text strings.

Returns:
Strings list with required strings

Reimplemented from SCStrings.

- (void) moveTextFromIndex: (SCIndex index
toIndex: (SCIndex destination 

Moves the text between the specified index and the last text string to the specified index.

Parameters:
index- index of the first moved string
destination- destination index
Exceptions:
SCTextException- text error detected
- (void) moveTextInRange: (NSRange)  range
toIndex: (SCIndex destination 

Moves the text in the specified range to the specified index.

Parameters:
range- range of the moved text
destination- destination index
Exceptions:
SCTextException- text error detected
- (void) moveTextToIndex: (SCIndex index
toIndex: (SCIndex destination 

Moves the text between the first string and the specified index to the specified destination index.

Parameters:
index- index of the last moved string
destination- destination index
Exceptions:
SCTextException- text error detected
- (void) moveToFirstPositionTextFromIndex: (SCIndex index

Moves the text after the specified index to the top of the text.

Parameters:
index- first moved string index
Exceptions:
SCTextException- text error detected
- (void) moveToFirstPositionTextInRange: (NSRange)  range

Moves the text in the specified range to the top of the text.

Parameters:
range- source text range
Exceptions:
SCTextException- text error detected
- (void) moveToLastPositionTextInRange: (NSRange)  range

Moves the text in the specified range to the bottom of the text.

Parameters:
range- source text range
Exceptions:
SCTextException- text error detected
- (void) moveToLastPositionTextToIndex: (SCIndex index

Moves the text before the specified index to the bottom of the text.

Parameters:
index- last moved string index
Exceptions:
SCTextException- text error detected
- (void) removeAllText

Removes all strings from the receving text.

Exceptions:
SCTextException- text error detected
- (void) removeSubstring: (NSString *)  substring

Removes all occurences in the text of the specified substring.

Parameters:
substring- removing substring
Exceptions:
SCTextException- text error detected
See also:
- removeSubstring:caseInsensitive:
- (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.

Parameters:
substring- removing substring
value- YES for the case insensitive comparison operations, otherwise NO
Exceptions:
SCTextException- text error detected
See also:
- removeSubstring:
- (void) removeTextFromIndex: (SCIndex index

Removes from the receiving text strings from the specified index.

Parameters:
index- first index of removed string
Exceptions:
SCTextCollection- text error detected
- (void) removeTextInRange: (NSRange)  range

Removes strings in the specified range from the receiving text.

Parameters:
range- range of the deleted strings
Exceptions:
SCTextException- text error detected
- (void) removeTextToIndex: (SCIndex index

Removes from the receiving text strings to the specified index.

Parameters:
index- last index of removed strings
Exceptions:
SCTextException- text error detected
- (void) removeTextWithoutSubstring: (NSString *)  substring

Removes all occurrences in the text of the strings which not contain the specified substring.

Parameters:
substring- keeping substring
Exceptions:
SCTextException- text error detected
See also:
- removeStringsWithoutSubstring:caseInsensitive: (SCStrings)
- (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.

Parameters:
substring- keeping substring
value- YES for the case insensitive comparison operations, otherwise NO
Exceptions:
SCTextException- text error detected
See also:
- removeTextWithoutSubstring:
- (void) removeTextWithSubstring: (NSString *)  substring

Removes all occurrences in the text of the strings which contain the specified substring.

Parameters:
substring- removing substring
Exceptions:
SCTextException- text error detected
See also:
- removeTextWithSubstring:caseInsensitive:
- (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.

Parameters:
substring- removing substring
value- YES for the case insensitive comparison operations, otherwise NO
Exceptions:
SCTextException- text error detected
See also:
- removeTextWithSubstring:
- (void) replaceTextFromIndex: (SCIndex index
withStrings: (NSString *)  string
,   ... 

Replaces the text from the specified index with the specified nil terminated strings list.

Parameters:
index- index of the first replaced string
string- first replacement string
...- other replacement strings
Exceptions:
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.

Parameters:
index- index of the first replaced string
collection- collection with replacement strings
Exceptions:
SCTextException- text error detected
- (void) replaceTextFromIndex: (SCIndex index
withStringsFromList: (SCStrings *)  list 

Replaces the text from the specified index with the content of the specified strings list.

Parameters:
index- index of the first replaced string
list- list with the replacement strings
Exceptions:
SCTextException- text error detected
- (void) replaceTextFromIndex: (SCIndex index
withText: (SCText *)  text 

Replaces the text from the specified index with the specified replacement text.

Parameters:
index- index of the first replaced string
text- replacement text
Exceptions:
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.

Parameters:
range- range of the replaced text
string- first replacement string
...- other replacement strings
Exceptions:
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.

Parameters:
range- range of the replaced text
collection- collection with the replacement strings
Exceptions:
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.

Parameters:
range- range of the replaced text
list- strings list with the replacement strings
Exceptions:
SCTextException- text error detected
- (void) replaceTextInRange: (NSRange)  range
withText: (SCText *)  text 

Replaces the text in the specified range with the specified new text.

Parameters:
range- range of the replaced text
text- replacement text
Exceptions:
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.

Parameters:
index- index of the last replaced string
string- first replacement string
...- other replacement strings
Exceptions:
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.

Parameters:
index- index of the last replaced string
collection- collection with the replacement strings
Exceptions:
SCTextException- text error detected
- (void) replaceTextToIndex: (SCIndex index
withStringsFromList: (SCStrings *)  list 

Replaces the text to the specified index with the content of the specified strings list.

Parameters:
index- index of the last replaced string
list- replacement strings list
Exceptions:
SCTextException- text error detected
- (void) replaceTextToIndex: (SCIndex index
withText: (SCText *)  text 

Replaces the text to the specified index with the specified text.

Parameters:
index- index of the last replaced string
text- replacement text
Exceptions:
SCTextException- text error detected
- (SCStrings *) strings

Returns the strings list with the copy of all receiving text strings.

Returns:
Strings list with required strings
+ (SCText *) text

Returns a text created by using the default settings.

Returns:
A created text

Reimplemented in SCTextFile.

- (SCText *) textFromIndex: (SCIndex index

Returns a text containing the strings from the receiving text from the specified index.

Parameters:
index- index of the first string for copying
Returns:
Text with the required strings
Exceptions:
SCTextException- text error detected
- (SCArray *) textIndexesOfSubstring: (NSString *)  substring

Returns an array with text indexes of the all occurrences of the specified substring.

Parameters:
substring- desired substring
Returns:
Text indexes array
See also:
- textIndexesOfSubstring:caseInsensitive:
- (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.

Parameters:
substring- desired substring
value- YES for case insensitive comparison operations, otherwise NO
Returns:
Text indexes array
See also:
- textIndexesOfSubstring:
- (SCTextIndex *) textIndexOfSubstring: (NSString *)  substring

Returns a text index of the first occurrence of the specified substring.

Parameters:
substring- desired substring
Returns:
Text index or the nil if the specified substring not found
See also:
- textIndexOfSubstring:caseInsensitive:
- (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.

Parameters:
substring- desired substring
value- YES for case insensitive comparison operations, otherwise NO
Returns:
Text index or the nil if the specified substring not found
See also:
- textIndexOfSubstring:
- (SCText *) textInRange: (NSRange)  range

Returns a text containing the strings from the receiving text in the specified range.

Parameters:
range- text range
Returns:
Text with the required strings
Exceptions:
SCTextCollection- text error detected
- (SCText *) textToIndex: (SCIndex index

Returns a text containing the strings from the receiving text to the specified index.

Parameters:
index- index of the last strings for copying
Returns:
Text with the required strings
Exceptions:
SCTextException- text error detected
+ (SCText *) textWithCapacity: (SCULong capacity

Returns a text created by using the specified text capacity.

Parameters:
capacity- text capacity
Returns:
A created text
+ (SCText *) textWithCoder: (NSCoder *)  coder

Returns a text created by using the specified coder.

Parameters:
coder- source coder
Returns:
A created text
+ (SCText *) textWithCollection: (id)  collection

Returns a text created by using the specified existing collection.

Parameters:
collection- existing collection
Returns:
A created text
Exceptions:
SCTextException- text error detected
+ (SCText *) textWithContentsOfSerializedFile: (NSString *)  path

Returns a text created by using the contents of serialized file with the specified path.

Parameters:
path- source serialized file path
Returns:
A created text
+ (SCText *) textWithDataDictionary: (NSDictionary *)  dictionary

Returns a text created by using the specified dictionary.

Parameters:
dictionary- source dictionary
Returns:
A created text
+ (SCText *) textWithDataDictionaryFromFile: (NSString *)  path

Returns a text created by using the dictionary from the specified file.

Parameters:
path- source dictionary file path
Returns:
A created text
+ (SCText *) textWithDelegate: (id<SCTextDelegate>)  delegate

Returns a text created by using the specified delegate object.

Parameters:
delegate- delegate object
Returns:
A created text
+ (SCText *) textWithFileStream: (NSString *)  path

Returns a text created from the stream file with the specified path.

Parameters:
path- stream file path
Returns:
A created text
Exceptions:
SCStreamException- stream operation error detected
SCSystemException- system error detected
+ (SCText *) textWithList: (SCStrings *)  list

Returns a text created by using the specified existing strings list.

Parameters:
list- existing strings list
Returns:
A created text
Exceptions:
SCTextException- text error detected
+ (SCText *) textWithName: (NSString *)  name

Returns a text created by using the specified text name.

Parameters:
name- text name
Returns:
A created text
+ (SCText *) textWithName: (NSString *)  name
capacity: (SCULong capacity 

Returns a text created by using the specified text name and capacity.

Parameters:
name- text name
capacity- text capacity
Returns:
A created text
+ (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.

Parameters:
name- text name
capacity- text capacity
delegate- delegate object
Returns:
A created text
+ (SCText *) textWithName: (NSString *)  name
delegate: (id<SCTextDelegate>)  delegate 

Returns a text created by using the specified text name and delegate object.

Parameters:
name- text name
delegate- delegate object
Returns:
A created text
- (SCText *) textWithoutSubstring: (NSString *)  substring

Returns a text with the strings from the receiving text which not contains the specified substring.

Parameters:
substring- required substring
Returns:
Text without the selected strings
See also:
- textWithoutSubstring:caseInsensitive:
- (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.

Parameters:
substring- required substring
value- YES for case insensitive comparison operations, otherwise NO
Returns:
Text without the selected strings
See also:
- textWithoutSubstring:
+ (SCText *) textWithStream: (SCStream *)  stream

Returns a text created from the specified stream.

Parameters:
stream- stream for reading text
Returns:
A created text
Exceptions:
SCStreamException- stream operation error detected
SCSystemException- system error detected
+ (SCText *) textWithString: (NSString *)  string

Returns a text created by using the specified existing string.

Parameters:
string- existing string
Returns:
A created text
Exceptions:
SCTextException- text error detected
+ (SCText *) textWithStrings: (NSString *)  string
,   ... 

Returns the text created by using the specified nil terminated list of existing strings.

Parameters:
string- first string
...- other strings
Returns:
A created text
Exceptions:
SCTextException- text error detected
- (SCText *) textWithSubstring: (NSString *)  substring

Returns a text with the strings from the receiving text which contains the specified substring.

Parameters:
substring- required substring
Returns:
Text with the selected strings
See also:
- textWithSubstring:caseInsensitive:
- (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.

Parameters:
substring- required substring
value- YES for case insensitive comparison operations, otherwise NO
Returns:
Text with the selected strings
See also:
- textWithSubstring:
+ (SCText *) textWithText: (SCText *)  text

Returns a text created by using the specified existing text.

Parameters:
text- existing text
Returns:
A created text
Exceptions:
SCTextException- text error detected

The documentation for this class was generated from the following files:
 All Classes Files Functions Typedefs Enumerations Enumerator Defines