iOS: NSString的方法getFileSystemRepresentation:maxLength:
来源:互联网 发布:foobar2000 linux 编辑:程序博客网 时间:2024/04/29 22:47
- (BOOL)getFileSystemRepresentation:(char *)buffer maxLength:(NSUInteger)maxLength
char filenameBuffer[13];
BOOL success;
success = [@"/mach_kernel" getFileSystemRepresentation:filenameBuffer maxLength:12];
// success == NO
// Changing the length to include the NULL character does work
success = [@"/mach_kernel" getFileSystemRepresentation:filenameBuffer maxLength:13];
// success == YES
- iOS: NSString的方法getFileSystemRepresentation:maxLength:
- iOS: NSString的方法getCString:maxLength:encoding:
- iOS: NSString的方法stringWithUTF8String:
- iOS: NSString的方法characterAtIndex:
- iOS: NSString的方法componentsSeparatedByCharactersInSet:
- iOS: NSString的方法cStringUsingEncoding:
- iOS: NSString的方法dataUsingEncoding:
- iOS: NSString的方法fileSystemRepresentation
- iOS: NSString的方法initWithUTF8String:
- iOS: NSString的方法rangeOfCharacterFromSet:
- iOS: NSString的方法stringByTrimmingCharactersInSet:
- iOS: NSString的方法UTF8String
- ios--NSString 的常用方法
- iOS 【iOS-NSString的常用方法】
- iOS: NSString的方法stringWithCharacters:length:
- iOS: NSString的方法stringWithCString:encoding:
- iOS: NSString的方法getCharacters:range:
- iOS: NSString的方法initWithBytes:length:encoding:
- debug常用命令小结
- 11步教你选择最稳定的MySQL版本
- hadoop深入研究:(十六)——Avro序列化与反序列化
- Android之SeekBar与RatingBar简单实例
- 道道道
- iOS: NSString的方法getFileSystemRepresentation:maxLength:
- 文件上传类
- Android实战技术:IPC方式简介教程
- 《启示录》读书笔记系列--笔记四
- java断点续传[转]
- HttpWatch工具的使用
- 我是程序员,我比较喜欢有纪律的团队。
- Alpha、Beta、RC、GA版本的区别
- printk的用法