summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-06-30 18:27:12 -0600
committerKarl Williamson <khw@cpan.org>2021-08-14 09:44:57 -0600
commit5fd26678bf8c8b48b9fdad829c928780cd445d2e (patch)
treed1e751d5a595c15f4079d320f9bf58fd41d87109 /embed.fnc
parent27099574415e78f6fc05276c1c8cb07cd825fe35 (diff)
downloadperl-5fd26678bf8c8b48b9fdad829c928780cd445d2e.tar.gz
Improve utf16_to_utf8_reversed()
Instead of destroying the input by first swapping the bytes, this calls a base function with the order to use. The non-reverse function is changed to call the base function with the non-reversed order.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc6
1 files changed, 4 insertions, 2 deletions
diff --git a/embed.fnc b/embed.fnc
index 834faea428..89f806d232 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -2542,8 +2542,10 @@ p |void |utilize |int aver|I32 floor|NULLOK OP* version|NN OP* idop|NULLOK OP* a
Cp |void |_force_out_malformed_utf8_message \
|NN const U8 *const p|NN const U8 * const e|const U32 flags \
|const bool die_here
-EXp |U8* |utf16_to_utf8 |NN U8* p|NN U8 *d|Size_t bytelen|NN Size_t *newlen
-EXp |U8* |utf16_to_utf8_reversed|NN U8* p|NN U8 *d|Size_t bytelen|NN Size_t *newlen
+EXp |U8* |utf16_to_utf8_base|NN U8* p|NN U8 *d|Size_t bytelen|NN Size_t *newlen \
+ |const bool high|const bool low
+EMXp |U8* |utf16_to_utf8 |NN U8* p|NN U8 *d|Size_t bytelen|NN Size_t *newlen
+EMXp |U8* |utf16_to_utf8_reversed|NN U8* p|NN U8 *d|Size_t bytelen|NN Size_t *newlen
AdpR |STRLEN |utf8_length |NN const U8* s|NN const U8 *e
AipdR |IV |utf8_distance |NN const U8 *a|NN const U8 *b
AipdRT |U8* |utf8_hop |NN const U8 *s|SSize_t off