class Regexp::Expression::UnicodeProperty::Base
Public Instance Methods
Source
# File lib/regexp_parser/expression/classes/unicode_property.rb, line 9 def name text[/\A\\[pP]\{([^}]+)\}\z/, 1] end
Source
# File lib/regexp_parser/expression/classes/unicode_property.rb, line 5 def negative? type == :nonproperty end
Source
# File lib/regexp_parser/expression/classes/unicode_property.rb, line 13 def shortcut (Regexp::Scanner.short_prop_map.rassoc(token.to_s) || []).first end