Fix gmatch for pass testsuites #9
10
.cvsignore → .gitignore
vendored
10
.cvsignore → .gitignore
vendored
@@ -1,8 +1,8 @@
|
|||||||
bin
|
bin/
|
||||||
target
|
target/
|
||||||
build
|
build/
|
||||||
lib
|
lib/
|
||||||
jit
|
jit/
|
||||||
*.ser
|
*.ser
|
||||||
*.gz
|
*.gz
|
||||||
*.jar
|
*.jar
|
||||||
@@ -1,21 +1,18 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
# This is a fork!
|
||||||
<html>
|
<div style="border: 1px dotted red; margin: 1.em 0.5em; font-weight: bold; color: red;">
|
||||||
|
This repository has been forked from the original CVS sources of Luaj.
|
||||||
|
The commit history has been converted to make sure that the original work of
|
||||||
|
James Roseborough and Ian Farmer is not lost.
|
||||||
|
Unfortunately, I was not able to contact either James or Ian to hand over
|
||||||
|
ownership of the Github organization/repo as I have originally intended to.
|
||||||
|
The community however seems interested enough to continue work on the original
|
||||||
|
sources and therefore I have decided to make sure that any useful pull requests
|
||||||
|
that may add some value to the original code base shall be merged in from now
|
||||||
|
on.<br>
|
||||||
|
-- Benjamin P. Jung, Jan. 26th 2018
|
||||||
|
</div>
|
||||||
|
|
||||||
<head>
|
<h1>Getting Started with LuaJ</h1>
|
||||||
<title>Getting Started with LuaJ</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="http://www.lua.org/lua.css">
|
|
||||||
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
<h1>
|
|
||||||
<a href="README.html"><img src="http://sourceforge.net/dbimage.php?id=196139" alt="" border="0"></a>
|
|
||||||
|
|
||||||
Getting Started with LuaJ
|
|
||||||
|
|
||||||
</h1>
|
|
||||||
James Roseborough, Ian Farmer, Version 3.0.1
|
James Roseborough, Ian Farmer, Version 3.0.1
|
||||||
<p>
|
<p>
|
||||||
<small>
|
<small>
|
||||||
@@ -525,12 +525,13 @@ public class StringLib extends TwoArgFunction {
|
|||||||
this.soffset = 0;
|
this.soffset = 0;
|
||||||
}
|
}
|
||||||
public Varargs invoke(Varargs args) {
|
public Varargs invoke(Varargs args) {
|
||||||
for ( ; soffset<srclen; soffset++ ) {
|
for ( ; soffset<=srclen; soffset++ ) {
|
||||||
ms.reset();
|
ms.reset();
|
||||||
int res = ms.match(soffset, 0);
|
int res = ms.match(soffset, 0);
|
||||||
if ( res >=0 ) {
|
if ( res >=0 ) {
|
||||||
int soff = soffset;
|
int soff = soffset;
|
||||||
soffset = res;
|
soffset = res;
|
||||||
|
if (soff == res) soffset++; /* empty match? go at least one position */
|
||||||
return ms.push_captures( true, soff, res );
|
return ms.push_captures( true, soff, res );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user