| Declared in | NSString+GBString.h<br />NSString+GBString.m |
Provides string extensions that make the rest of parsing code simpler.
- stringByTrimmingCharactersInSetFromEnd:
Trims all characters from the given set from the string end.
- stringByWordifyingWithSpaces
Splits the string to words and returns all words separed by single space.
- stringByTrimmingWhitespace
Trims all whitespace from the start and end of the string and returns trimmed value.
- stringByTrimmingWhitespaceAndNewLine
Trims all whitespace and new lines from the start and end of the string and returns trimmed value.
- normalizedDescription
Returns normalized description from the receiver.
- normalizedDescriptionWithMaxLength:
Returns normalized description from the receiver.
+ defaultNormalizedDescriptionLength
Returns default maximum length of normalized string.
- numberOfLines
Returns the number of all lines in the receiver.
- numberOfLinesInRange:
Calculates the numer of lines in the given range of the receiver.
- stringByTrimmingCharactersInSetFromEnd:
Trims all characters from the given set from the string end.
- stringByWordifyingWithSpaces
Splits the string to words and returns all words separed by single space.
- stringByTrimmingWhitespace
Trims all whitespace from the start and end of the string and returns trimmed value.
- stringByTrimmingWhitespaceAndNewLine
Trims all whitespace and new lines from the start and end of the string and returns trimmed value.
- normalizedDescription
Returns normalized description from the receiver.
- normalizedDescriptionWithMaxLength:
Returns normalized description from the receiver.
+ defaultNormalizedDescriptionLength
Returns default maximum length of normalized string.
- numberOfLines
Returns the number of all lines in the receiver.
- numberOfLinesInRange:
Calculates the numer of lines in the given range of the receiver.
Returns normalized description from the receiver.
- (NSString *)normalizedDescriptionReturns stripped description.
Returns normalized description from the receiver.
The main purpose of this method is to strip and wordifiy long descriptions by making them suitable for logging and debug messages.
NSString+GBString.hNSString+GBString.mReturns normalized description from the receiver.
- (NSString *)normalizedDescriptionWithMaxLength:(NSUInteger)lengthReturns stripped description.
Returns normalized description from the receiver.
The main purpose of this method is to strip and wordifiy long descriptions by making them suitable for logging and debug messages.
NSString+GBString.hNSString+GBString.mReturns the number of all lines in the receiver.
- (NSUInteger)numberOfLinesReturns the number of all lines in the receiver.
Returns the number of all lines in the receiver.
NSString+GBString.hNSString+GBString.mCalculates the numer of lines in the given range of the receiver.
- (NSUInteger)numberOfLinesInRange:(NSRange)rangeReturns the number of lines in the given range.
Calculates the numer of lines in the given range of the receiver.
NSString+GBString.hNSString+GBString.mTrims all characters from the given set from the string end.
- (NSString *)stringByTrimmingCharactersInSetFromEnd:(NSCharacterSet *)setReturns trimmed string.
Trims all characters from the given set from the string end.
Works the same way as [NSString stringByTrimmingCharactersInSetFromEnd:] except it trims from end only.
nil . NSString+GBString.hNSString+GBString.mTrims all whitespace from the start and end of the string and returns trimmed value.
- (NSString *)stringByTrimmingWhitespaceReturns trimmed string.
Trims all whitespace from the start and end of the string and returns trimmed value.
NSString+GBString.hNSString+GBString.mTrims all whitespace and new lines from the start and end of the string and returns trimmed value.
- (NSString *)stringByTrimmingWhitespaceAndNewLineReturns trimmed string.
Trims all whitespace and new lines from the start and end of the string and returns trimmed value.
NSString+GBString.hNSString+GBString.mSplits the string to words and returns all words separed by single space.
- (NSString *)stringByWordifyingWithSpacesReturns wordified string.
Splits the string to words and returns all words separed by single space.
NSString+GBString.hNSString+GBString.m