るりまサーチ

最速Rubyリファレンスマニュアル検索!
882件ヒット [201-300件を表示] (0.153秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:empty[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

モジュール

オブジェクト

検索結果

<< < 1 2 3 4 5 ... > >>

Encoding::Converter#primitive_convert(source_buffer, destination_buffer, destination_byteoffset, destination_bytesize) -> Symbol (9218.0)

エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。

...、Encoding::Converter#primitive_convert が唯一の方法になります。

@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_by...
...efore input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT

戻り値は以下のうちのどれかです。

* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_empty...
...[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''

begin
r
et = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec.primitive_errinfo[3].dump[1..-2])
r
edo...

Encoding::Converter#primitive_convert(source_buffer, destination_buffer, destination_byteoffset, destination_bytesize, options) -> Symbol (9218.0)

エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。

...、Encoding::Converter#primitive_convert が唯一の方法になります。

@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_by...
...efore input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT

戻り値は以下のうちのどれかです。

* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_empty...
...[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''

begin
r
et = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec.primitive_errinfo[3].dump[1..-2])
r
edo...

Array#empty? -> bool (9213.0)

自身の要素の数が 0 の時に真を返します。そうでない場合に false を返します。

...自身の要素の数が 0 の時に真を返します。そうでない場合に false を返します。

//emlist[例][ruby]{
p [].empty? #=> true
p [1, 2, 3].empty? #=> false
//}...

Readline::HISTORY.empty? -> bool (9213.0)

ヒストリに格納された内容の数が 0 の場合は true を、 そうでない場合は false を返します。

...リに格納された内容の数が 0 の場合は true を、
そうでない場合は false を返します。

例:

r
equire "readline"

p Readline::HISTORY.empty? #=> true
R
eadline::HISTORY.push("foo", "bar", "baz")
p Readline::HISTORY.empty? #=> false

@see Readline::HISTORY.length...

Thread::Queue#empty? -> bool (9213.0)

キューが空の時、真を返します。

...キューが空の時、真を返します。

//emlist[例][ruby]{
r
equire 'thread'
q = Queue.new
q.empty? # => true
q.push(:resource)
q.empty? # => false
//}...
...キューが空の時、真を返します。

//emlist[例][ruby]{
q = Queue.new
q.empty? # => true
q.push(:resource)
q.empty? # => false
//}...

絞り込み条件を変える

ThreadsWait#empty? -> bool (9213.0)

同期されるスレッドが存在するならば true をかえします。

...ッドが存在するならば true をかえします。

使用例
r
equire 'thwait'

threads = []
3.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}

thall = ThreadsWait.new
p thall.threads.empty? #=> true
thall.join(*threads)
p thall.threads.empty? #=> false...

Matrix#empty? -> bool (9207.0)

行列が要素を持たないならば true を返します。

...行列が要素を持たないならば true を返します。

要素を持たないとは、行数か列数のいずれかが0であることを意味します。

@see Matrix.empty...

OpenSSL::SSL::OP_MICROSOFT_BIG_SSLV3_BUFFER -> Integer (9207.0)

SSL 通信での各種バグ回避コードを有効にするフラグです。

...るフラグです。

OpenSSL::SSL::SSLContext#options= で利用します。

通常は OpenSSL::SSL::OP_ALL でこれらすべてを有効にします。
特定のフラグのみ無効にしたい場合は例えば

ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS

などとします。...

OpenSSL::SSL::OP_MICROSOFT_SESS_ID_BUG -> Integer (9207.0)

SSL 通信での各種バグ回避コードを有効にするフラグです。

...るフラグです。

OpenSSL::SSL::SSLContext#options= で利用します。

通常は OpenSSL::SSL::OP_ALL でこれらすべてを有効にします。
特定のフラグのみ無効にしたい場合は例えば

ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS

などとします。...

OpenSSL::SSL::OP_MSIE_SSLV2_RSA_PADDING -> Integer (9207.0)

SSL 通信での各種バグ回避コードを有効にするフラグです。

...るフラグです。

OpenSSL::SSL::SSLContext#options= で利用します。

通常は OpenSSL::SSL::OP_ALL でこれらすべてを有効にします。
特定のフラグのみ無効にしたい場合は例えば

ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS

などとします。...

絞り込み条件を変える

<< < 1 2 3 4 5 ... > >>