You are here

class Pc in Search API 8

Represents characters of the category "Pc" ("Punctuation, Connector").

Hierarchy

Expanded class hierarchy of Pc

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

Namespace

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

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

    // phpcs:disable
    return '\\x{005F}\\x{203F}\\x{2040}\\x{2054}\\x{FE33}\\x{FE34}\\x{FE4D}' . '\\x{FE4E}\\x{FE4F}\\x{FF3F}';

    // phpcs:enable
  }

}

Members

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