差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン | |||
programming:mac:nsstring_format_specifiers [2013-11-05 16:20] Decomo |
programming:mac:nsstring_format_specifiers [2015-01-06 11:51] (現在) |
||
---|---|---|---|
行 4: | 行 4: | ||
^ 指定子 | ^ 指定子 | ||
- | |%@|Objective-Cオブジェクト。利用可能なら< | + | |%@|Objective-Cオブジェクト。利用可能なら'' |
|%%|' | |%%|' | ||
|%d, %D, %i|符号付き32ビット整数(int)| | |%d, %D, %i|符号付き32ビット整数(int)| | ||
行 22: | 行 22: | ||
|%g|64ビット浮動小数点値(double)を指数が-4〜5なら%e形式で、それ以外は%f形式で表示する。| | |%g|64ビット浮動小数点値(double)を指数が-4〜5なら%e形式で、それ以外は%f形式で表示する。| | ||
|%G|64ビット浮動小数点値(double)を指数が-4〜5なら%E形式で、それ以外は%f形式で表示する。| | |%G|64ビット浮動小数点値(double)を指数が-4〜5なら%E形式で、それ以外は%f形式で表示する。| | ||
- | |%c|8ビット符号なし文字(unsigned char)。< | + | |%c|8ビット符号なし文字(unsigned char)。'' |
- | |%C|16ビットUnicode文字(unichar)。< | + | |%C|16ビットUnicode文字(unichar)。'' |
|%s|NULL終端の8ビット符号なし文字配列。%s interprets its input in the system encoding rather than, for example, UTF-8.| | |%s|NULL終端の8ビット符号なし文字配列。%s interprets its input in the system encoding rather than, for example, UTF-8.| | ||
|%S|NULL終端の16ビットUnicode文字配列。| | |%S|NULL終端の16ビットUnicode文字配列。| | ||
行 34: | 行 34: | ||
|%t|長さ修飾子。d, | |%t|長さ修飾子。d, | ||
|%j|長さ修飾子。d, | |%j|長さ修飾子。d, | ||
+ |