Skip to content

Instantly share code, notes, and snippets.

@ionoy
Created February 28, 2017 17:23
Show Gist options
  • Save ionoy/d3a25be12823691fe0aedd28522edaef to your computer and use it in GitHub Desktop.
Save ionoy/d3a25be12823691fe0aedd28522edaef to your computer and use it in GitHub Desktop.
[CompileStatistic("RegularRuleParser")]
public static int _#_NotEscs_(int pos, string text)
{
int okPos = -1;
if (pos < text.Length)
{
int curPos = pos + 1;
while (true)
{
okPos = curPos;
if (curPos >= text.Length)
{
break;
}
curPos++;
}
}
return okPos;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment