From c11ff9433950cda8448b773418d1cb2592eea29d Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 17 Feb 2011 14:43:10 -0700 Subject: handy.h: isIDFIRST_utf8() changed to use XIDStart Previously this used a home-grown definition of an identifier start, stemming from a bug in some early Unicode versions. This led to some problems, fixed by #74022. But the home-grown solution did not track Unicode, and allowed for characters, like marks, to begin words when they shouldn't. This change brings this macro into compliance with Unicode going-forward. --- embed.fnc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'embed.fnc') diff --git a/embed.fnc b/embed.fnc index b1f2334819..8663b212fd 100644 --- a/embed.fnc +++ b/embed.fnc @@ -583,7 +583,9 @@ Anpdmb |bool |is_utf8_string_loc|NN const U8 *s|STRLEN len|NULLOK const U8 **p Anpd |bool |is_utf8_string_loclen|NN const U8 *s|STRLEN len|NULLOK const U8 **ep|NULLOK STRLEN *el ApR |bool |is_utf8_alnum |NN const U8 *p ApR |bool |is_utf8_idfirst|NN const U8 *p +ApR |bool |is_utf8_xidfirst|NN const U8 *p ApR |bool |is_utf8_idcont |NN const U8 *p +ApR |bool |is_utf8_xidcont |NN const U8 *p ApR |bool |is_utf8_alpha |NN const U8 *p ApR |bool |is_utf8_ascii |NN const U8 *p ApR |bool |is_utf8_space |NN const U8 *p -- cgit v1.2.1