summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-11-08 18:55:09 -0700
committerKarl Williamson <public@khwilliamson.com>2011-11-08 22:38:38 -0700
commitafc16117342e69d725e9609816ad29f611edb5a5 (patch)
tree33fe89eea3edaaf70b06a7b01c47dc75d19d59d9 /embed.fnc
parent50bda2c32d66573a5367b7d0d5a1d287d766b811 (diff)
downloadperl-afc16117342e69d725e9609816ad29f611edb5a5.tar.gz
utf8.c: Refactor to_uni_lower()
The portion that deals with Latin1 range characters is refactored into a separate (static) function, so that it can be called from more than one place.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc3
1 files changed, 3 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index 251d475431..035f3db3fe 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -600,6 +600,9 @@ ApPR |bool |is_uni_punct |UV c
ApPR |bool |is_uni_xdigit |UV c
Ap |UV |to_uni_upper |UV c|NN U8 *p|NN STRLEN *lenp
Ap |UV |to_uni_title |UV c|NN U8 *p|NN STRLEN *lenp
+#ifdef PERL_IN_UTF8_C
+sR |U8 |to_lower_latin1|const U8 c|NULLOK U8 *p|NULLOK STRLEN *lenp
+#endif
Ap |UV |to_uni_lower |UV c|NN U8 *p|NN STRLEN *lenp
Amp |UV |to_uni_fold |UV c|NN U8 *p|NN STRLEN *lenp
AMp |UV |_to_uni_fold_flags|UV c|NN U8 *p|NN STRLEN *lenp|U8 flags