diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3experimental/l3str/l3str-enc-utf16.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3experimental/l3str/l3str-enc-utf16.def | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/l3experimental/l3str/l3str-enc-utf16.def b/Master/texmf-dist/tex/latex/l3experimental/l3str/l3str-enc-utf16.def index e2b8568d358..4bfb9bc9444 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/l3str/l3str-enc-utf16.def +++ b/Master/texmf-dist/tex/latex/l3experimental/l3str/l3str-enc-utf16.def @@ -48,14 +48,14 @@ \group_begin: \char_set_catcode_other:N \^^fe \char_set_catcode_other:N \^^ff - \cs_new_protected_nopar:cpn { __str_convert_encode_utf16: } + \cs_new_protected:cpn { __str_convert_encode_utf16: } { \__str_encode_utf_xvi_aux:N \__str_output_byte_pair_be:n \tl_gput_left:Nx \g__str_result_tl { ^^fe ^^ff } } - \cs_new_protected_nopar:cpn { __str_convert_encode_utf16be: } + \cs_new_protected:cpn { __str_convert_encode_utf16be: } { \__str_encode_utf_xvi_aux:N \__str_output_byte_pair_be:n } - \cs_new_protected_nopar:cpn { __str_convert_encode_utf16le: } + \cs_new_protected:cpn { __str_convert_encode_utf16le: } { \__str_encode_utf_xvi_aux:N \__str_output_byte_pair_le:n } \cs_new_protected:Npn \__str_encode_utf_xvi_aux:N #1 { @@ -130,11 +130,11 @@ the~basic~code~unit~for~UTF-16~is~16~bits~(2~bytes). } } - \cs_new_protected_nopar:cpn { __str_convert_decode_utf16be: } + \cs_new_protected:cpn { __str_convert_decode_utf16be: } { \__str_decode_utf_xvi:Nw 1 \g__str_result_tl \s__stop } - \cs_new_protected_nopar:cpn { __str_convert_decode_utf16le: } + \cs_new_protected:cpn { __str_convert_decode_utf16le: } { \__str_decode_utf_xvi:Nw 2 \g__str_result_tl \s__stop } - \cs_new_protected_nopar:cpn { __str_convert_decode_utf16: } + \cs_new_protected:cpn { __str_convert_decode_utf16: } { \exp_after:wN \__str_decode_utf_xvi_bom:NN \g__str_result_tl \s__stop \s__stop \s__stop |