NSStringの機能区分とメソッドには以下があります。
オブジェクトの生成と初期化
+ string– init– initWithBytes:length:encoding:– initWithBytesNoCopy:length:encoding:freeWhenDone:– initWithCharacters:length:– initWithCharactersNoCopy:length:freeWhenDone:– initWithString:– initWithCString:encoding:– initWithUTF8String:– initWithFormat:– initWithFormat:arguments:– initWithFormat:locale:– initWithFormat:locale:arguments:– initWithData:encoding:+ stringWithFormat:+ localizedStringWithFormat:+ stringWithCharacters:length:+ stringWithString:+ stringWithCString:encoding:+ stringWithUTF8String:
ファイルからの文字列の生成と初期化
+ stringWithContentsOfFile:encoding:error:– initWithContentsOfFile:encoding:error:+ stringWithContentsOfFile:usedEncoding:error:– initWithContentsOfFile:usedEncoding:error:
URLからの文字列の生成と初期化
+ stringWithContentsOfURL:encoding:error:– initWithContentsOfURL:encoding:error:+ stringWithContentsOfURL:usedEncoding:error:– initWithContentsOfURL:usedEncoding:error:
文字列のファイルまたはURLへの書き出し
文字列長の取得
文字やデータの取得
– characterAtIndex:– getCharacters:– getCharacters:range:– getBytes:maxLength:usedLength:encoding:options:range:remainingRange:
C文字列の取得
文字列の結合
– stringByAppendingFormat:– stringByAppendingString:– stringByPaddingToLength:withString:startingAtIndex:
文字列の分割
– componentsSeparatedByString:– componentsSeparatedByCharactersInSet:– stringByTrimmingCharactersInSet:– substringFromIndex:– substringWithRange:– substringToIndex:
文字及び文字列の検索
– rangeOfCharacterFromSet:– rangeOfCharacterFromSet:options:– rangeOfCharacterFromSet:options:range:– rangeOfString:– rangeOfString:options:– rangeOfString:options:range:– rangeOfString:options:range:locale:
文字列の置き換え
– stringByReplacingOccurrencesOfString:withString:– stringByReplacingOccurrencesOfString:withString:options:range:– stringByReplacingCharactersInRange:withString:
行とパラグラフ範囲の決定
– getLineStart:end:contentsEnd:forRange:– lineRangeForRange:– getParagraphStart:end:contentsEnd:forRange:– paragraphRangeForRange:
構成された文字シーケンスの決定
文字列内容のプロパティリストへの変換
文字列の特定と比較
– caseInsensitiveCompare:– localizedCaseInsensitiveCompare:– compare:– localizedCompare:– compare:options:– compare:options:range:– compare:options:range:locale:– hasPrefix:– hasSuffix:– isEqualToString:– hash
文字列の組み合わせ
共有ヘッダ(Shared Prefix)の取得
Caseの変更
地図にある文字列の取得
– decomposedStringWithCanonicalMapping– decomposedStringWithCompatibilityMapping– precomposedStringWithCanonicalMapping– precomposedStringWithCompatibilityMapping
数値の取得
エンコーディングの動作
+ availableStringEncodings+ defaultCStringEncoding+ localizedNameOfStringEncoding:– canBeConvertedToEncoding:– dataUsingEncoding:– dataUsingEncoding:allowLossyConversion:– description– fastestEncoding– smallestEncoding
ファイルパスの操作
+ pathWithComponents:– pathComponents– completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:– fileSystemRepresentation– getFileSystemRepresentation:maxLength:– isAbsolutePath– lastPathComponent– pathExtension– stringByAbbreviatingWithTildeInPath– stringByAppendingPathComponent:– stringByAppendingPathExtension:– stringByDeletingLastPathComponent– stringByDeletingPathExtension– stringByExpandingTildeInPath– stringByResolvingSymlinksInPath– stringByStandardizingPath– stringsByAppendingPaths:
0 件のコメント:
コメントを投稿