Last active
December 27, 2015 18:19
-
-
Save JeOam/7368507 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Method Description | |
+(id) stringWithContentsofFile:path encoding:enc error:err Creates a new string and sets it to the path contents | |
of a file specified by the path using character encoding env, | |
returning error in err if non-nil | |
+(id) stringWithContentsofURL:url encoding:enc error:err Creates a new string and sets it to the contents of url | |
using character encoding enc, | |
returning error in err if non-nil | |
+(id) string Creates a new empty string | |
+(id) stringWithString:nsstring Creates a new string, setting it to nsstring | |
+(NSString *) stringWithFormat:format, arg1, arg2, arg3... Creats a new string according to the specified format | |
and arguments arg1, arg2, arg3 ... | |
-(id) initWithString:nsstring Sets a newly allocated string to nsstring | |
-(id) initWithContentsofFile:path encoding:enc error:err Sets a string to the contents of a file specified by path | |
-(id) initWithContentsofURL:url encoding:enc error:err Sets a string to the contents of url(NSURL *) | |
url using character encoding enc, return error in err if non-nil | |
-(NSUInteger) length Returns the number of characters in the string | |
-(unichar) characterAtIndex:i Returns the Unicode character at index i | |
-(NSString) substringFromIndex:i Returns a substring from the character at i to the end | |
-(NSString) substringWithRange:range Returns a substring based on a specified range | |
-(NSString) substringToIndex:i Returns a substring from the start of the string up to | |
the character at index i | |
-(NSComparator *) caseInsensitiveCompare:nsstring Compares two strings, ignoring case | |
-(NSComparator *) compare:nsstring Compares tow strings | |
-(BOOL) hasPrefix:nsstring Tests whether a string begins with nsstring | |
-(BOOL) hasSuffix:nsstring Tests whether a string ends with nsstring | |
-(BOOL) isEqualToString:nsstring Tests whether two string are equal | |
-(NSString *) capitalizedString Returns a string with the first letter of every word capitalized | |
(and the remainning letters in each word converted to lowercase) | |
-(NSString *) lowercaseString Returns a string converted to lowercase | |
-(NSString *) uppercaseString Returns a string converted to uppercase | |
-(const char *) UTF8String Returns a string converted to a UTF-8 C-style character string | |
-(double) doubelValue Returns a double precision floating-point representation of the string | |
-(float) floatValue Returns a floating-point representation of the string | |
-(NSInteger) integerValue Returns a NSInteger representation of the string | |
-(int) intValue Returns the integer representation of the string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment