aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/pcre/pcre_internal.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2019-06-25 16:13:04 +0200
committerGitHub <[email protected]>2019-06-25 16:13:04 +0200
commit1e9655cc7e51f3b043162fa7883228768bc5e9fb (patch)
tree95c05a26a21111c965a989db7934c9c989af741a /erts/emulator/pcre/pcre_internal.h
parent09abac433a59f0644316a54f61ade7132db673d1 (diff)
parent413d6d694eaf7530fd10bdc4dcafa4c7efa24e3e (diff)
downloadotp-1e9655cc7e51f3b043162fa7883228768bc5e9fb.tar.gz
otp-1e9655cc7e51f3b043162fa7883228768bc5e9fb.tar.bz2
otp-1e9655cc7e51f3b043162fa7883228768bc5e9fb.zip
Merge pull request #2250 from rickard-green/rickard/re-unicode-validation/OTP-15831/OTP-15836/ERL-876
re unicode validation
Diffstat (limited to 'erts/emulator/pcre/pcre_internal.h')
-rw-r--r--erts/emulator/pcre/pcre_internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/erts/emulator/pcre/pcre_internal.h b/erts/emulator/pcre/pcre_internal.h
index c84dcb5a38..71f473e86f 100644
--- a/erts/emulator/pcre/pcre_internal.h
+++ b/erts/emulator/pcre/pcre_internal.h
@@ -2756,6 +2756,17 @@ extern int PRIV(strcmp_uc_c8_utf)(const pcre_uchar *,
#endif /* COMPILE_PCRE[8|16|32] */
+#if defined(ERLANG_INTEGRATION)
+struct PRIV(valid_utf_ystate) {
+ unsigned int cnt;
+ int length;
+ int yielded;
+ PCRE_PUCHAR p;
+};
+extern int PRIV(yielding_valid_utf)(PCRE_PUCHAR, int, int *,
+ struct PRIV(valid_utf_ystate) *);
+#endif
+
extern const pcre_uchar *PRIV(find_bracket)(const pcre_uchar *, BOOL, int);
extern BOOL PRIV(is_newline)(PCRE_PUCHAR, int, PCRE_PUCHAR,
int *, BOOL);