るりまサーチ

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

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. kernel p
  5. kernel $-p

検索結果

<< 1 2 3 ... > >>

Regexp#encoding -> Encoding (21231.0)

正規表現オブジェクトのエンコーディングを表す Encoding オブジェクト を返します。

...正規表現オブジェクトのエンコーディングを表す Encoding オブジェクト
を返します。


@
see d:spec/regexp#encoding...

Net::IMAP::BodyTypeBasic#encoding -> String (21124.0)

Content-Transfer-Encoding の値を文字列で返します。

...Content-Transfer-Encoding の値を文字列で返します。

@
see 2045...

Net::IMAP::BodyTypeMessage#encoding -> String (21124.0)

Content-Transfer-Encoding の値を文字列で返します。

...Content-Transfer-Encoding の値を文字列で返します。

@
see 2045...

Net::IMAP::BodyTypeText#encoding -> String (21124.0)

Content-Transfer-Encoding の値を文字列で返します。

...Content-Transfer-Encoding の値を文字列で返します。

@
see 2045...

Psych::Nodes::Stream#encoding -> Integer (21114.0)

stream に使われるエンコーディングを返します。

...stream に使われるエンコーディングを返します。

@
see Psych::Nodes::Stream#encoding=...

絞り込み条件を変える

RSS::RootElementMixin#output_encoding (12219.0)

@todo

...@todo...

RSS::RootElementMixin#output_encoding= (12219.0)

@todo

...@todo...

Encoding::Converter#primitive_errinfo -> Array (9237.0)

直前の Encoding::Converter#primitive_convert による変換の結果を保持する五要素の配列を返します。

...直前の Encoding::Converter#primitive_convert による変換の結果を保持する五要素の配列を返します。

@
return [result, enc1, enc2, error_bytes, readagain_bytes] という五要素の配列

result は直前の primitive_convert の戻り値です。
それ以外の四要素は...
...:invalid_byte_sequence か :incomplete_input か :undefined_conversion だった場合に意味を持ちます。
enc1 はエラーの発生した原始変換の変換元のエンコーディング、enc2 は変換先のエンコーディングです。
error_bytes はエラーの発生原因とな...
...

p
rimitive_errinfo はもっぱら Encoding::Converter#primitive_convert と組み合わせて使います。Encoding::Converter#convert を用いている場合にも取得することはできますが、有用な使い方は難しいでしょう。

//emlist[][ruby]{
# \xff is invalid as EUC-JP....

Encoding::Converter#primitive_convert(source_buffer, destination_buffer) -> Symbol (9185.0)

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

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

@
param source_buffer 変換元文字列のバッファ
@
param destination_buffer 変換先文字列を格納するバッファ
@
param destination_byteoffset 変換先バッファでのオフセット
@
param destinat...
...容量
@
param options 変換の詳細を指定する定数やハッシュ
@
return 変換結果を表す Symbol

options には以下が指定できます。

: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversi...
...put before 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_emp...
<< 1 2 3 ... > >>