File: strscan.rb

package info (click to toggle)
libstrscan-ruby 0.6.5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 156 kB
  • ctags: 201
  • sloc: ruby: 865; ansic: 524; makefile: 57
file content (21 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# strscan.rb
#
#   Copyright (c) 2000,2001 Minero Aoki <aamine@loveruby.net>
#
#   This program is free software.
#   You can distribute/modify this program under the terms of
#   the GNU General Public License version 2 or later.
#

unless defined? ScanError then
  class ScanError < StandardError; end
end

require 'rscan.rb'
begin
  require 'cscan.so'
  StringScanner = StringScanner_C
rescue LoadError
  StringScanner = StringScanner_R
end