NSString(MBIndentation) Category Reference
Declared in | NSString+MBIndentation.h |
---|
Overview
An NSString
class extension that provides methods for indenting
individual lines within a string.
Indenting lines within a string
– stringByIndentingEachLineWithTab
Creates a new string by prefixing each line in the receiver with the tab
(0x09
) character.
- (nonnull NSString *)stringByIndentingEachLineWithTab
Return Value
The indented string.
Declared In
NSString+MBIndentation.h
– stringByIndentingEachLineWithTabs:
Creates a new string by prefixing each line in the receiver with the
specified number of tab (0x09
) characters.
- (nonnull NSString *)stringByIndentingEachLineWithTabs:(NSUInteger)numberOfTabs
Parameters
numberOfTabs |
The number of tab characters to use for intenting lines. |
---|
Return Value
The indented string.
Declared In
NSString+MBIndentation.h
– stringByIndentingEachLineWithPrefix:
Creates a new string by prefixing each line in the receiver with the given string.
- (nonnull NSString *)stringByIndentingEachLineWithPrefix:(nonnull NSString *)prefix
Parameters
prefix |
The prefix to use for indenting lines. |
---|
Return Value
The indented string.
Declared In
NSString+MBIndentation.h