Skip to content

Instantly share code, notes, and snippets.

@zdi-team
Created December 18, 2021 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdi-team/5407d3efb431e0ccd5f62544e43d6da3 to your computer and use it in GitHub Desktop.
Save zdi-team/5407d3efb431e0ccd5f62544e43d6da3 to your computer and use it in GitHub Desktop.
// found variable end marker
if (nestedVarCount == 0) {
String varNameExpr = new String(chars, startPos + startMatchLen, pos - startPos - startMatchLen);
if (substitutionInVariablesEnabled) {
final StringBuilder bufName = new StringBuilder(varNameExpr);
substitute(event, bufName, 0, bufName.length());
varNameExpr = bufName.toString();
}
pos += endMatchLen;
final int endPos = pos;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment