summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-04-11 13:05:08 -0600
committerKarl Williamson <khw@cpan.org>2018-04-20 01:11:53 -0600
commit2cdbf8d9c7a9b6f7640617efa7e5d24c9bedb9f2 (patch)
tree9a7e7d3e9b12b56559cc841a55e42b57be87ed33 /embed.fnc
parent2d74dcf2f3a03c7d1ea8f589d476186ceea6a76a (diff)
downloadperl-2cdbf8d9c7a9b6f7640617efa7e5d24c9bedb9f2.tar.gz
Set up initial \p{} parse function.
This function will parse the interior of \p{} Unicode property names in regular expression patterns. The design of this function will be to return NULL on the properties it cannot handle; otherwise it returns an inversion list representing the property it did find. The current mechanism will be used to handle the cases where this function returns NULL. This initial state is just to have the function return NULL always, so the existing mechanism is always used. A later commit will add the functionality in 5.28 that bypasses the existing mechanism.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc4
1 files changed, 4 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index 7973d65bef..454a380e4c 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -768,6 +768,10 @@ AMp |UV |to_uni_title |UV c|NN U8 *p|NN STRLEN *lenp
AbDMpR |bool |isIDFIRST_lazy |NN const char* p
AbDMpR |bool |isALNUM_lazy |NN const char* p
p |void |init_uniprops
+EpX |SV * |parse_uniprop_string|NN const char * const name \
+ |const Size_t len \
+ |const bool to_fold \
+ |NN bool * invert
#ifdef PERL_IN_UTF8_C
snR |U8 |to_lower_latin1|const U8 c|NULLOK U8 *p|NULLOK STRLEN *lenp \
|const char dummy