[latex3-commits] [git/LaTeX3-latex3-latex3] master: More work on 8-bit \char_<target>_case:n (22beb19)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri May 3 20:13:26 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/22beb19413357b19e8efe6669dc2a543eeceb0ca

>---------------------------------------------------------------

commit 22beb19413357b19e8efe6669dc2a543eeceb0ca
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri May 3 19:13:26 2019 +0100

    More work on 8-bit \char_<target>_case:n


>---------------------------------------------------------------

22beb19413357b19e8efe6669dc2a543eeceb0ca
 l3kernel/l3candidates.dtx        |    5 ++---
 l3kernel/testfiles/m3char001.tlg |   12 ++++++------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index 6d9c9d9..c491c2d 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -2435,8 +2435,7 @@
   { \char_generate:nn { `#1 } { \char_value_catcode:n { `#1 } } }
 \bool_lazy_or:nnF { \sys_if_engine_luatex_p: } { \sys_if_engine_xetex_p: }
   {
-    \cs_set:Npn \@@_change_case:nN #1#2
-      { \char_generate:nn {#1} { \char_value_catcode:n {#1} } }
+    \cs_set_eq:NN \@@_change_case:nN \use_ii:nn
   }
 %    \end{macrocode}
 %   Same story for the string version, except category code is easier
@@ -2469,7 +2468,7 @@
 \bool_lazy_or:nnF { \sys_if_engine_luatex_p: } { \sys_if_engine_xetex_p: }
   {
     \cs_set:Npn \@@_str_change_case:nN #1#2
-      { \char_generate:nn {#1} { 12 } }
+      { \tl_to_str:n {#2} }
   }
 %    \end{macrocode}
 % \end{macro}
diff --git a/l3kernel/testfiles/m3char001.tlg b/l3kernel/testfiles/m3char001.tlg
index 2d9ed44..8a0fb22 100644
--- a/l3kernel/testfiles/m3char001.tlg
+++ b/l3kernel/testfiles/m3char001.tlg
@@ -736,23 +736,23 @@ The token list contains the tokens:
 <recently read> }
 l. ...    }
 The token list contains the tokens:
->  ^^@ (the character ^^@).
+>  * (the character *).
 <recently read> }
 l. ...    }
 The token list contains the tokens:
->  ^^@ (the character ^^@).
+>  * (the character *).
 <recently read> }
 l. ...    }
 The token list contains the tokens:
->  ^^@ (the character ^^@).
+>  * (the character *).
 <recently read> }
 l. ...    }
 The token list contains the tokens:
->  ^^@ (the character ^^@).
+>  * (the character *).
 <recently read> }
 l. ...    }
 The token list contains the tokens:
->  ^^e7 (the character ^^e7).
+>  ^^c7 (the character ^^c7).
 <recently read> }
 l. ...    }
 The token list contains the tokens:
@@ -760,7 +760,7 @@ The token list contains the tokens:
 <recently read> }
 l. ...    }
 The token list contains the tokens:
->  ^^e7 (the character ^^e7).
+>  ^^c7 (the character ^^c7).
 <recently read> }
 l. ...    }
 The token list contains the tokens:





More information about the latex3-commits mailing list