Automattic\WooCommerce\Vendor\GraphQL\Language

Lexer::moveStringCursorprivateWC 1.0

Moves internal string cursor position.

Method of the class: Lexer{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->moveStringCursor( $positionOffset, $byteStreamOffset ): self;
$positionOffset(int) (required)
.
$byteStreamOffset(int) (required)
.

Lexer::moveStringCursor() code WC 10.9.1

private function moveStringCursor(int $positionOffset, int $byteStreamOffset): self
{
    $this->position += $positionOffset;
    $this->byteStreamPosition += $byteStreamOffset;

    return $this;
}