module RegexpPropertyValues::Value::ExtAdapter

Public Instance Methods

matched_characters() click to toggle source
# File lib/regexp_property_values/value/ext_adapter.rb, line 4
def matched_characters
  matched_codepoints.map { |cp| cp.chr('utf-8') }
end
matched_codepoints() click to toggle source
# File lib/regexp_property_values/value/ext_adapter.rb, line 8
def matched_codepoints
  matched_ranges.flat_map(&:to_a)
end
matched_ranges() click to toggle source
# File lib/regexp_property_values/value/ext_adapter.rb, line 12
def matched_ranges
  OnigRegexpPropertyHelper.matched_ranges(name)
rescue ArgumentError
  raise_unsupported_or_unknown_error
end