[latex3-commits] [git/LaTeX3-latex3-latex3] l3bitset-2: add c_zero_str for bitset initialization (e7db4474a)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Dec 22 23:54:40 CET 2020


Repository : https://github.com/latex3/latex3
On branch  : l3bitset-2
Link       : https://github.com/latex3/latex3/commit/e7db4474ada4d2cf1d121142748a422241dcc5b5

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

commit e7db4474ada4d2cf1d121142748a422241dcc5b5
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Dec 22 23:54:40 2020 +0100

    add c_zero_str for bitset initialization


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

e7db4474ada4d2cf1d121142748a422241dcc5b5
 l3kernel/l3str.dtx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/l3kernel/l3str.dtx b/l3kernel/l3str.dtx
index 3152e7dae..ecf61c2fe 100644
--- a/l3kernel/l3str.dtx
+++ b/l3kernel/l3str.dtx
@@ -815,7 +815,7 @@
 %
 % \section{Constant token lists}
 %
-% \begin{variable}[added = 2015-09-19]
+% \begin{variable}[added = 2015-09-19,updated=2020-12-22]
 %   {
 %     \c_ampersand_str,
 %     \c_atsign_str,
@@ -828,7 +828,8 @@
 %     \c_hash_str,
 %     \c_percent_str,
 %     \c_tilde_str,
-%     \c_underscore_str
+%     \c_underscore_str,
+%     \c_zero_str
 %   }
 %   Constant strings, containing a single character token, with category
 %   code $12$.
@@ -1943,7 +1944,8 @@
 %     \c_hash_str,
 %     \c_percent_str,
 %     \c_tilde_str,
-%     \c_underscore_str
+%     \c_underscore_str,
+%     \c_zero_str
 %   }
 %   For all of those strings, use \cs{cs_to_str:N} to get characters with
 %   the correct category code without worries
@@ -1960,6 +1962,7 @@
 \str_const:Nx \c_percent_str     { \cs_to_str:N \% }
 \str_const:Nx \c_tilde_str       { \cs_to_str:N \~ }
 \str_const:Nx \c_underscore_str  { \cs_to_str:N \_ }
+\str_const:Nx \c_zero_str        { 0 }
 %    \end{macrocode}
 % \end{variable}
 %





More information about the latex3-commits mailing list.