diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3str.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3str.dtx | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3str.dtx b/Master/texmf-dist/source/latex/l3kernel/l3str.dtx index 84d2e2d7ae6..a7731373d2e 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3str.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3str.dtx @@ -43,7 +43,7 @@ % }^^A % } % -% \date{Released 2020-09-06} +% \date{Released 2020-09-24} % % \maketitle % @@ -1121,44 +1121,12 @@ % \end{macro} % % \begin{macro}[EXP]{\@@_if_eq:nn} -% \begin{macro}[EXP]{\@@_escape:n} -% String comparisons rely on the primitive \cs[index=pdfstrcmp]{(pdf)strcmp} if available: -% \LuaTeX{} does not have it, so emulation is required. As the net result -% is that we do not \emph{always} use the primitive, the correct approach -% is to wrap up in a function with defined behaviour. That's done by -% providing a wrapper and then redefining in the \LuaTeX{} case. Note that -% the necessary Lua code is loaded in \pkg{l3boostrap}. -% The need to detokenize and force -% expansion of input arises from the case where a |#| token is used in the -% input, \emph{e.g.}~|\__str_if_eq:nn {#} { \tl_to_str:n {#} }|, which -% otherwise would fail as \cs{tex_luaescapestring:D} does not double -% such tokens. +% String comparisons rely on the primitive \cs[index=pdfstrcmp]{(pdf)strcmp}, +% so we define a new name for it. % \begin{macrocode} -\cs_new:Npn \@@_if_eq:nn #1#2 { \tex_strcmp:D {#1} {#2} } -\cs_if_exist:NT \tex_luatexversion:D - { - \cs_set_eq:NN \lua_escape:e \tex_luaescapestring:D - \cs_set_eq:NN \lua_now:e \tex_directlua:D - \cs_set:Npn \@@_if_eq:nn #1#2 - { - \lua_now:e - { - l3kernel.strcmp - ( - " \@@_escape:n {#1} " , - " \@@_escape:n {#2} " - ) - } - } - \cs_new:Npn \@@_escape:n #1 - { - \lua_escape:e - { \__kernel_tl_to_str:w \use:e { {#1} } } - } - } +\cs_new_eq:NN \@@_if_eq:nn \tex_strcmp:D % \end{macrocode} % \end{macro} -% \end{macro} % % \begin{macro}[pTF, EXP] % { |