本文简要介绍ruby语言中 IRB::OutputMethod.parse_printf_format
的用法。
用法
parse_printf_format(format, opts)
如果在来自 printf
的给定 format
中存在成功的 Regexp
匹配,则返回给定 format
和 opts
的数组以供 Kernel#sprintf
使用
% <flag> [#0- +] <minimum field width> (\*|\*[1-9][0-9]*\$|[1-9][0-9]*) <precision>.(\*|\*[1-9][0-9]*\$|[1-9][0-9]*|)? #<length modifier>(hh|h|l|ll|L|q|j|z|t) <conversion specifier>[diouxXeEfgGcsb%]
相关用法
- Ruby Object.instance_variable_get用法及代码示例
- Ruby Open3.capture3用法及代码示例
- Ruby Open3.capture2用法及代码示例
- Ruby OpenStruct.ostruct[name] =用法及代码示例
- Ruby Option.level用法及代码示例
- Ruby OpenSSL.fips_mode =用法及代码示例
- Ruby Object.display用法及代码示例
- Ruby Object.remove_instance_variable用法及代码示例
- Ruby Option.byte用法及代码示例
- Ruby Object.define_singleton_method用法及代码示例
- Ruby ObjectSpace.memsize_of_all用法及代码示例
- Ruby Object.methods用法及代码示例
- Ruby Object.public_send用法及代码示例
- Ruby ObjectSpace模块用法及代码示例
- Ruby Object.xmp用法及代码示例
- Ruby OpenSSL模块用法及代码示例
- Ruby Open3.capture2e用法及代码示例
- Ruby Object.singleton_methods用法及代码示例
- Ruby Option.family用法及代码示例
- Ruby OCSP模块用法及代码示例
- Ruby Object.enum_for用法及代码示例
- Ruby ObjectSpace.count_symbols用法及代码示例
- Ruby Open3.popen2e用法及代码示例
- Ruby ObjectSpace.define_finalizer用法及代码示例
- Ruby ObjectSpace.count_imemo_objects用法及代码示例
注:本文由纯净天空筛选整理自ruby-lang.org大神的英文原创作品 OutputMethod.parse_printf_format。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。