summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-05-05 22:46:48 -0600
committerKarl Williamson <khw@cpan.org>2014-05-31 11:54:50 -0600
commitf2645549e6a4bfca055b5fd1932da462df424921 (patch)
tree07b6b78d7f56b4cd966883167e5973d450342401 /inline.h
parent3cedd9d93070bd6f0cb074a3013165cd9a630fca (diff)
downloadperl-f2645549e6a4bfca055b5fd1932da462df424921.tar.gz
Move some deprecated utf8-handling functions to mathoms
This entailed creating new internal functions for some of them to call so that the functionality can be retained during the deprecation period.
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/inline.h b/inline.h
index fff7499f01..dd0eae6b55 100644
--- a/inline.h
+++ b/inline.h
@@ -219,33 +219,17 @@ S_append_utf8_from_native_byte(const U8 byte, U8** dest)
}
}
-/* These two exist only to replace the macros they formerly were so that their
- * use can be deprecated */
-
-PERL_STATIC_INLINE bool
-S_isIDFIRST_lazy(pTHX_ const char* p)
-{
- PERL_ARGS_ASSERT_ISIDFIRST_LAZY;
-
- return isIDFIRST_lazy_if(p,1);
-}
-
-PERL_STATIC_INLINE bool
-S_isALNUM_lazy(pTHX_ const char* p)
-{
- PERL_ARGS_ASSERT_ISALNUM_LAZY;
-
- return isALNUM_lazy_if(p,1);
-}
-
/*
+
A helper function for the macro isUTF8_CHAR(), which should be used instead of
this function. The macro will handle smaller code points directly saving time,
using this function as a fall-back for higher code points.
+
Tests if the first bytes of string C<s> form a valid UTF-8 character. 0 is
returned if the bytes starting at C<s> up to but not including C<e> do not form a
complete well-formed UTF-8 character; otherwise the number of bytes in the
character is returned.
+
Note that an INVARIANT (i.e. ASCII on non-EBCDIC) character is a valid UTF-8
character.