Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LSM.php

function LSM::__construct

Class constructor

Parameters

array $sequences Allowed characters sequences:

bool $handleEncoding True to handle encoding when matching:

File

vendor/mck89/peast/lib/Peast/Syntax/LSM.php, line 40

Class

LSM
Longest Sequence Matcher. Utility class used by the scanner to consume the longest sequence of character given a set of allowed characters sequences.

Namespace

Peast\Syntax

Code

function __construct($sequences, $handleEncoding = false) {
    $this->handleEncoding = $handleEncoding;
    foreach ($sequences as $s) {
        $this->add($s);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal