unicode.script

Narrows down the search for sets of $(CODEPOINTS) to all Unicode scripts.

See the table of properties for available sets.

struct unicode
struct script {}

Examples

auto arabicScript = unicode.script.arabic;
auto arabicBlock = unicode.block.arabic;
// there is an intersection between script and block
assert(arabicBlock['؁']);
assert(arabicScript['؁']);
// but they are different
assert(arabicBlock != arabicScript);
assert(arabicBlock == unicode.inArabic);
assert(arabicScript == unicode.arabic);

Meta