1553件ヒット
[1-100件を表示]
(0.087秒)
種類
ライブラリ
クラス
-
ARGF
. class (38) - Encoding (368)
- IO (38)
-
Net
:: FTP (48) -
Net
:: HTTPResponse (36) -
Net
:: IMAP (36) -
Net
:: IMAP :: ResponseCode (24) -
Net
:: IMAP :: ResponseText (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: OCSP :: BasicResponse (12) -
RDoc
:: CodeObject (168) - Refinement (4)
- Regexp (22)
- String (153)
- StringIO (38)
-
URI
:: FTP (24) - WIN32OLE (36)
-
Zlib
:: GzipFile (12)
モジュール
- Base64 (72)
-
CGI
:: HtmlExtension (24) - Digest (12)
-
ERB
:: Util (12) - Kconv (12)
- Kernel (12)
-
OpenSSL
:: ASN1 (24) -
OpenSSL
:: X509 (12) - URI (76)
-
WEBrick
:: HTTPStatus (96) - Zlib (12)
キーワード
-
$ KCODE (12) -
CODE
_ CLASS _ TO _ OBJ (12) -
CODE
_ TO _ OBJ (12) - CP437 (12)
- CP720 (4)
- CP737 (12)
- CP775 (12)
- CP850 (12)
- CP852 (12)
- CP855 (12)
- CP857 (12)
- CP860 (12)
- CP861 (12)
- CP862 (12)
- CP863 (12)
- CP864 (12)
- CP865 (12)
- CP866 (12)
- CP869 (12)
- ConverterNotFoundError (12)
- IBM437 (12)
- IBM720 (4)
- IBM737 (12)
- IBM775 (12)
- IBM850 (12)
- IBM852 (12)
- IBM855 (12)
- IBM857 (12)
- IBM860 (12)
- IBM861 (12)
- IBM862 (12)
- IBM863 (12)
- IBM864 (12)
- IBM865 (12)
- IBM866 (12)
- IBM869 (12)
-
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - NKF (12)
-
OS
_ CODE (12) - Ruby用語集 (12)
-
V
_ ERR _ UNABLE _ TO _ DECODE _ ISSUER _ PUBLIC _ KEY (12) - [] (12)
-
client
_ error? (12) - codepage (12)
- codepage= (12)
- codepoints (66)
- comment (12)
- compile (11)
- data (12)
- decode (19)
- decode64 (12)
-
decode
_ all (12) -
decode
_ utf7 (12) -
decode
_ www _ form (12) -
decode
_ www _ form _ component (12) -
document
_ children (12) -
document
_ self (12) - documented? (12)
- drb (12)
- each (12)
-
each
_ codepoint (96) - encode (43)
- encode! (24)
- encode64 (12)
-
encode
_ utf7 (12) -
encode
_ www _ form (12) -
encode
_ www _ form _ component (12) - error? (12)
- escape (7)
- form (24)
- hexencode (12)
-
import
_ methods (4) - info? (12)
- kconv (24)
-
last
_ response (12) -
last
_ response _ code (12) - lastresp (12)
- locale= (12)
- name (12)
- new (23)
- new2 (12)
-
os
_ code (12) - parent (12)
-
parent
_ file _ name (12) -
parent
_ name (12) - rake (12)
-
rdoc
/ markdown (12) -
reason
_ phrase (12) - redirect? (12)
-
remove
_ classes _ and _ modules (12) -
remove
_ methods _ etc (12) -
return
_ code (12) -
rexml
/ document (12) - section (12)
-
server
_ error? (12) -
start
_ doc (12) - status (12)
-
stop
_ doc (12) -
strict
_ decode64 (12) -
strict
_ encode64 (12) - success? (12)
-
test
/ unit (12) - typecode (12)
- unescape (7)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) -
url
_ encode (12) -
urlsafe
_ decode64 (12) -
urlsafe
_ encode64 (12) - xlist (12)
- 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...