NSMutableString 进阶
来源:互联网 发布:小米手机数据迁移 编辑:程序博客网 时间:2024/04/29 21:36
先无耻地贴头文件:
- @interface NSMutableString : NSString
- /* NSMutableString primitive (funnel) method. See below for the other mutation methods.
- */
- - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)aString;
- @end
- @interface NSMutableString (NSMutableStringExtensionMethods)
- - (void)insertString:(NSString *)aString atIndex:(NSUInteger)loc;
- - (void)deleteCharactersInRange:(NSRange)range;
- - (void)appendString:(NSString *)aString;
- - (void)appendFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
- - (void)setString:(NSString *)aString;
- /* In addition to these two, NSMutableString responds properly to all NSString creation methods.
- */
- - (id)initWithCapacity:(NSUInteger)capacity;
- + (id)stringWithCapacity:(NSUInteger)capacity;
- /* This method replaces all occurrences of the target string with the replacement string, in the specified range of the receiver string, and returns the number of replacements. NSBackwardsSearch means the search is done from the end of the range (the results could be different); NSAnchoredSearch means only anchored (but potentially multiple) instances will be replaced. NSLiteralSearch and NSCaseInsensitiveSearch also apply. NSNumericSearch is ignored. Use NSMakeRange(0, [receiver length]) to process whole string. If NSRegularExpressionSearch is specified, the replacement is treated as a template, as in the corresponding NSRegularExpression methods, and no other options can apply except NSCaseInsensitiveSearch and NSAnchoredSearch.
- */
- - (NSUInteger)replaceOccurrencesOfString:(NSString *)target withString:(NSString *)replacement options:(NSStringCompareOptions)options range:(NSRange)searchRange;
- @end
0 0
- NSMutableString 进阶
- NSMutableString 进阶
- NSMutableString
- NSMutableString
- NSMutableString
- NSMutableString
- NSMutableString
- NSMutableString
- NSMutableString
- NSString NSMutableString
- NSString & NSMutableString
- NSString/NSMutableString
- NSMutableString用法
- NSString、NSMutableString
- Foundation--NSMutableString
- NSString NSMutableString
- Foundation NSMutableString
- NSString,NSMutableString
- MPMediaPickerController 选取本地音频
- Qt 创建工具栏
- python核心编程-函数返回值
- JS window.open 使用说明
- iOS应用目录
- NSMutableString 进阶
- Android 开发中的日常积累
- Theano 学习笔记
- Android FancyCoverFlow的使用实现图片画廊形式的呈现
- 人
- Shell编程
- “第一次亲密接触”——iOS中策略模式初运用
- ecshop文章侧边栏导航,自动调用文章多级子栏目分类并且当前栏目及父栏目高亮显示
- linux驱动开发之内核树配置