1463件ヒット
[201-300件を表示]
(0.214秒)
ライブラリ
- ビルトイン (838)
-
cgi
/ core (12) - csv (36)
-
irb
/ input-method (36) - kconv (24)
-
minitest
/ unit (1) -
net
/ http (72) -
net
/ imap (36) - open-uri (24)
- psych (72)
-
rexml
/ document (132) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) - rss (24)
- scanf (12)
- stringio (60)
-
webrick
/ httprequest (24) -
webrick
/ httpresponse (12)
クラス
-
ARGF
. class (60) - Array (21)
- CSV (36)
- Encoding (60)
-
Encoding
:: Converter (204) -
Encoding
:: InvalidByteSequenceError (84) -
Encoding
:: UndefinedConversionError (36) - IO (36)
-
IRB
:: FileInputMethod (12) -
IRB
:: ReadlineInputMethod (12) -
IRB
:: StdioInputMethod (12) - Integer (24)
-
Net
:: IMAP :: BodyTypeBasic (12) -
Net
:: IMAP :: BodyTypeMessage (12) -
Net
:: IMAP :: BodyTypeText (12) -
Psych
:: Handler (12) -
Psych
:: Nodes :: Stream (24) -
Psych
:: Stream (24) -
Psych
:: Visitors :: YAMLTree (12) -
RDoc
:: Options (24) -
REXML
:: Document (60) -
REXML
:: Instruction (24) -
REXML
:: XMLDecl (48) - String (307)
- StringIO (60)
- Time (42)
-
WEBrick
:: HTTPRequest (24) -
WEBrick
:: HTTPResponse (12)
モジュール
-
CGI
:: QueryExtension (12) -
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (72) -
OpenURI
:: Meta (24) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12) -
RSS
:: RootElementMixin (24)
キーワード
- << (12)
- == (12)
-
accept
_ encoding (24) -
append
_ as _ bytes (1) - asctime (12)
- b (12)
- casecmp (12)
- chr (24)
- chunked= (12)
- chunked? (12)
- concat (21)
- content (12)
-
content
_ encoding (12) - convert (12)
- convpath (12)
- ctime (12)
-
destination
_ encoding (36) -
destination
_ encoding _ name (24) - each (12)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) - encode (36)
- encode! (24)
- encoding= (24)
-
error
_ bytes (12) -
error
_ char (12) -
external
_ encoding (48) - finish (12)
-
force
_ encoding (12) -
incomplete
_ input? (12) -
insert
_ output (12) - inspect (42)
-
internal
_ encoding (48) - iseuc (12)
-
last
_ error (12) -
mu
_ pp (1) - name (12)
- names (12)
-
output
_ encoding (12) -
output
_ encoding= (12) - pack (21)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - putback (24)
- query (12)
-
readagain
_ bytes (12) - replacement (12)
- replacement= (12)
- replicate (12)
- scanf (12)
- scrub (36)
- scrub! (36)
-
set
_ encoding (84) -
source
_ encoding (24) -
source
_ encoding _ name (12) -
stand
_ alone? (12) - start (36)
-
start
_ stream (12) - target (12)
-
to
_ s (24) - tolocale (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - unpack (12)
-
valid
_ encoding? (12) - version (12)
- write (24)
- writeencoding (12)
- xmldecl (36)
検索結果
先頭5件
- REXML
:: XMLDecl # encoding -> String | nil - Encoding
:: InvalidByteSequenceError # error _ bytes -> String - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol
-
REXML
:: XMLDecl # encoding -> String | nil (21302.0) -
設定されているエンコーディングの名前を文字列で返します。
...設定されているエンコーディングの名前を文字列で返します。
エンコーディングが指定されていない(デフォルトの UTF-8 とみなされます)
場合は nil を返します。... -
Encoding
:: InvalidByteSequenceError # error _ bytes -> String (21225.0) -
エラー発生時に捨てられたバイト列を返します。
...mlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1\xFFdef")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" on EUC-JP>
puts $!.error_bytes.dump #=> "\xA1"
puts $!.reada......gain_bytes.dump #=> "\xFF"
end
//}
@see Encoding::InvalidByteSequenceError#readagain_bytes... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol (18943.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytes......aram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after......output 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_... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol (18843.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytes......aram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after......output 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_... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol (18643.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytes......aram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after......output 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_... -
ARGF
. class # internal _ encoding -> Encoding | nil (18457.0) -
ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...ARGF から読み込んだ文字列の内部エンコーディングを返します。
内部エンコーディングが指定されていない場合は nil を返します。
まだ読み込み処理を始めていない場合は Encoding.default_external を返します。
ARGF.class#set_encod......$ ruby -Eutf-8 test.rb
# test.rb
ARGF.internal_encoding # => #<Encoding:UTF-8>
ARGF.set_encoding('utf-8','ascii')
ARGF.internal_encoding # => #<Encoding:US-ASCII>
例:
ARGF.binmode
ARGF.internal_encoding # => nil
@see IO, ARGF.class#external_encoding... -
ARGF
. class # external _ encoding -> Encoding (18443.0) -
ARGF が処理するファイルに対する外部エンコーディングを返します。 デフォルトは Encoding.default_external です。
...ARGF が処理するファイルに対する外部エンコーディングを返します。
デフォルトは Encoding.default_external です。
ARGF.class#set_encoding で設定します。
例:
ARGF.external_encoding # => #<Encoding:UTF-8>
@see IO, ARGF.class#internal_encoding... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer) -> Symbol (18443.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytes......aram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after......output 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_... -
IO
# external _ encoding -> Encoding | nil (18431.0) -
IO の外部エンコーディングを返します。 外部エンコーディングが指定されていない場合は nil を返します。 ただし読み込み専用モードの場合は Encoding.default_external になります。
...ディングが指定されていない場合は nil を返します。
ただし読み込み専用モードの場合は Encoding.default_external になります。
//emlist[例][ruby]{
IO.write("testfile", "abcde")
File.open("testfile") { |f| p f.external_encoding } # => #<Encoding:UTF-8>
//}...