ライブラリ
- ビルトイン (82)
- benchmark (33)
-
cgi
/ html (88) - date (11)
- fiddle (11)
- ipaddr (11)
-
irb
/ context (11) - logger (55)
-
net
/ http (11) -
net
/ imap (22) -
rexml
/ document (33) -
rubygems
/ commands / help _ command (11) -
rubygems
/ defaults (11) -
rubygems
/ format (11) -
rubygems
/ installer (22) -
rubygems
/ old _ format (11) -
rubygems
/ package / tar _ header (22) -
rubygems
/ platform (66) -
rubygems
/ specification (22) - scanf (132)
- stringio (11)
-
syslog
/ logger (11) - uri (72)
-
webrick
/ accesslog (66) -
webrick
/ httprequest (11) -
webrick
/ httputils (66) -
webrick
/ log (22)
クラス
-
Benchmark
:: Tms (22) - Date (11)
-
Gem
:: Commands :: HelpCommand (11) -
Gem
:: Format (11) -
Gem
:: Installer (22) -
Gem
:: OldFormat (11) -
Gem
:: Package :: TarHeader (22) -
Gem
:: Platform (66) -
Gem
:: Specification (22) - IO (12)
- IPAddr (11)
-
IRB
:: Context (11) - Logger (22)
-
Logger
:: Formatter (33) -
Net
:: IMAP (22) - Object (11)
-
RDoc
:: Options (11) -
Scanf
:: FormatSpecifier (12) -
Scanf
:: FormatString (78) - String (50)
- StringIO (11)
-
Syslog
:: Logger :: Formatter (11) - Time (11)
-
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPUtils :: FormData (66) -
WEBrick
:: Log (22)
モジュール
- Benchmark (11)
-
CGI
:: HtmlExtension (88) - Fiddle (11)
- Gem (11)
- Kernel (34)
-
Net
:: HTTPHeader (11) - URI (72)
-
WEBrick
:: AccessLog (66)
キーワード
-
AGENT
_ LOG _ FORMAT (11) -
BUILD
_ RUBY _ PLATFORM (11) -
CLF
_ TIME _ FORMAT (11) -
COMBINED
_ LOG _ FORMAT (11) -
COMMON
_ LOG _ FORMAT (11) - CURRENT (11)
- Default (11)
- FORMAT (22)
- Format (11)
- FormatString (6)
- IN6FORMAT (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
PACK
_ FORMAT (11) - PLATFORMS (11)
- Pretty (11)
-
REFERER
_ LOG _ FORMAT (11) - REGEX (6)
- RUBY (11)
-
RUBY
_ PLATFORM (11) - SPECIFIERS (6)
- Transitive (11)
-
UNPACK
_ FORMAT (11) - [] (11)
- call (22)
- cgi (11)
-
content
_ type (11) - cpu (11)
-
datetime
_ format (22) - decode (7)
-
decode
_ www _ form (11) -
decode
_ www _ form _ component (11) -
default
_ exec _ format (11) - encode (7)
-
encode
_ www _ form (11) -
encode
_ www _ form _ component (11) - escape (7)
-
exec
_ format (11) - filename (11)
- filename= (11)
- format (33)
-
format
_ date (11) -
format
_ datetime (11) -
formatted
_ program _ filename (11) - formatter (11)
-
gem
_ path (22) -
image
_ format (11) -
last
_ match _ tried (6) -
last
_ spec (6) -
last
_ spec _ tried (6) - match (6)
-
matched
_ count (6) -
matched
_ string (6) -
multipart
_ form (44) - name (11)
- name= (11)
-
net
/ smtp (11) - new (6)
-
original
_ platform (11) - os (11)
- platform (11)
- printf (11)
- prune (6)
- query (11)
-
re
_ string (6) -
return
_ format (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) - scanf (36)
- space (6)
-
spec
_ count (6) - sprintf (11)
- sprintf フォーマット (11)
- strftime (22)
-
string
_ left (6) -
time
_ format (11) -
time
_ format= (11) -
to
_ s (28) - unescape (7)
-
unicode
_ normalize (10) -
unicode
_ normalize! (10) -
unicode
_ normalized? (10) - unpack1 (8)
- version (11)
- 正規表現 (11)
検索結果
先頭5件
-
String
# unicode _ normalize(form = :nfc) -> String (21220.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列を返します。
...self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し
た文字列を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::Comp......# => 'à' ("\u00E0" と同じ)
"\u00E0".unicode_normalize(:nfd) # => 'à' ("a\u0300" と同じ)
"\xE0".force_encoding('ISO-8859-1').unicode_normalize(:nfd)
# => Encoding::CompatibilityError raised
//}
@see String#unicode_normalize!, String#unicode_normalized?... -
String
# unicode _ normalized?(form = :nfc) -> bool (21135.0) -
self が引数 form で指定された正規化形式で Unicode 正規化された文字列か どうかを返します。
...self が引数 form で指定された正規化形式で Unicode 正規化された文字列か
どうかを返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::Co......=> 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!... -
String
# unicode _ normalize!(form = :nfc) -> self (21119.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列に置き換えます。
...nicode 正規化し
た文字列に置き換えます。
(gsub!などと異なり)変換が行なわれなくても self を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@ra......に発生します。
//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
# scanf(format) -> Array (21112.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def......, 144]]
formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。
require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%s%d") { |s, n| [s, n] }
p ret #=> [["123", nil], ["abc", 456], ["def", nil]]
@param format ス......ットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
使用例:
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
===[a:format] scanfフォーマット文字列
文字 '%' と(s,d のよう... -
String
# scanf(format) {|*ary| . . . } -> Array (21112.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def......, 144]]
formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。
require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%s%d") { |s, n| [s, n] }
p ret #=> [["123", nil], ["abc", 456], ["def", nil]]
@param format ス......ットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
使用例:
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
===[a:format] scanfフォーマット文字列
文字 '%' と(s,d のよう... -
String
# unpack1(format) -> object (21106.0) -
formatにしたがって文字列をデコードし、展開された1つ目の値を返します。 unpackは配列を返しますがunpack1は配列の1つ目の要素のみを返します。
...
formatにしたがって文字列をデコードし、展開された1つ目の値を返します。
unpackは配列を返しますがunpack1は配列の1つ目の要素のみを返します。
//emlist[例][ruby]{
"ABC".unpack1("C*") # => 65
"ABC".unpack("C*") # => [65, 66, 67]
//}
@see String#... -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") -> String (18447.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
...
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI ス......-www-form-urlencoded" です。
例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
form("get"){ "string" }
# <FORM METHOD="get" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
form("get", "url"){ "string" }
# <FORM MET......HOD="get" ACTION="url" ENCTYPE="application/x-www-form-urlencoded">string</FORM>... -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") { . . . } -> String (18447.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
...
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI ス......-www-form-urlencoded" です。
例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
form("get"){ "string" }
# <FORM METHOD="get" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
form("get", "url"){ "string" }
# <FORM MET......HOD="get" ACTION="url" ENCTYPE="application/x-www-form-urlencoded">string</FORM>... -
CGI
:: HtmlExtension # form(attributes) -> String (18282.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
...
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
form({"METHOD" => "post", ENCTYPE => "enctype"}){ "string" }
# <FORM METHOD="post" ENCTYPE="enctype">......string</FORM>
@see CGI::HtmlExtension#multipart_form... -
CGI
:: HtmlExtension # form(attributes) { . . . } -> String (18282.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
...
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
form({"METHOD" => "post", ENCTYPE => "enctype"}){ "string" }
# <FORM METHOD="post" ENCTYPE="enctype">......string</FORM>
@see CGI::HtmlExtension#multipart_form... -
Scanf
:: FormatString # string _ left (12101.0) -
@todo
@todo