summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-10-16 12:38:58 -0600
committerKarl Williamson <public@khwilliamson.com>2011-10-17 21:52:16 -0600
commit18f762c3fc05b01f683e8eefc830106deeb0df8f (patch)
tree2e2822fb5fd51da51523bb54ba4b53f250ae52c1 /utf8.h
parent85514a3470928b4c673195c2db9e5f567341b656 (diff)
downloadperl-18f762c3fc05b01f683e8eefc830106deeb0df8f.tar.gz
utf8.c: Add 'input pre-folded' flags to foldEQ_utf8_flags
This adds flags so that if one of the input strings is known to already have been folded, this routine can skip the (redundant) folding step.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index 2e47974872..ed73e23645 100644
--- a/utf8.h
+++ b/utf8.h
@@ -27,6 +27,8 @@
foldEQ_utf8_flags(s1, pe1, l1, u1, s2, pe2, l2, u2, 0)
#define FOLDEQ_UTF8_NOMIX_ASCII (1 << 0)
#define FOLDEQ_UTF8_LOCALE (1 << 1)
+#define FOLDEQ_S1_ALREADY_FOLDED (1 << 2)
+#define FOLDEQ_S2_ALREADY_FOLDED (1 << 3)
/*
=for apidoc ibcmp_utf8