|
FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
|
NSString creation method extension. More...
#import <NSString.h>
Instance Methods | |
Initilizing a String | |
| (instancetype) | - initWithInteger: |
| Initialize an NSString from integer value. More... | |
| (instancetype) | - initWithConcatnatingStrings: |
| Initialize an NSString object with concatnating given arguments. More... | |
Class Methods | |
Creating a String | |
| (instancetype) | + stringWithInteger: |
| Creates and returns an NSString from integer value. More... | |
| (instancetype) | + stringWithFormat:arguments: |
| Creates and returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to the user’s default locale. More... | |
| (nullable instancetype) | + stringWithData:encoding: |
| Creates and returns an NSString object initialized by converting given data into Unicode characters using a given encoding. More... | |
| (instancetype) | + stringWithConcatnatingStrings: |
| Creates and returns an NSString object with concatnating given arguments. More... | |
NSString creation method extension.
| - (instancetype) initWithConcatnatingStrings: | (NSString *) | first | |
| , | NS_REQUIRES_NIL_TERMINATION | ||
Initialize an NSString object with concatnating given arguments.
Appends all arguments to first string one by one by order.
| - (instancetype) initWithInteger: | (NSInteger) | value |
Initialize an NSString from integer value.
Implemented with NSString initWithFormat:
| + (instancetype) stringWithConcatnatingStrings: | (NSString *) | first | |
| , | NS_REQUIRES_NIL_TERMINATION | ||
Creates and returns an NSString object with concatnating given arguments.
| + (nullable instancetype) stringWithData: | (NSData *) | data | |
| encoding: | (NSStringEncoding) | encoding | |
Creates and returns an NSString object initialized by converting given data into Unicode characters using a given encoding.
| + (instancetype) stringWithFormat: | (NSString *) | format | |
| arguments: | (1) | ||
| (0) | NS_FORMAT_FUNCTION | ||
Creates and returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to the user’s default locale.
| + (instancetype) stringWithInteger: | (NSInteger) | value |
Creates and returns an NSString from integer value.