deps/v8/src/string.js
// Compute the string of a given regular expression capture.
Compute the string of a given regular expression capture.
Compute the string of a given regular expression capture .
function CaptureString(string, lastCaptureInfo, index) {
  var scaled = index << 1;
  var start = lastCaptureInfo[CAPTURE(scaled)];
  if (start < 0) return;
  var end = lastCaptureInfo[CAPTURE(scaled + 1)];
  return SubString(string, start, end);
}
function CaptureString ( string , lastCaptureInfo , index ) { var scaled = index << 1 ; var start = lastCaptureInfo [ CAPTURE ( scaled ) ] ; if ( start < 0 ) return ; var end = lastCaptureInfo [ CAPTURE ( scaled + 1 ) ] ; return SubString ( string , start , end ) ; }
Compute the string of a given regular expression capture.
Compute the string of a given regular expression capture .
// Scale the index. // Compute start and end. // If start isn't valid, return undefined.