549件ヒット
[401-500件を表示]
(0.108秒)
ライブラリ
- ビルトイン (377)
-
net
/ http (36) -
net
/ pop (36) - openssl (12)
-
rexml
/ document (12) -
rubygems
/ package / tar _ reader / entry (12) - stringio (28)
- strscan (24)
- win32ole (12)
クラス
-
ARGF
. class (14) -
Encoding
:: Converter (60) -
Encoding
:: InvalidByteSequenceError (84) -
Gem
:: Package :: TarReader :: Entry (12) - IO (14)
-
Net
:: POP3 (36) -
OpenSSL
:: BN (12) -
REXML
:: Child (12) - Random (12)
- String (193)
- StringIO (28)
- StringScanner (24)
-
WIN32OLE
_ VARIANT (12)
モジュール
-
Net
:: HTTPHeader (36)
キーワード
- byterindex (3)
-
bytes
_ read (12) - bytesize (12)
- byteslice (36)
- bytesplice (10)
-
content
_ range (12) -
destination
_ encoding (12) -
destination
_ encoding _ name (12) -
each
_ byte (38) -
error
_ bytes (12) - getbyte (12)
-
incomplete
_ input? (12) -
n
_ bytes (12) -
n
_ mails (12) -
num
_ bytes (12) - peek (12)
- peep (12)
-
primitive
_ convert (24) -
primitive
_ errinfo (12) - putback (24)
- range (12)
-
range
_ length (12) -
readagain
_ bytes (12) - scrub (36)
- scrub! (36)
-
set
_ debug _ output (12) -
source
_ encoding (12) -
source
_ encoding _ name (12) - vartype (12)
検索結果
先頭5件
-
String
# scrub! -> String (14.0) -
self が不正なバイト列を含む場合に別の文字列に置き換えます。常に self を返します。
...ロックの戻り値で置き換えられます。
//emlist[例][ruby]{
"abc\u3042\x81".scrub! # => "abc\u3042\uFFFD"
"abc\u3042\x81".scrub!("*") # => "abc\u3042*"
"abc\u3042\xE3\x80".scrub!{|bytes| '<'+bytes.unpack('H*')[0]+'>' } # => "abc\u3042<e380>"
//}
@see String#scrub... -
String
# scrub!(repl) -> String (14.0) -
self が不正なバイト列を含む場合に別の文字列に置き換えます。常に self を返します。
...ロックの戻り値で置き換えられます。
//emlist[例][ruby]{
"abc\u3042\x81".scrub! # => "abc\u3042\uFFFD"
"abc\u3042\x81".scrub!("*") # => "abc\u3042*"
"abc\u3042\xE3\x80".scrub!{|bytes| '<'+bytes.unpack('H*')[0]+'>' } # => "abc\u3042<e380>"
//}
@see String#scrub... -
String
# scrub(repl) -> String (14.0) -
self が不正なバイト列を含む場合に別の文字列に置き換えた新しい文字列を返します。
...ブ
ロックの戻り値で置き換えられます。
//emlist[例][ruby]{
"abc\u3042\x81".scrub # => "abc\u3042\uFFFD"
"abc\u3042\x81".scrub("*") # => "abc\u3042*"
"abc\u3042\xE3\x80".scrub{|bytes| '<'+bytes.unpack('H*')[0]+'>' } # => "abc\u3042<e380>"
//}
@see String#scrub!... -
WIN32OLE
_ VARIANT # vartype -> Integer (13.0) -
selfの型情報を取得します。
...型情報は、WIN32OLE::VARIANTの定数値の組み合わせです。
obj = WIN32OLE_VARIANT.new("string")
obj.vartype # => 8 (WIN32OLE::VARIANT::VT_BSTR)
bytes = WIN32OLE_VARIANT.new([1,2,3,4,5], VT_UI1 | VT_ARRAY)
bytes.vartype # => 8209 (WIN32OLE::VARIANT::VT_ARRAY | VT_UI1)... -
Encoding
:: Converter # putback -> String (7.0) -
後の変換用に変換器内部で保持しているバイト列を max_numbytes で指定した バイト数だけ返します。max_numbytes を指定しなかった場合は保持しているバ イト列の全てを返します。
...変換器内部で保持しているバイト列を max_numbytes で指定した
バイト数だけ返します。max_numbytes を指定しなかった場合は保持しているバ
イト列の全てを返します。
@param max_numbytes 取得するバイト列の最大値
@return 格納され......00\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\xD8", "a\x00"]
p ec.putback #=> "a\x00"
p ec.putback #=> "" # no more bytes to put back
//}... -
Net
:: HTTPHeader # content _ range -> Range|nil (7.0) -
Content-Range: ヘッダフィールドの値を Range で返します。 Range の表わす長さは Net::HTTPHeader#range_length で得られます。
...ていない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_range # => nil
req['Content-Range'] = "bytes 0-499/1234"
req.content_range # => 0..499
//}... -
Net
:: HTTPHeader # range -> Range|nil (7.0) -
Range: ヘッダの示す範囲を Range オブジェクトで返します。
...な値][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['range'] = "bytes=1-5"
req.range # => [1..5]
//}
//emlist[例 Net::HTTPHeaderSyntaxError][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.ht... -
Net
:: HTTPHeader # range _ length -> Integer|nil (7.0) -
Content-Range: ヘッダフィールドの表している長さを整数で返します。
...発生します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['Content-Range'] = "bytes 1-500/1000"
req.range_length # => 500
//}... -
Net
:: POP3 # n _ mails -> Integer (7.0) -
サーバにあるメールの数を返します。
...サーバにあるメールの数を返します。
@see Net::POP3#n_bytes
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::POPError サーバがエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロト...