るりまサーチ

最速Rubyリファレンスマニュアル検索!
31件ヒット [1-31件を表示] (0.014秒)
トップページ > クエリ:scan[x] > 種類:ライブラリ[x]

別のキーワード

  1. string scan
  2. _builtin scan
  3. c scan
  4. rd scan
  5. ruby scan

キーワード

検索結果

scanf (26017.0)

String#scan のフォーマット指定版といえるメソッド String#scanf を定義します。

...String#scan のフォーマット指定版といえるメソッド String#scanf
を定義します。

組み込みクラス String と IO を拡張します。

=== 例
require 'scanf'

p "a 10 1.2". scanf("%s %d %f") # => ["a", 10, 1.2]
p "a 10 1.2 b 20 1.5e10".scanf("%s %d...
...%f") # => ["a", 10, 1.2]
p "a 10 1.2 b 20 1.5e10".scanf("%s %d %f") {|*v| v}
# => [["a", 10, 1.2], ["b", 20, 15000000000.0]]

p "a 10 1.2 b 20 1.5e10 c".scanf("%s %d %f") {|*v| v}
# => [["a", 10, 1.2], ["b", 20, 15000000000.0], [["c"]]]...
...# [["c"]] (?)

require 'scanf'
p "a, 10, 1.2".scanf("%s,%d,%f")
# => ["a,"] %s が "," を飲み込むからダメらしい

p "a, 10, 1.2".scanf("%1s,%d,%f")
# => ["a", 10, 1.2]

p "a, 10, 1.2".scanf("%[^,],%d,%f")
# => ["a", 10, 1.2]...

strscan (6001.0)

strscan は 文字列を高速にスキャンするためのライブラリです。

...strscan は 文字列を高速にスキャンするためのライブラリです。...

rdoc/parser (19.0)

rdoc で解析できるファイルの種類を追加するためのサブライブラリです。

...成する事で、新しいパーサクラスを作成
する事ができます。

* #initialize(top_level, file_name, body, options, stats)
* #scan

initialize メソッドは以下の引数を受け取ります。

* top_level RDoc::TopLevel オブジェクトを指定します。
* file_name...
...指定します。
* options: RDoc::Options オブジェクトを指定します。
* stats: RDoc::Stats オブジェクトを指定します。

scan
メソッドは引数を受け取りません。処理の後は必ず
RDoc::TopLevel オブジェクトを返す必要があります。

また、...
...きるファイル名のパ
ターンを登録しておく必要があります。

例:

require "rdoc/parser"

class RDoc::Parser::Xyz < RDoc::Parser
parse_files_matching /\.xyz$/

def initialize(file_name, body, options)
...
end

def scan
...
end
end...

xmlrpc (7.0)

XML-RPC を扱うためのライブラリです。

...ions that span
computer languages. Its distinctive feature is its simplicity compared to
other approaches like SOAP and CORBA.

The Ruby standard library package 'xmlrpc' enables you to create a server that
implements remote procedures and a client that calls them. Very little code
is required to...
...Parsers
* NQXML (NQXMLStreamParser, NQXMLTreeParser)
* Expat (XMLStreamParser, XMLTreeParser)
* REXML (REXMLStreamParser)
* xml-scan (XMLScanStreamParser)
* Fastest parser is Expat's XMLStreamParser!

* General
* possible to choose between XMLParser module (Expat wrapper)...