diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-11-27 09:42:48 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-11-28 04:49:13 -0800 |
commit | 1b9f127b4dff87fa8c6be8acf741af73f72fea81 (patch) | |
tree | 01422b32900632e385bc777a201b15faee83fbf8 /proto.h | |
parent | e3ef43a5d915565241c254f7c7be154729e81162 (diff) | |
download | perl-1b9f127b4dff87fa8c6be8acf741af73f72fea81.tar.gz |
Add Perl_foldEQ_latin1()
This function compares two non-utf8 strings to see if they are
equivalent without regards to case differences. It does not work nor
check for three problematic code points that require special handling:
MICRO_SIGN, LATIN_SMALL_LETTER_SHARP_S, and
LATIN_SMALL_LETTER_Y_WITH_DIAERESIS.
make regen required
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -968,6 +968,13 @@ PERL_CALLCONV I32 Perl_foldEQ(const char* a, const char* b, I32 len) #define PERL_ARGS_ASSERT_FOLDEQ \ assert(a); assert(b) +PERL_CALLCONV I32 Perl_foldEQ_latin1(const char* a, const char* b, I32 len) + __attribute__pure__ + __attribute__nonnull__(1) + __attribute__nonnull__(2); +#define PERL_ARGS_ASSERT_FOLDEQ_LATIN1 \ + assert(a); assert(b) + PERL_CALLCONV I32 Perl_foldEQ_locale(const char* a, const char* b, I32 len) __attribute__pure__ __attribute__nonnull__(1) |