[latex3-commits] [latex3/latex3] main: Generate conditional variants by `\prg_generate_conditional_variant:Nnn` (8e60c6986)
github at latex-project.org
github at latex-project.org
Sun Nov 26 21:54:59 CET 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/8e60c6986af2e6e58aaae664c2757613bef4c8b7
>---------------------------------------------------------------
commit 8e60c6986af2e6e58aaae664c2757613bef4c8b7
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Sun Nov 26 08:34:44 2023 +0800
Generate conditional variants by `\prg_generate_conditional_variant:Nnn`
>---------------------------------------------------------------
8e60c6986af2e6e58aaae664c2757613bef4c8b7
l3kernel/l3doc.dtx | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/l3kernel/l3doc.dtx b/l3kernel/l3doc.dtx
index e32efebd1..43360a784 100644
--- a/l3kernel/l3doc.dtx
+++ b/l3kernel/l3doc.dtx
@@ -982,15 +982,11 @@ and all files in that bundle must be distributed together.
\cs_generate_variant:Nn \str_case:nn { fn }
\cs_generate_variant:Nn \tl_count:n { f }
\cs_generate_variant:Nn \tl_greplace_all:Nnn { Nx , Nno }
-\cs_generate_variant:Nn \tl_if_empty:nTF { f }
-\cs_generate_variant:Nn \tl_if_head_eq_charcode:nNTF { o }
-\cs_generate_variant:Nn \tl_if_head_eq_charcode:nNT { o }
-\cs_generate_variant:Nn \tl_if_head_eq_charcode:nNF { o }
-\cs_generate_variant:Nn \tl_if_head_eq_meaning:nNF { V }
-\cs_generate_variant:Nn \tl_if_in:nnTF { no , oo }
-\cs_generate_variant:Nn \tl_if_in:NnTF { No }
-\cs_generate_variant:Nn \tl_if_in:NnT { No }
-\cs_generate_variant:Nn \tl_if_in:NnF { No }
+\prg_generate_conditional_variant:Nnn \tl_if_empty:n { f } { TF }
+\prg_generate_conditional_variant:Nnn \tl_if_head_eq_charcode:nN { o } { T , F , TF }
+\prg_generate_conditional_variant:Nnn \tl_if_head_eq_meaning:nN { V } { F }
+\prg_generate_conditional_variant:Nnn \tl_if_in:nn { no , oo } { TF }
+\prg_generate_conditional_variant:Nnn \tl_if_in:Nn { No } { T , F , TF }
\cs_generate_variant:Nn \tl_remove_all:Nn { Nx }
\cs_generate_variant:Nn \tl_replace_all:Nnn { Nx , Nnx, No , Nno }
\cs_generate_variant:Nn \tl_replace_once:Nnn { Noo }
@@ -1014,7 +1010,7 @@ and all files in that bundle must be distributed together.
{ \prg_return_false: }
{ \prg_return_true: }
}
-\cs_generate_variant:Nn \@@_if_almost_str:nT { V }
+\prg_generate_conditional_variant:Nnn \@@_if_almost_str:n { V } { T }
% \end{macrocode}
% \end{macro}
%
More information about the latex3-commits
mailing list.