|Subject:||Expose regexp-related PPI::Token::_QuoteEngine::Full goodies to the world|
There are some goodies in the internals of PPI::Token::_QuoteEngine::Full that would be of considerable interest to (at least) people interested in taking regular expressions apart. What I propose is adding some private routines to PPI::Token::_QuoteEngine::Full to return the content of a given string section, the modifiers hash, and an array of the delimiters used. The proposal also adds public methods to PPI::Token::Regexp and PPI::Token::QuoteLike::Regexp to wrap these private methods in something civilized. The proposed private methods on the quote engine are _section_content($inx), _modifiers(), and _delimiters(). The proposed public methods that wrap these are get_match_string(), get_substitute_string(), get_modifiers(), and get_delimiters(). I have no particularly strong desire to advocate for the proposed names - you may not like the "get_" convention, in which case please go with what works. The proposed enhancement is committed as svn revision 9985.