Skip to content

Commit cb5f3d4

Browse files
committed
is_utf8_invariant_string() Add comment
It took me a while to figure out this idea wouldn't work; so add caution for future maintainers
1 parent cb398d2 commit cb5f3d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inline.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,8 @@ Perl_is_utf8_invariant_string_loc(const U8* const s, STRLEN len, const U8 ** ep)
14111411

14121412
#endif /* End of ! EBCDIC */
14131413

1414-
/* Process per-byte */
1414+
/* Process per-byte. (Can't use libc functions like strpbrk() because
1415+
* input isn't necessarily a C string) */
14151416
while (x < send) {
14161417
if (! UTF8_IS_INVARIANT(*x)) {
14171418
if (ep) {

0 commit comments

Comments
 (0)