You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
811 B
Objective-C
27 lines
811 B
Objective-C
#ifndef YSSTRING_H
|
|
#define YSSTRING_H
|
|
|
|
#import <YSObject.h>
|
|
#import <YSRange.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
@implementation YSString : YSObject <YSCopying, YSMutableCopying>
|
|
+(instancetype) string;
|
|
+(instancetype) stringWithCharacters: (const unichar*) chars
|
|
length: (YSUInteger) length;
|
|
+(instancetype) stringWithCString: (const char *) byteString
|
|
length: (YSUInteger) length;
|
|
+(instancetype) stringWithCString: (const char *) byteString;
|
|
//+(instancetype) stringWithFormat: (YSString *)format, ...
|
|
+(instancetype) stringWithContentsOfFile: (YSString *) path;
|
|
-(instancetype) init;
|
|
-(YSUInteger) length;
|
|
-(unichar) characterAtIndex: (YSUInteger) index;
|
|
-(void) getCharacters: (unichar *) buffer;
|
|
-(void) getCharacters: (unichar *) buffer
|
|
range: (YSRange) aRange;
|
|
@end
|
|
|
|
|
|
#endif |