You are here

class Pi in Search API 8

Represents characters of the category "Pi" ("Punctuation, Initial quote").

Hierarchy

Expanded class hierarchy of Pi

3 string references to 'Pi'
IgnoreCharacters::defaultConfiguration in src/Plugin/search_api/processor/IgnoreCharacters.php
Gets default configuration for this plugin.
IgnoreCharacterTest::ignoreCharacterSetsDataProvider in tests/src/Unit/Processor/IgnoreCharacterTest.php
Data provider for testValueConfiguration().
ProcessorIntegrationTest::checkIgnoreCharactersIntegration in tests/src/Functional/ProcessorIntegrationTest.php
Tests the UI for the "Ignore characters" processor.

File

src/Plugin/search_api/processor/Resources/Pi.php, line 8

Namespace

Drupal\search_api\Plugin\search_api\processor\Resources
View source
class Pi implements UnicodeCharacterPropertyInterface {

  /**
   * {@inheritdoc}
   */
  public static function getRegularExpression() {

    // phpcs:disable
    return '\\x{00AB}\\x{2018}\\x{201B}\\x{201C}\\x{201F}\\x{2039}\\x{2E02}' . '\\x{2E04}\\x{2E09}\\x{2E0C}\\x{2E1C}\\x{2E20}';

    // phpcs:enable
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Pi::getRegularExpression public static function Returns a regular expression matching this character class. Overrides UnicodeCharacterPropertyInterface::getRegularExpression