This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate perlio:
[perl5.git] / proto.h
diff --git a/proto.h b/proto.h
index a042c5a..ebd00fd 100644 (file)
--- a/proto.h
+++ b/proto.h
@@ -315,6 +315,7 @@ PERL_CALLCONV HE*   Perl_hv_store_ent(pTHX_ HV* tb, SV* key, SV* val, U32 hash);
 PERL_CALLCONV void     Perl_hv_undef(pTHX_ HV* tb);
 PERL_CALLCONV I32      Perl_ibcmp(pTHX_ const char* a, const char* b, I32 len);
 PERL_CALLCONV I32      Perl_ibcmp_locale(pTHX_ const char* a, const char* b, I32 len);
+PERL_CALLCONV I32      Perl_ibcmp_utf8(pTHX_ const char* a, bool ua, const char* b, bool ub, I32 len);
 PERL_CALLCONV bool     Perl_ingroup(pTHX_ Gid_t testgid, Uid_t effective);
 PERL_CALLCONV void     Perl_init_argv_symbols(pTHX_ int, char **);
 PERL_CALLCONV void     Perl_init_debugger(pTHX);
@@ -326,37 +327,38 @@ PERL_CALLCONV bool        Perl_io_close(pTHX_ IO* io, bool not_implicit);
 PERL_CALLCONV OP*      Perl_invert(pTHX_ OP* cmd);
 PERL_CALLCONV bool     Perl_is_gv_magical(pTHX_ char *name, STRLEN len, U32 flags);
 PERL_CALLCONV I32      Perl_is_lvalue_sub(pTHX);
-PERL_CALLCONV bool     Perl_is_uni_alnum(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_alnumc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_idfirst(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_alpha(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_ascii(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_space(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_cntrl(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_graph(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_digit(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_upper(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_lower(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_print(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_punct(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_xdigit(pTHX_ U32 c);
-PERL_CALLCONV U32      Perl_to_uni_upper(pTHX_ U32 c, U8 *p, STRLEN *lenp);
-PERL_CALLCONV U32      Perl_to_uni_title(pTHX_ U32 c, U8 *p, STRLEN *lenp);
-PERL_CALLCONV U32      Perl_to_uni_lower(pTHX_ U32 c, U8 *p, STRLEN *lenp);
-PERL_CALLCONV bool     Perl_is_uni_alnum_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_alnumc_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_idfirst_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_alpha_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_ascii_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_space_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_cntrl_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_graph_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_digit_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_upper_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_lower_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_print_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_punct_lc(pTHX_ U32 c);
-PERL_CALLCONV bool     Perl_is_uni_xdigit_lc(pTHX_ U32 c);
+PERL_CALLCONV bool     Perl_is_uni_alnum(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_alnumc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_idfirst(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_alpha(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_ascii(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_space(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_cntrl(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_graph(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_digit(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_upper(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_lower(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_print(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_punct(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_xdigit(pTHX_ UV c);
+PERL_CALLCONV UV       Perl_to_uni_upper(pTHX_ UV c, U8 *p, STRLEN *lenp);
+PERL_CALLCONV UV       Perl_to_uni_title(pTHX_ UV c, U8 *p, STRLEN *lenp);
+PERL_CALLCONV UV       Perl_to_uni_lower(pTHX_ UV c, U8 *p, STRLEN *lenp);
+PERL_CALLCONV UV       Perl_to_uni_fold(pTHX_ UV c, U8 *p, STRLEN *lenp);
+PERL_CALLCONV bool     Perl_is_uni_alnum_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_alnumc_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_idfirst_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_alpha_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_ascii_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_space_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_cntrl_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_graph_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_digit_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_upper_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_lower_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_print_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_punct_lc(pTHX_ UV c);
+PERL_CALLCONV bool     Perl_is_uni_xdigit_lc(pTHX_ UV c);
 PERL_CALLCONV STRLEN   Perl_is_utf8_char(pTHX_ U8 *p);
 PERL_CALLCONV bool     Perl_is_utf8_string(pTHX_ U8 *s, STRLEN len);
 PERL_CALLCONV bool     Perl_is_utf8_alnum(pTHX_ U8 *p);
@@ -691,7 +693,6 @@ PERL_CALLCONV char* Perl_screaminstr(pTHX_ SV* bigsv, SV* littlesv, I32 start_sh
 PERL_CALLCONV I32      Perl_setenv_getix(pTHX_ char* nam);
 #endif
 PERL_CALLCONV void     Perl_setdefout(pTHX_ GV* gv);
-PERL_CALLCONV char*    Perl_sharepvn(pTHX_ const char* sv, I32 len, U32 hash);
 PERL_CALLCONV HEK*     Perl_share_hek(pTHX_ const char* sv, I32 len, U32 hash);
 PERL_CALLCONV Signal_t Perl_sighandler(int sig);
 PERL_CALLCONV SV**     Perl_stack_grow(pTHX_ SV** sp, SV**p, int n);