Object
# File lib/geo_ruby/simple_features/ewkt_parser.rb, line 293 def initialize(ewkt) @ewkt = ewkt @scanner = StringScanner.new(ewkt) @regex = /\s*([\w.-]+)s*/ end
# File lib/geo_ruby/simple_features/ewkt_parser.rb, line 316 def check_next_token check = @scanner.check(@regex) if check.nil? if @scanner.eos? nil else pos = @scanner.pos while @ewkt[pos].chr == ' ' pos+=1 end @ewkt[pos].chr end else check end end
# File lib/geo_ruby/simple_features/ewkt_parser.rb, line 299 def get_next_token if @scanner.scan(@regex).nil? if @scanner.eos? nil else ch = @scanner.getch while ch == ' ' ch = @scanner.getch end ch end else @scanner[1] end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.