[latex3-commits] [git/LaTeX3-latex3-latex3] case-exceptions, main: Use a variant (330e92026)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Apr 11 17:06:42 CEST 2023


Repository : https://github.com/latex3/latex3
On branches: case-exceptions,main
Link       : https://github.com/latex3/latex3/commit/330e9202641de4a4136a758db8ab8d20b2f02488

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

commit 330e9202641de4a4136a758db8ab8d20b2f02488
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Apr 11 16:06:42 2023 +0100

    Use a variant
    
    Will be needed for upcoming change


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

330e9202641de4a4136a758db8ab8d20b2f02488
 l3kernel/l3text-case.dtx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/l3kernel/l3text-case.dtx b/l3kernel/l3text-case.dtx
index b93243040..96e1199da 100644
--- a/l3kernel/l3text-case.dtx
+++ b/l3kernel/l3text-case.dtx
@@ -153,7 +153,7 @@
 % \begin{macro}[EXP]{\@@_change_case_exclude:nnNw}
 % \begin{macro}[EXP]{\@@_change_case_exclude:nnNnn}
 % \begin{macro}[EXP]{\@@_change_case_replace:nnN}
-% \begin{macro}[EXP]{\@@_change_case_replace:nnn}
+% \begin{macro}[EXP]{\@@_change_case_replace:nnn, \@@_change_case_replace:vnn}
 % \begin{macro}[EXP]{\@@_change_case_switch:nnN}
 % \begin{macro}[EXP]
 %   {
@@ -497,13 +497,14 @@
   {
     \cs_if_exist:cTF { l_@@_case_ \token_to_str:N #3 _tl }
       {
-        \exp_args:Nv \@@_change_case_replace:nnn
+        \@@_change_case_replace:vnn
           { l_@@_case_ \token_to_str:N #3 _tl } {#1} {#2}
       }
       { \@@_change_case_switch:nnN {#1} {#2} #3 }
   }
 \cs_new:Npn \@@_change_case_replace:nnn #1#2#3
   { \@@_change_case_loop:nnw {#2} {#3} #1 }
+\cs_generate_variant:Nn \@@_change_case_replace:nnn { v }
 %    \end{macrocode}
 %   Allow for manually-controlled case switching.
 %    \begin{macrocode}





More information about the latex3-commits mailing list.