るりまサーチ

最速Rubyリファレンスマニュアル検索!
153件ヒット [1-100件を表示] (0.041秒)
トップページ > クエリ:nil[x] > クエリ:check[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin nil?
  2. object nil?
  3. nilclass nil?
  4. object nil
  5. _builtin nil

ライブラリ

クラス

モジュール

検索結果

<< 1 2 > >>

StringScanner#check(regexp) -> String | nil (18243.0)

現在位置から regexp とのマッチを試みます。 マッチに成功したらマッチした部分文字列を返します。 マッチに失敗したら nil を返します。

...敗したら nil を返します。

このメソッドはマッチが成功してもスキャンポインタを進めません。

@param regexp マッチに用いる正規表現を指定します。

//emlist[例][ruby]{
require 'strscan'

s = StringScanner.new('test string')
s.check(/\w+/) # => "...
...test"
s.pos # => 0
s.matched # => "test"
s.check(/\s+/) # => nil
s.matched # => nil
//}...

Kernel#check_signedness(type, headers = nil, opts = nil) -> "signed" | "unsigned" | nil (6441.0)

Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.

...ned, or negative integer if the +type+ is signed.

For example, if size_t is defined as unsigned, then
check
_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is
done....

Kernel#check_signedness(type, headers = nil, opts = nil) { ... } -> "signed" | "unsigned" | nil (6441.0)

Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.

...ned, or negative integer if the +type+ is signed.

For example, if size_t is defined as unsigned, then
check
_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is
done....

CGI::HtmlExtension#checkbox(name = "", value = nil, checked = nil) -> String (6403.0)

タイプが checkbox である input 要素を生成します。

...イプが checkbox である input 要素を生成します。

@param name name 属性の値を指定します。

@param value value 属性の値を指定します。

@param checked checked 属性の値を指定します。

例:
check
box("name", "value", true)
# => "<INPUT CHECKED NAME=\"nam...
...e\" TYPE=\"checkbox\" VALUE=\"value\">"...

Kernel#check_sizeof(type, headers = nil) -> Integer | nil (6319.0)

与えられた型のサイズを返します。

...DSIZEOF_type=X" を追加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。

例えば、

require 'mkmf'
check
_sizeof('mystruct') # => 12

である場合、SIZEOF_MYSTRUCT=12 というプリプロセッサマクロをコンパ...

絞り込み条件を変える

Kernel#check_sizeof(type, headers = nil) { ... } -> Integer | nil (6319.0)

与えられた型のサイズを返します。

...DSIZEOF_type=X" を追加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。

例えば、

require 'mkmf'
check
_sizeof('mystruct') # => 12

である場合、SIZEOF_MYSTRUCT=12 というプリプロセッサマクロをコンパ...

StringScanner#check_until(regexp) -> String | nil (6225.0)

regexp が一致するまで文字列をスキャンします。 マッチに成功したらスキャン開始位置からマッチ部分の末尾までの部分文字列を返します。 マッチに失敗したら nil を返します。

...敗したら nil を返します。

このメソッドはマッチが成功してもスキャンポインタを進めません。

@param regexp マッチに用いる正規表現を指定します。

//emlist[例][ruby]{
require 'strscan'

s = StringScanner.new('test string')
s.check_until(/str/)...

Monitor#mon_check_owner -> nil (6203.0)

MonitorMixin 用の内部メソッドです。

MonitorMixin 用の内部メソッドです。

@raise ThreadError ロックを持っていないスレッドが呼びだした場合に発生します

CGI::HtmlExtension#checkbox(attributes) -> String (6103.0)

タイプが checkbox である input 要素を生成します。

...タイプが checkbox である input 要素を生成します。

@param attributes 属性をハッシュで指定します。

例:
check
box("name" => "name", "value" => "value", "checked" => true)
# => "<INPUT checked name=\"name\" TYPE=\"checkbox\" value=\"value\">"...

CGI::HtmlExtension#radio_button(name = "", value = nil, checked = nil) -> String (303.0)

タイプが radio である input 要素を生成します。

...e value 属性の値を指定します。

@param checked 真ならば checked 属性を設定します。

例:
radio_button("name", "value")
# <INPUT TYPE="radio" NAME="name" VALUE="value">

radio_button("name", "value", true)
# <INPUT TYPE="radio" NAME="name" VALUE="value" CHECKED>...

絞り込み条件を変える

<< 1 2 > >>