1428件ヒット
[1-100件を表示]
(0.075秒)
種類
ライブラリ
クラス
-
ARGF
. class (36) - Encoding (336)
- IO (36)
-
Net
:: FTP (44) -
Net
:: HTTPResponse (33) -
Net
:: IMAP (33) -
Net
:: IMAP :: ResponseCode (22) -
Net
:: IMAP :: ResponseText (11) -
OpenSSL
:: Config (11) -
OpenSSL
:: OCSP :: BasicResponse (11) -
RDoc
:: CodeObject (154) - Refinement (3)
- Regexp (22)
- String (140)
- StringIO (36)
-
URI
:: FTP (22) - WIN32OLE (33)
-
Zlib
:: GzipFile (11)
モジュール
- Base64 (66)
-
CGI
:: HtmlExtension (22) - Digest (11)
-
ERB
:: Util (11) - Kconv (11)
- Kernel (11)
-
OpenSSL
:: ASN1 (22) -
OpenSSL
:: X509 (11) - URI (72)
-
WEBrick
:: HTTPStatus (88) - Zlib (11)
キーワード
-
$ KCODE (11) -
CODE
_ CLASS _ TO _ OBJ (11) -
CODE
_ TO _ OBJ (11) - CP437 (11)
- CP720 (3)
- CP737 (11)
- CP775 (11)
- CP850 (11)
- CP852 (11)
- CP855 (11)
- CP857 (11)
- CP860 (11)
- CP861 (11)
- CP862 (11)
- CP863 (11)
- CP864 (11)
- CP865 (11)
- CP866 (11)
- CP869 (11)
- ConverterNotFoundError (11)
- IBM437 (11)
- IBM720 (3)
- IBM737 (11)
- IBM775 (11)
- IBM850 (11)
- IBM852 (11)
- IBM855 (11)
- IBM857 (11)
- IBM860 (11)
- IBM861 (11)
- IBM862 (11)
- IBM863 (11)
- IBM864 (11)
- IBM865 (11)
- IBM866 (11)
- IBM869 (11)
-
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - NKF (11)
-
OS
_ CODE (11) - Ruby用語集 (11)
-
V
_ ERR _ UNABLE _ TO _ DECODE _ ISSUER _ PUBLIC _ KEY (11) - [] (11)
-
client
_ error? (11) - codepage (11)
- codepage= (11)
- codepoints (64)
- comment (11)
- compile (11)
- data (11)
- decode (18)
- decode64 (11)
-
decode
_ all (11) -
decode
_ utf7 (11) -
decode
_ www _ form (11) -
decode
_ www _ form _ component (11) -
document
_ children (11) -
document
_ self (11) - documented? (11)
- drb (11)
- each (11)
-
each
_ codepoint (88) - encode (40)
- encode! (22)
- encode64 (11)
-
encode
_ utf7 (11) -
encode
_ www _ form (11) -
encode
_ www _ form _ component (11) - error? (11)
- escape (7)
- form (22)
- hexencode (11)
-
import
_ methods (3) - info? (11)
- kconv (22)
-
last
_ response (11) -
last
_ response _ code (11) - lastresp (11)
- locale= (11)
- name (11)
- new (22)
- new2 (11)
-
os
_ code (11) - parent (11)
-
parent
_ file _ name (11) -
parent
_ name (11) - rake (11)
-
rdoc
/ markdown (11) -
reason
_ phrase (11) - redirect? (11)
-
remove
_ classes _ and _ modules (11) -
remove
_ methods _ etc (11) -
return
_ code (11) -
rexml
/ document (11) - section (11)
-
server
_ error? (11) -
start
_ doc (11) - status (11)
-
stop
_ doc (11) -
strict
_ decode64 (11) -
strict
_ encode64 (11) - success? (11)
-
test
/ unit (11) - typecode (11)
- unescape (7)
-
unicode
_ normalize (10) -
unicode
_ normalize! (10) -
unicode
_ normalized? (10) -
url
_ encode (11) -
urlsafe
_ decode64 (11) -
urlsafe
_ encode64 (11) - xlist (11)
- xmlrpc (3)
検索結果
先頭5件
-
Net
:: IMAP :: ResponseText # code -> Net :: IMAP :: ResponseCode | nil (18301.0) -
レスポンスコードを返します。
...レスポンスコードを返します。
応答がレスポンスコードを含んでいない場合は nil を返します。
@see Net::IMAP::ResponseCode... -
Net
:: HTTPResponse # code -> String (18207.0) -
HTTP のリザルトコードです。例えば '302' などです。
...スオブジェクトがどのクラスのインスタンスかを
見ることでもレスポンスの種類を判別できます。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.code # => "200"
//}... -
String
# each _ codepoint {|codepoint| block } -> self (6330.0) -
文字列の各コードポイントに対して繰り返します。
...イントに対して繰り返します。
UTF-8/UTF-16(BE|LE)/UTF-32(BE|LE) 以外のエンコーディングに対しては
各文字のバイナリ表現由来の値になります。
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32,......12431, 12540, 12427, 12393]
"hello わーるど".encode('euc-jp').each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 42223, 41404, 42219, 42185]
//}
@see String#codepoints... -
String
# codepoints {|codepoint| block } -> self (6306.0) -
文字列の各コードポイントの配列を返します。(self.each_codepoint.to_a と同じです)
...の配列を返します。(self.each_codepoint.to_a と同じです)
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".codepoints
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
//}
ブロックが指定された場合は String#each_codepoint と同じように動作しま......す。
Ruby 2.6 までは deprecated の警告が出ますが、Ruby 2.7 で警告は削除されました。
@see String#each_codepoint... -
StringIO
# codepoints {|codepoint| . . . } -> self (6300.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
StringIO
# each _ codepoint {|codepoint| . . . } -> self (6300.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
URI
. encode _ www _ form _ component(str , enc=nil) -> String (6264.0) -
文字列を URL-encoded form data の1コンポーネント としてエンコードした文字列を返します。
...文字列を URL-encoded form data の1コンポーネント
としてエンコードした文字列を返します。
通常は URI.encode_www_form を使うほうがよいでしょう。
このメソッドでは *, -, ., 0-9, A-Z, _, a-z, は変換せず、
空白は + に変換し、その他......XX に、変換します。
このメソッドは
https://www.w3.org/TR/2013/CR-html5-20130806/forms.html#url-encoded-form-data
にもとづいて実装されています。
//emlist[][ruby]{
require 'uri'
p URI.encode_www_form_component('Ruby リファレンスマニュアル')
# => "Ruby+%E3%83%......%83%B3%E3%82%B9%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB"
//}
@param str エンコードする文字列
@param enc 指定された場合、パーセントエンコーディングする前に、strをこのエンコーディングに変換
@see URI.decode_www_form_component, URI.encode_www_form... -
URI
. encode _ www _ form(enum , enc=nil) -> String (6258.0) -
enum から URL-encoded form data を生成します。
...URL-encoded form data を生成します。
HTML5 で定義されている application/x-www-form-urlencoded 形式の
文字列を生成します。
enum には通常 [key, value] という形の配列の配列を渡します。
以下の例を見てください。
require 'uri'
URI.encode_w......[key, value] の形のデータを渡すものであれば
何でも渡すことができます(例えば Hash など)。
require 'uri'
URI.encode_www_form({"a"=>"1", "b"=>"2", "c"=>"x yz"})
# => "a=1&b=2&c=x+yz"
このメソッドは引数のエンコーディングを変換しません。......のエンコーディングを変換したい場合はあらかじめ
変換しておいてください(例えば ASCII incompatible なものを
UTF-8 に変換する場合など)。
各要素のエンコーディングがばらばらの場合もあらかじめエンコーディングを
揃えて... -
Net
:: IMAP . decode _ utf7(str) -> String (6250.0) -
modified UTF-7 の文字列を UTF-8 の文字列に変換します。
...modified UTF-7 の文字列を UTF-8 の文字列に変換します。
modified UTF-7 は IMAP のメールボックス名に使われるエンコーディングで、
UTF-7 を修正したものです。
詳しくは 2060 の 5.1.3 を参照してください。
Net::IMAP ではメールボッ......クス名のエンコードを自動的変換「しない」
ことに注意してください。必要があればユーザが変換すべきです。
@param str 変換対象の modified UTF-7 でエンコードされた文字列
@see Net::IMAP.encode_utf7... -
Net
:: IMAP . encode _ utf7(str) -> String (6250.0) -
UTF-8 の文字列を modified UTF-7 の文字列に変換します。
...TF-8 の文字列を modified UTF-7 の文字列に変換します。
modified UTF-7 は IMAP のメールボックス名に使われるエンコーディングで、
UTF-7 を修正したものです。
詳しくは Net::IMAP.encode_utf7 を見てください。
@param str 変換対象の UTF-8......でエンコードされた文字列
@see Net::IMAP.decode_utf7...