るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle type_size_t

ライブラリ

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

CSV#string -> String (30631.0)

StringIO#string に委譲します。

...
String
IO#string に委譲します。


@
see StringIO#string...

String#lstrip -> String (27558.0)

文字列の先頭にある空白文字を全て取り除いた新しい文字列を返します。 空白文字の定義は " \t\r\n\f\v\0" です。

...にある空白文字を全て取り除いた新しい文字列を返します。
空白文字の定義は " \t\r\n\f\v\0" です。

//emlist[例][ruby]{
p " abc\n".lstrip #=> "abc\n"
p "\t abc\n".lstrip #=> "abc\n"
p "abc\n".lstrip #=> "abc\n"
//}

@
see String#strip, String#rstrip...

String#strip -> String (27558.0)

文字列先頭と末尾の空白文字を全て取り除いた文字列を生成して返します。 空白文字の定義は " \t\r\n\f\v\0" です。

...義は " \t\r\n\f\v\0" です。

//emlist[例][ruby]{
p " abc \r\n".strip #=> "abc"
p "abc\n".strip #=> "abc"
p " abc".strip #=> "abc"
p "abc".strip #=> "abc"
p " \0 abc \0".strip #=> "abc"

str = "\tabc\n"
p str.strip #=> "abc"
p str...
...#=> "\tabc\n" (元の文字列は変化しない)
//}

@
see String#lstrip, String#rstrip...

String#rstrip -> String (27464.0)

文字列の末尾にある空白文字を全て取り除いた新しい文字列を返します。 空白文字の定義は " \t\r\n\f\v\0" です。

...白文字の定義は " \t\r\n\f\v\0" です。

//emlist[例][ruby]{
p " abc\n".rstrip #=> " abc"
p " abc \t\r\n\0".rstrip #=> " abc"
p " abc".rstrip #=> " abc"
p " abc\0 ".rstrip #=> " abc"

str = "abc\n"
p str.rstrip #=> "abc"
p str #=> "abc\n"...
...(元の文字列は変化しない)
//}

@
see String#lstrip,String#strip...

StringScanner#string=(str) (27426.0)

スキャン対象の文字列を str に変更して、マッチ記録を捨てます。

...str に変更して、マッチ記録を捨てます。

@
param str スキャン対象の文字列を str に変更して、マッチ記録を捨てます。

@
return str を返します。

//emlist[例][ruby]{
r
equire 'strscan'

str = '0123'
s = StringScanner.new('test string')
s.string = str...

絞り込み条件を変える

JSON::Generator::GeneratorMethods::String#to_json_raw -> String (27330.0)

自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。

...自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。

@
see JSON::Generator::GeneratorMethods::String#to_json_raw_object, JSON::Generator::GeneratorMethods::Hash#to_json...

StringIO#string=(buf) (27314.0)

自身が表す文字列を指定された buf に変更します。

...み書き両用になりますが、
buf がフリーズされている場合には読み取り専用になります。
pos と lineno は 0 にセットされます。


@
param buf 自身が新たに表す文字列を指定します。

@
raise TypeError buf が nil の場合に発生します。...

String#rstrip! -> self | nil (27263.0)

文字列の末尾にある空白文字を全て破壊的に取り除きます。 空白文字の定義は " \t\r\n\f\v\0" です。

...的に取り除きます。
空白文字の定義は " \t\r\n\f\v\0" です。

//emlist[例][ruby]{
str = " abc\n"
p str.rstrip! # => " abc"
p str # => " abc"

str = " abc \r\n\t\v\0"
p str.rstrip! # => " abc"
p str # => " abc"
//}

@
see String#rstrip, String#lstrip...

String#strip! -> self | nil (27257.0)

先頭と末尾の空白文字を全て破壊的に取り除きます。 空白文字の定義は " \t\r\n\f\v\0" です。

..." \t\r\n\f\v\0" です。

strip! は、内容を変更した self を返します。
ただし取り除く空白がなかったときは nil を返します。

//emlist[例][ruby]{
str = " abc\r\n"
p str.strip! #=> "abc"
p str #=> "abc"

str = "abc"
p str.strip! #=> nil
p str...
...#=> "abc"

str = " \0 abc \0"
str.strip!
p str #=> "abc"
//}

@
see String#strip, String#lstrip...
<< 1 2 3 ... > >>