summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-11-07 15:40:40 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-11-07 21:42:42 -0800
commit064c021db42d2f93255b1b950faa0b0274e9fb7e (patch)
treefa23a5568104524919d459895d4ad3bb5b4a2aa3 /embed.h
parent319009ee7672ef703a648cf106c84dbe6f5aabd5 (diff)
downloadperl-064c021db42d2f93255b1b950faa0b0274e9fb7e.tar.gz
utf8.c: Add function to create inversion of swash
This adds _swash_inversion_hash() which takes a mapping swash and returns a hash that is the inverse relation. That is, given a code point, it allows quick lookup of all code points that map to it. The function is not for public use, as it will likely be revised, so is not in the public API, and it's name begins with underscore. It does not deal with multi-char mappings at this time, nor other swash complications.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.h b/embed.h
index 0d8321296b..ac080b76c1 100644
--- a/embed.h
+++ b/embed.h
@@ -810,6 +810,7 @@
#define do_spawn_nowait(a) Perl_do_spawn_nowait(aTHX_ a)
#endif
#if defined(PERL_CORE) || defined(PERL_EXT)
+#define _swash_inversion_hash(a) Perl__swash_inversion_hash(aTHX_ a)
#define av_reify(a) Perl_av_reify(aTHX_ a)
#define grok_bslash_c(a,b) Perl_grok_bslash_c(aTHX_ a,b)
#define grok_bslash_o(a,b,c,d,e) Perl_grok_bslash_o(aTHX_ a,b,c,d,e)