Function __global->lex__get_next_chars

Definitions

sources/webstandards_js_lex.php

  • Get the next characters while lexing.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$i integer No No required parameter N/A N/A Get character at this position
$num integer No No required parameter N/A N/A How many to get

Returns

  • Get triplet about the next character (whether end reached, new position, characters)
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the next characters while lexing.
 *
 * @param  integer $i Get character at this position
 * @param  integer $num How many to get
 * @return array Get triplet about the next character (whether end reached, new position, characters)
 */

function lex__get_next_chars(int $i, int $num) : array