るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.009秒)

別のキーワード

  1. matrix collect
  2. _builtin collect
  3. matrix collect!
  4. _builtin collect_concat
  5. _builtin collect!

ライブラリ

モジュール

検索結果

WEBrick::HTTPUtils.#escape(str) -> String (18120.0)

与えられた文字列を数値参照文字列に変換します。

...表現を使用して変換します。

control = (0x0..0x1f).collect{|c| c.chr }.join + "\x7f"
space = " "
delims = '<>#%"'
unwise = '{}|\\^[]`'
nonascii = (0x80..0xff).collect{|c| c.chr }.join
/[#{Regexp.escape(control + space + delims + unwise + nonascii)}]/n

@param str 文...