493件ヒット
[1-100件を表示]
(0.134秒)
ライブラリ
クラス
-
ARGF
. class (38) - IO (31)
-
Net
:: FTP (36) -
Net
:: IMAP (12) -
Net
:: IMAP :: ResponseCode (24) -
Net
:: IMAP :: ResponseText (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: OCSP :: BasicResponse (12) -
RDoc
:: CodeObject (120) - String (93)
- StringIO (31)
-
URI
:: FTP (24)
モジュール
-
CGI
:: HtmlExtension (24) - RakeFileUtils (24)
キーワード
- codepoints (52)
- data (12)
-
document
_ children= (12) -
document
_ self= (12) - each (12)
-
each
_ codepoint (96) - form (24)
- kconv (12)
-
last
_ response (12) -
last
_ response _ code (12) - lastresp (12)
- name (12)
- nowrite (12)
- parent (12)
- parent= (12)
-
parent
_ file _ name (12) -
parent
_ name (12) -
remove
_ classes _ and _ modules (12) - section= (12)
-
start
_ doc (12) - status (12)
- typecode (12)
- typecode= (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - verbose (12)
- xlist (12)
検索結果
先頭5件
-
Net
:: IMAP :: ResponseText # code -> Net :: IMAP :: ResponseCode | nil (21302.0) -
レスポンスコードを返します。
...レスポンスコードを返します。
応答がレスポンスコードを含んでいない場合は nil を返します。
@see Net::IMAP::ResponseCode... -
String
# each _ codepoint {|codepoint| block } -> self (12313.0) -
文字列の各コードポイントに対して繰り返します。
...ます。
//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... -
StringIO
# each _ codepoint {|codepoint| . . . } -> self (12301.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
String
# unicode _ normalize(form = :nfc) -> String (12219.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列を返します。
...正規化形式で Unicode 正規化し
た文字列を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではな......い場合
に発生します。
このメソッドでの "Unicode 文字列" とは、UTF-8、UTF-16BE/LE、
UTF-32BE/LE だけではなく GB18030、UCS_2BE、and UCS_4BE を含みます。
また、self が UTF-8 以外のエンコーディングであった......。
//emlist[例][ruby]{
"a\u0300".unicode_normalize # => 'à' ("\u00E0" と同じ)
"a\u0300".unicode_normalize(:nfc) # => 'à' ("\u00E0" と同じ)
"\u00E0".unicode_normalize(:nfd) # => 'à' ("a\u0300" と同じ)
"\xE0".force_encoding('ISO-8859-1').unicode_normalize(:nfd)... -
String
# each _ codepoint -> Enumerator (12213.0) -
文字列の各コードポイントに対して繰り返します。
...ます。
//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
# unicode _ normalize!(form = :nfc) -> self (12213.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列に置き換えます。
...icode 正規化し
た文字列に置き換えます。
(gsub!などと異なり)変換が行なわれなくても self を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@rai......se Encoding::CompatibilityError self が Unicode 文字列ではない場合
に発生します。
//emlist[例][ruby]{
text = "a\u0300"
text.unicode_normalize!(:nfc)
text == "\u00E0" # => true
text.unicode_normalize!(:nfd)
text == "a\u0300"......# => true
//}
@see String#unicode_normalize, String#unicode_normalized?... -
String
# unicode _ normalized?(form = :nfc) -> bool (12213.0) -
self が引数 form で指定された正規化形式で Unicode 正規化された文字列か どうかを返します。
...形式で Unicode 正規化された文字列か
どうかを返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列で......す。
//emlist[例][ruby]{
"a\u0300".unicode_normalized? # => false
"a\u0300".unicode_normalized?(:nfd) # => true
"\u00E0".unicode_normalized? # => true
"\u00E0".unicode_normalized?(:nfd) # => false
"\xE0".force_encoding('ISO-8859-1').unicode_normalized?......# => Encoding::CompatibilityError raised
//}
@see String#unicode_normalize, String#unicode_normalize!... -
Net
:: FTP # last _ response _ code -> String (12202.0) -
サーバからの最後の応答のコードを文字列で返します。
...サーバからの最後の応答のコードを文字列で返します。
例えばログイン(Net::FTP#login)に成功した場合には
"230" を返します。
数字の意味は 959 参照してください。
@see Net::FTP#last_response... -
ARGF
. class # each _ codepoint -> Enumerator (12201.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...した場合には、Enumerator を返します。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoint{|e|print e, ","} # => 10... -
ARGF
. class # each _ codepoint { |c| . . . } -> self (12201.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...した場合には、Enumerator を返します。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoint{|e|print e, ","} # => 10...