mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Update defn of class [:punct:] for PCRE 8.38
This commit is contained in:
parent
25a01e1c3c
commit
f9b7e806b1
@ -129,13 +129,9 @@ CodePointSet getPredefinedCodePointSet(PredefinedClass c,
|
||||
case CLASS_XPUNCT: {
|
||||
// Everything with the P (punctuation) property, plus code points in S
|
||||
// (symbols) that are < 128.
|
||||
// NOTE: PCRE versions 8.37 and earlier erroneously use 256 as the
|
||||
// cut-off here, so we are compatible with that for now. PCRE bug #1718
|
||||
// tracks this; once PCRE 8.38 is released we should correct this
|
||||
// behaviour.
|
||||
CodePointSet rv = getUcpP();
|
||||
CodePointSet symbols = getUcpS();
|
||||
symbols.unsetRange(256, MAX_UNICODE);
|
||||
symbols.unsetRange(128, MAX_UNICODE);
|
||||
rv |= symbols;
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user