/* To prevent S_scan_word in toke.c from hanging, we have to make sure that
* IDFIRST is an alnum. See
* http://rt.perl.org/rt3/Ticket/Display.html?id=74022 for more detail than you
- * ever wanted to know about. (In the ASCII range, there isn't a difference.)
- * This used to be not the XID version, but we decided to go with the more
- * modern Unicode definition */
+ * ever wanted to know about. XXX It is unclear if this should extend to
+ * isIDFIRST_uni() which it hasn't so far. (In the ASCII range, there isn't a
+ * difference.) This used to be not the XID version, but we decided to go with
+ * the more modern Unicode definition */
#define isIDFIRST_utf8(p) (isASCII(*(p)) \
? isIDFIRST_A(*(p)) \
: (UTF8_IS_DOWNGRADEABLE_START(*(p))) \
* TO_INTERNAL_SIZE(len
* - (*get_invlist_zero_addr(inv_list) ^ 1)));
* But, this is only valid if len is not 0. The consequences of not doing
- * this is that the memory allocation code may think that the 1 more UV
- * is being used than actually is, and so might do an unnecessary grow.
- * That seems worth not bothering to make this the precise amount.
+ * this is that the memory allocation code may think that 1 more UV is
+ * being used than actually is, and so might do an unnecessary grow. That
+ * seems worth not bothering to make this the precise amount.
*
* Note that when inverting, SvCUR shouldn't change */
}
const UV code_point = utf8n_to_uvuni(ptr, UTF8_MAXBYTES, 0, 0);
/* This outputs warnings for binary properties only, assuming that
- * to_utf8_case() will output any. Also, surrogates aren't checked
- * for, as that would warn on things like /\p{Gc=Cs}/ */
+ * to_utf8_case() will output any for non-binary. Also, surrogates
+ * aren't checked for, as that would warn on things like
+ * /\p{Gc=Cs}/ */
SV** const bitssvp = hv_fetchs(hv, "BITS", FALSE);
if (SvUV(*bitssvp) == 1) {
Perl_warner(aTHX_ packWARN(WARN_NON_UNICODE),
} /* while */
go_out_list:
- /* Invert if the data says it should be */
+ /* Invert if the data says it should be. Assumes that bits == 1 */
if (invert_it_svp && SvUV(*invert_it_svp)) {
/* Unicode properties should come with all bits above PERL_UNICODE_MAX