249件ヒット
[1-100件を表示]
(0.095秒)
別のキーワード
ライブラリ
- ビルトイン (33)
- matrix (36)
-
rdoc
/ context (72) -
rdoc
/ text (12) -
rdoc
/ top _ level (24) -
rexml
/ document (24) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ specification (12) - uri (24)
クラス
-
Gem
:: RemoteFetcher (12) -
Gem
:: Specification (12) -
RDoc
:: Context (72) -
RDoc
:: TopLevel (24) -
REXML
:: Entity (24) - String (33)
-
URI
:: Generic (24) - Vector (36)
モジュール
-
RDoc
:: Text (12)
キーワード
-
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ module (12) - classes (12)
-
each
_ classmodule (12) -
find
_ enclosing _ module _ named (12) -
find
_ local _ symbol (12) - magnitude (12)
- normalize (24)
- normalize! (12)
-
normalize
_ comment (12) -
normalize
_ uri (12) - normalized (12)
- r (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - unnormalized (12)
検索結果
先頭5件
-
Vector
# norm -> Float (18114.0) -
ベクトルの大きさ(ノルム)を返します。
...ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize... -
Gem
:: RemoteFetcher # normalize _ uri(uri) -> String (9201.0) -
URI のスキーム部分が欠けている場合に "http://" を補って返します。
URI のスキーム部分が欠けている場合に "http://" を補って返します。
@param uri URI 文字列を指定します。 -
Gem
:: Specification # normalize -> [String] (9201.0) -
この Gem パッケージの含まれるファイルリストから重複を取り除きます。
...この Gem パッケージの含まれるファイルリストから重複を取り除きます。... -
String
# unicode _ normalize(form = :nfc) -> String (9201.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列を返します。
...なります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合
に発生します。
このメソッドでの "Unicode 文字列" とは、UTF-8、UTF-16BE/LE、
UTF-32BE/LE だけではなく GB18030、UCS_2BE、and UCS_4BE を......icode_normalize # => 'à' ("\u00E0" と同じ)
"a\u0300".unicode_normalize(:nfc) # => 'à' ("\u00E0" と同じ)
"\u00E0".unicode_normalize(:nfd) # => 'à' ("a\u0300" と同じ)
"\xE0".force_encoding('ISO-8859-1').unicode_normalize(:nfd)
# => Encoding::Com......patibilityError raised
//}
@see String#unicode_normalize!, String#unicode_normalized?... -
URI
:: Generic # normalize -> URI :: Generic (9201.0) -
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。
...します。ホスト名を小文字にし、パスと
構成要素がなければ '/' をセットします。
例:
require 'uri'
u = URI.parse('http://Example.Com')
p u.to_s #=> "http://Example.Com"
p u.normalize.to_s #=> "http://example.com/"... -
URI
:: Generic # normalize! -> String | nil (9201.0) -
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。
...します。ホスト名を小文字にし、パスと
構成要素がなければ '/' をセットします。
例:
require 'uri'
u = URI.parse('http://Example.Com')
p u.to_s #=> "http://Example.Com"
p u.normalize.to_s #=> "http://example.com/"... -
String
# unicode _ normalize!(form = :nfc) -> self (9101.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列に置き換えます。
...置き換えます。
(gsub!などと異なり)変換が行なわれなくても self を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError se......に発生します。
//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 (9101.0) -
self が引数 form で指定された正規化形式で Unicode 正規化された文字列か どうかを返します。
...。
@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!... -
RDoc
:: Context # find _ enclosing _ module _ named(name) -> RDoc :: NormalModule | nil (6201.0) -
find a module at a higher scope
...find a module at a higher scope...