diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-04-30 15:09:03 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-04-30 15:09:03 +0200 |
| commit | 824736d271ca7e545ed7cf42f20ba34fb2b73def (patch) | |
| tree | 34d4d9d88c96fd0a7f0b23c858cbd195db073789 /thirdparty/pcre2/src/pcre2_match_data.c | |
| parent | d29514accef09ba0402cdbb87ec5f5e773a48bbc (diff) | |
| download | redot-engine-824736d271ca7e545ed7cf42f20ba34fb2b73def.tar.gz | |
pcre2: Update to upstream version 10.34
Changelog: https://vcs.pcre.org/pcre2/code/tags/pcre2-10.34/ChangeLog?view=markup
Diffstat (limited to 'thirdparty/pcre2/src/pcre2_match_data.c')
| -rw-r--r-- | thirdparty/pcre2/src/pcre2_match_data.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/thirdparty/pcre2/src/pcre2_match_data.c b/thirdparty/pcre2/src/pcre2_match_data.c index ccc5f6740e..53e4698707 100644 --- a/thirdparty/pcre2/src/pcre2_match_data.c +++ b/thirdparty/pcre2/src/pcre2_match_data.c @@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel Original API code Copyright (c) 1997-2012 University of Cambridge - New API code Copyright (c) 2016-2018 University of Cambridge + New API code Copyright (c) 2016-2019 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -150,4 +150,17 @@ pcre2_get_startchar(pcre2_match_data *match_data) return match_data->startchar; } + + +/************************************************* +* Get size of match data block * +*************************************************/ + +PCRE2_EXP_DEFN PCRE2_SIZE PCRE2_CALL_CONVENTION +pcre2_get_match_data_size(pcre2_match_data *match_data) +{ +return offsetof(pcre2_match_data, ovector) + + 2 * (match_data->oveccount) * sizeof(PCRE2_SIZE); +} + /* End of pcre2_match_data.c */ |
