Same name and namespace in other branches
  1. 5.x modules/search/search.module \PREG_CLASS_CJK
  2. 6.x modules/search/search.module \PREG_CLASS_CJK
  3. 7.x modules/search/search.module \PREG_CLASS_CJK
  4. 8.9.x core/modules/search/search.module \PREG_CLASS_CJK
  5. 9 core/modules/search/search.module \PREG_CLASS_CJK

Matches all CJK characters that are candidates for auto-splitting (Chinese, Japanese, Korean). Contains kana and BMP ideographs.

2 uses of PREG_CLASS_CJK
search_excerpt in modules/search.module
Returns snippets from a piece of text, with certain keywords highlighted. Used for formatting search results.
search_simplify in modules/search.module
Simplifies a string according to indexing rules.

File

modules/search.module, line 89
Enables site-wide keyword searching.

Code

define('PREG_CLASS_CJK', '\\x{3041}-\\x{30ff}\\x{31f0}-\\x{31ff}\\x{3400}-\\x{4db5}' . '\\x{4e00}-\\x{9fbb}\\x{f900}-\\x{fad9}');