summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-06 21:47:04 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-06 21:47:04 +0000
commitb8c5462f6edbb2dd616e1733df011beee816eee1 (patch)
tree8769adc1886492ed5c33f80684e9905c3f407ee4 /proto.h
parent27806c827bf94df47a488c71aa19376daf71342b (diff)
downloadperl-b8c5462f6edbb2dd616e1733df011beee816eee1.tar.gz
POSIX [[:character class:]] support for standard, locale,
and utf8. If both utf8 and locale are on, utf8 wins. I don't fully understand why so many tables changed in lib/unicode because of "make" -- maybe it was just overdue. p4raw-id: //depot/cfgperl@3624
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/proto.h b/proto.h
index 7fa642405b..402876ac05 100644
--- a/proto.h
+++ b/proto.h
@@ -196,35 +196,53 @@ VIRTUAL char* Perl_instr(pTHX_ const char* big, const char* little);
VIRTUAL bool Perl_io_close(pTHX_ IO* io);
VIRTUAL OP* Perl_invert(pTHX_ OP* cmd);
VIRTUAL bool Perl_is_uni_alnum(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_alnumc(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_idfirst(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_alpha(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_ascii(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_space(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_cntrl(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_graph(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_digit(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_upper(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_lower(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_print(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_punct(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_xdigit(pTHX_ U32 c);
VIRTUAL U32 Perl_to_uni_upper(pTHX_ U32 c);
VIRTUAL U32 Perl_to_uni_title(pTHX_ U32 c);
VIRTUAL U32 Perl_to_uni_lower(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_alnum_lc(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_alnumc_lc(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_idfirst_lc(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_alpha_lc(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_ascii_lc(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_space_lc(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_cntrl_lc(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_graph_lc(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_digit_lc(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_upper_lc(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_lower_lc(pTHX_ U32 c);
VIRTUAL bool Perl_is_uni_print_lc(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_punct_lc(pTHX_ U32 c);
+VIRTUAL bool Perl_is_uni_xdigit_lc(pTHX_ U32 c);
VIRTUAL U32 Perl_to_uni_upper_lc(pTHX_ U32 c);
VIRTUAL U32 Perl_to_uni_title_lc(pTHX_ U32 c);
VIRTUAL U32 Perl_to_uni_lower_lc(pTHX_ U32 c);
VIRTUAL bool Perl_is_utf8_alnum(pTHX_ U8 *p);
+VIRTUAL bool Perl_is_utf8_alnumc(pTHX_ U8 *p);
VIRTUAL bool Perl_is_utf8_idfirst(pTHX_ U8 *p);
VIRTUAL bool Perl_is_utf8_alpha(pTHX_ U8 *p);
+VIRTUAL bool Perl_is_utf8_ascii(pTHX_ U8 *p);
VIRTUAL bool Perl_is_utf8_space(pTHX_ U8 *p);
+VIRTUAL bool Perl_is_utf8_cntrl(pTHX_ U8 *p);
VIRTUAL bool Perl_is_utf8_digit(pTHX_ U8 *p);
+VIRTUAL bool Perl_is_utf8_graph(pTHX_ U8 *p);
VIRTUAL bool Perl_is_utf8_upper(pTHX_ U8 *p);
VIRTUAL bool Perl_is_utf8_lower(pTHX_ U8 *p);
VIRTUAL bool Perl_is_utf8_print(pTHX_ U8 *p);
+VIRTUAL bool Perl_is_utf8_punct(pTHX_ U8 *p);
+VIRTUAL bool Perl_is_utf8_xdigit(pTHX_ U8 *p);
VIRTUAL bool Perl_is_utf8_mark(pTHX_ U8 *p);
VIRTUAL OP* Perl_jmaybe(pTHX_ OP* arg);
VIRTUAL I32 Perl_keyword(pTHX_ char* d, I32 len);
@@ -854,7 +872,8 @@ STATIC void S_scan_commit(pTHX_ scan_data_t *data);
STATIC I32 S_study_chunk(pTHX_ regnode **scanp, I32 *deltap, regnode *last, scan_data_t *data, U32 flags);
STATIC I32 S_add_data(pTHX_ I32 n, char *s);
STATIC void S_re_croak2(pTHX_ const char* pat1, const char* pat2, ...) __attribute__((noreturn));
-STATIC char* S_regpposixcc(pTHX_ I32 value);
+STATIC I32 S_regpposixcc(pTHX_ I32 value);
+STATIC void S_checkposixcc(pTHX);
STATIC void S_clear_re(pTHX_ void *r);
#endif
#if defined(PERL_IN_REGEXEC_C) || defined(PERL_DECL_PROT)