summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-07-08 18:41:45 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-07-08 18:41:45 +0000
commit4d61ec052de5c3a91dc64c80c032c2cbec44d845 (patch)
treefcc319025627956e7cd3c2cd6510ed1bcd7b266c /utf8.c
parentf248d07102861fd4d0819cc0b602f81105bc562c (diff)
downloadperl-4d61ec052de5c3a91dc64c80c032c2cbec44d845.tar.gz
sundry cleanups for clean build on windows
p4raw-id: //depot/perl@3659
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/utf8.c b/utf8.c
index bb0525d892..a4703769de 100644
--- a/utf8.c
+++ b/utf8.c
@@ -285,6 +285,14 @@ Perl_is_uni_alpha(pTHX_ U32 c)
}
bool
+Perl_is_uni_ascii(pTHX_ U32 c)
+{
+ U8 tmpbuf[10];
+ uv_to_utf8(tmpbuf, (UV)c);
+ return is_utf8_ascii(tmpbuf);
+}
+
+bool
Perl_is_uni_space(pTHX_ U32 c)
{
U8 tmpbuf[10];
@@ -348,6 +356,14 @@ Perl_is_uni_punct(pTHX_ U32 c)
return is_utf8_punct(tmpbuf);
}
+bool
+Perl_is_uni_xdigit(pTHX_ U32 c)
+{
+ U8 tmpbuf[10];
+ uv_to_utf8(tmpbuf, (UV)c);
+ return is_utf8_xdigit(tmpbuf);
+}
+
U32
Perl_to_uni_upper(pTHX_ U32 c)
{
@@ -399,6 +415,12 @@ Perl_is_uni_alpha_lc(pTHX_ U32 c)
}
bool
+Perl_is_uni_ascii_lc(pTHX_ U32 c)
+{
+ return is_uni_ascii(c); /* XXX no locale support yet */
+}
+
+bool
Perl_is_uni_space_lc(pTHX_ U32 c)
{
return is_uni_space(c); /* XXX no locale support yet */
@@ -446,6 +468,12 @@ Perl_is_uni_punct_lc(pTHX_ U32 c)
return is_uni_punct(c); /* XXX no locale support yet */
}
+bool
+Perl_is_uni_xdigit_lc(pTHX_ U32 c)
+{
+ return is_uni_xdigit(c); /* XXX no locale support yet */
+}
+
U32
Perl_to_uni_upper_lc(pTHX_ U32 c)
{