constant PREG_CLASS_CJK in Drupal 9
Same name and namespace in other branches
- 8 core/modules/search/search.module \PREG_CLASS_CJK
- 4 modules/search.module \PREG_CLASS_CJK
- 5 modules/search/search.module \PREG_CLASS_CJK
- 6 modules/search/search.module \PREG_CLASS_CJK
- 7 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.txt)
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 - Enables site-wide keyword searching.
Code
define('PREG_CLASS_CJK', SearchTextProcessorInterface::PREG_CLASS_CJK);