Permalink
Browse files

Add a !cursor_pos, for explicitly setting pos.

  • Loading branch information...
1 parent 77c0c7d commit d27844eb8dfcd549ce4d1aacbf3180150180f4f7 @jnthn jnthn committed Nov 3, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/QRegex/Cursor.nqp
@@ -152,6 +152,10 @@ role NQPCursorRole is export {
$!bstack := nqp::null();
$!pos := -3;
}
+
+ method !cursor_pos(int $pos) {
+ $!pos := $pos;
+ }
method !cursor_next() {
if nqp::defined($!restart) {

0 comments on commit d27844e

Please sign in to comment.