PREG_CLASS_CJK

Same name in other branches
  1. 7.x modules/search/search.module \PREG_CLASS_CJK
  2. 8.9.x core/modules/search/search.module \PREG_CLASS_CJK

Matches CJK (Chinese, Japanese, Korean) letter-like characters.

This list is derived from the "East Asian Scripts" section of http://www.unicode.org/charts/index.html, as well as a comment on http://unicode.org/reports/tr11/tr11-11.html listing some character ranges that are reserved for additional CJK ideographs.

The character ranges do not include numbers, punctuation, or symbols, since these are handled separately in search. Note that radicals and strokes are considered symbols. (See http://www.unicode.org/Public/UNIDATA/extracted/DerivedGeneralCategory…)

Deprecated

in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\search\SearchTextProcessorInterface::PREG_CLASS_CJK instead.

See also

https://www.drupal.org/node/3078162

1 use of PREG_CLASS_CJK
search_excerpt in core/modules/search/search.module
Returns snippets from a piece of text, with search keywords highlighted.

File

core/modules/search/search.module, line 54

Code

define('PREG_CLASS_CJK', SearchTextProcessorInterface::PREG_CLASS_CJK);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.