474件ヒット
[401-474件を表示]
(0.070秒)
ライブラリ
クラス
- ERB (12)
-
Encoding
:: Converter (108) -
Net
:: SMTP (36) -
Shell
:: Filter (6) - String (12)
-
URI
:: Generic (24) -
WIN32OLE
_ TYPE (12)
モジュール
-
CGI
:: HtmlExtension (48) - Kernel (216)
キーワード
- - (12)
- < (6)
-
create
_ makefile (12) -
create
_ tmpsrc (12) -
dummy
_ makefile (12) -
egrep
_ cpp (24) - img (24)
-
insert
_ output (12) -
install
_ files (12) -
install
_ rb (12) -
last
_ error (12) -
log
_ src (12) - pathmap (12)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - putback (24)
-
route
_ from (12) -
send
_ mail (12) - sendmail (12)
-
src
_ type (12) -
try
_ compile (24) -
try
_ cpp (24) -
try
_ do (24) -
try
_ link (24) -
try
_ run (24)
検索結果
先頭5件
- Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol - String
# pathmap(spec = nil) { . . . } -> String - CGI
:: HtmlExtension # image _ button(attributes) -> String - Encoding
:: Converter # last _ error -> Exception | nil
-
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol (19.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...rce_buffer_empty
* :finished
//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec.pr... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol (19.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...rce_buffer_empty
* :finished
//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec.pr... -
String
# pathmap(spec = nil) { . . . } -> String (19.0) -
与えられた書式指定文字列に応じてパス(自身)を変換します。
...old,new;src,bin}d")
正規表現や後方参照をパターンとして使用することがあるかもしれません。
中括弧、コンマ、セミコロンはパターンと置換文字列に使用しないでください。
例:
"src/org/onestepback/proj/A.java".pathmap("%{^src,bin}X.c... -
CGI
:: HtmlExtension # image _ button(attributes) -> String (18.0) -
タイプが image の input 要素を生成します。
...タイプが image の input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
image_button({ "SRC" => "url", "ALT" => "string" })
# <INPUT TYPE="image" SRC="url" ALT="string">... -
Encoding
:: Converter # last _ error -> Exception | nil (13.0) -
直前に変換器で発生した例外に相当する例外オブジェクトを返します。 直前の変換で例外が発生していない場合は nil を返します。
...:Converter.new("utf-8", "iso-8859-1")
p ec.primitive_convert(src="\xf1abcd", dst="") #=> :invalid_byte_sequence
p ec.last_error #=> #<Encoding::InvalidByteSequenceError: "\xF1" followed by "a" on UTF-8>
p ec.primitive_convert(src, dst, nil, 1) #=> :destination_buffer_full
p ec... -
Encoding
:: Converter # putback -> String (13.0) -
後の変換用に変換器内部で保持しているバイト列を max_numbytes で指定した バイト数だけ返します。max_numbytes を指定しなかった場合は保持しているバ イト列の全てを返します。
...値
@return 格納されていたバイト列
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-16le", "iso-8859-1")
src = "\x00\xd8\x61\x00"
dst = ""
p ec.primitive_convert(src, dst) #=> :invalid_byte_sequence
p ec.primitive_errinfo #=> [:invalid_byte_sequence, "UTF-16LE", "UTF-8", "\x00\... -
Encoding
:: Converter # putback(max _ numbytes) -> String (13.0) -
後の変換用に変換器内部で保持しているバイト列を max_numbytes で指定した バイト数だけ返します。max_numbytes を指定しなかった場合は保持しているバ イト列の全てを返します。
...値
@return 格納されていたバイト列
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-16le", "iso-8859-1")
src = "\x00\xd8\x61\x00"
dst = ""
p ec.primitive_convert(src, dst) #=> :invalid_byte_sequence
p ec.primitive_errinfo #=> [:invalid_byte_sequence, "UTF-16LE", "UTF-8", "\x00\...