module XMLScan::XMLScanner::OptRegexp
Constants
- RE_ENCODINGS
- RE_ENCODING_OPTIONS
- UTFSTR
Private Instance Methods
opt_regexp(re)
click to toggle source
# File lib/xmlscan/scanner.rb 518 def opt_regexp(re) 519 h = {} 520 RE_ENCODING_OPTIONS.each { |k,opt| 521 h[k] = Regexp.new(re.encode(RE_ENCODINGS[k]), opt) 522 } 523 h.default = Regexp.new(re) 524 h 525 end