You are here

class Pd in Search API 8

Represents characters of the Unicode category "Pd" ("Punctuation, Dash").

Hierarchy

Expanded class hierarchy of Pd

3 string references to 'Pd'
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/Pd.php, line 8

Namespace

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

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

    // phpcs:disable
    return '\\x{002D}\\x{058A}\\x{05BE}\\x{1400}\\x{1806}\\x{2010}\\x{2011}' . '\\x{2012}\\x{2013}\\x{2014}\\x{2015}\\x{2E17}\\x{2E1A}\\x{2E3A}' . '\\x{2E3B}\\x{301C}\\x{3030}\\x{30A0}\\x{FE31}\\x{FE32}\\x{FE58}' . '\\x{FE63}\\x{FF0D}';

    // phpcs:enable
  }

}

Members

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