[latex3-commits] [git/LaTeX3-latex3-latex3] scan-quark: Use correct module name in scan mark (6434d862c)

PhelypeOleinik tex.phelype at gmail.com
Sat Mar 21 01:34:08 CET 2020


Repository : https://github.com/latex3/latex3
On branch  : scan-quark
Link       : https://github.com/latex3/latex3/commit/6434d862cbece15471da2bdf5f42d35721af0d3f

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

commit 6434d862cbece15471da2bdf5f42d35721af0d3f
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Fri Mar 20 21:34:08 2020 -0300

    Use correct module name in scan mark


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

6434d862cbece15471da2bdf5f42d35721af0d3f
 l3kernel/l3str-convert.dtx | 69 +++++++++++++++++++++++++---------------------
 1 file changed, 38 insertions(+), 31 deletions(-)

diff --git a/l3kernel/l3str-convert.dtx b/l3kernel/l3str-convert.dtx
index 37a647c9d..b5c46d509 100644
--- a/l3kernel/l3str-convert.dtx
+++ b/l3kernel/l3str-convert.dtx
@@ -286,6 +286,13 @@
 %    \end{macrocode}
 % \end{variable}
 %
+% \begin{variable}{\s_@@}
+%   Internal scan marks.
+%    \begin{macrocode}
+\scan_new:N \s_@@
+%    \end{macrocode}
+% \end{variable}
+%
 % \begin{variable}{\g_@@_alias_prop}
 %   To avoid needing one file per encoding/escaping alias, we keep track
 %   of those in a property list.
@@ -557,11 +564,11 @@
       {
         \exp_after:wN \@@_convert_gmap_internal_loop:Nww
         \exp_after:wN #1
-          \g_@@_result_tl \s__tl \q_stop \prg_break: \s__tl
+          \g_@@_result_tl \s_@@ \q_stop \prg_break: \s_@@
         \prg_break_point:
       }
   }
-\cs_new:Npn \@@_convert_gmap_internal_loop:Nww #1 #2 \s__tl #3 \s__tl
+\cs_new:Npn \@@_convert_gmap_internal_loop:Nww #1 #2 \s_@@ #3 \s_@@
   {
     \use_none_delimit_by_q_stop:w #3 \q_stop
     #1 {#3}
@@ -626,7 +633,7 @@
 %     to a list of Unicode characters in an internal representation,
 %     with items of the form
 %     \begin{quote}
-%       \meta{bytes} \cs{s__tl} \meta{Unicode code point} \cs{s__tl}
+%       \meta{bytes} \cs{s_@@} \meta{Unicode code point} \cs{s_@@}
 %     \end{quote}
 %     where we have collected the \meta{bytes} which combined to form
 %     this particular Unicode character, and the \meta{Unicode code
@@ -967,7 +974,7 @@
 \cs_new_protected:Npn \@@_convert_decode_:
   { \@@_convert_gmap:N \@@_decode_native_char:N }
 \cs_new:Npn \@@_decode_native_char:N #1
-  { #1 \s__tl \int_value:w `#1 \s__tl }
+  { #1 \s_@@ \int_value:w `#1 \s_@@ }
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -1039,7 +1046,7 @@
       }
   }
 \cs_new:Npn \@@_decode_clist_char:n #1
-  { #1 \s__tl \int_eval:n {#1} \s__tl }
+  { #1 \s_@@ \int_eval:n {#1} \s_@@ }
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -1147,13 +1154,13 @@
   }
 \cs_new:Npn \@@_decode_eight_bit_char:N #1
   {
-    #1 \s__tl
+    #1 \s_@@
     \if_int_compare:w \tex_dimen:D `#1 < \l_@@_internal_int
       \if_int_compare:w \tex_skip:D \tex_dimen:D `#1 = `#1 \exp_stop_f:
         \tex_the:D \tex_toks:D \tex_dimen:D
       \fi:
     \fi:
-    \int_value:w `#1 \s__tl
+    \int_value:w `#1 \s_@@
   }
 %    \end{macrocode}
 % \end{macro}
@@ -1949,7 +1956,7 @@
   {
     #1
     \if_int_compare:w `#1 < "C0 \exp_stop_f:
-      \s__tl
+      \s_@@
       \if_int_compare:w `#1 < "80 \exp_stop_f:
         \int_value:w `#1
       \else:
@@ -1961,12 +1968,12 @@
       \exp_after:wN \@@_decode_utf_viii_continuation:wwN
       \int_value:w \int_eval:n { `#1 - "C0 } \exp_after:wN
     \fi:
-    \s__tl
+    \s_@@
     \use_none_delimit_by_q_stop:w {"80} {"800} {"10000} {"110000} \q_stop
     \@@_decode_utf_viii_start:N
   }
 \cs_new:Npn \@@_decode_utf_viii_continuation:wwN
-    #1 \s__tl #2 \@@_decode_utf_viii_start:N #3
+    #1 \s_@@ #2 \@@_decode_utf_viii_start:N #3
   {
     \use_none:n #3
     \if_int_compare:w `#3 <
@@ -1976,20 +1983,20 @@
       \exp_after:wN \@@_decode_utf_viii_aux:wNnnwN
       \int_value:w \int_eval:n { #1 * "40 + `#3 - "80 } \exp_after:wN
     \else:
-      \s__tl
+      \s_@@
       \flag_raise:n { str_missing }
       \flag_raise:n { str_error }
       \int_use:N \c_@@_replacement_char_int
     \fi:
-    \s__tl
+    \s_@@
     #2
     \@@_decode_utf_viii_start:N #3
   }
 \cs_new:Npn \@@_decode_utf_viii_aux:wNnnwN
-    #1 \s__tl #2#3#4 #5 \@@_decode_utf_viii_start:N #6
+    #1 \s_@@ #2#3#4 #5 \@@_decode_utf_viii_start:N #6
   {
     \if_int_compare:w #1 < #4 \exp_stop_f:
-      \s__tl
+      \s_@@
       \if_int_compare:w #1 < #3 \exp_stop_f:
         \flag_raise:n { str_overlong }
         \flag_raise:n { str_error }
@@ -2004,7 +2011,7 @@
       \exp_after:wN \@@_decode_utf_viii_continuation:wwN
       \int_value:w \int_eval:n { #1 - #4 } \exp_after:wN
     \fi:
-    \s__tl
+    \s_@@
     #2 {#4} #5
     \@@_decode_utf_viii_start:N
   }
@@ -2017,10 +2024,10 @@
   }
 \cs_new:Npn \@@_decode_utf_viii_end:
   {
-    \s__tl
+    \s_@@
     \flag_raise:n { str_missing }
     \flag_raise:n { str_error }
-    \int_use:N \c_@@_replacement_char_int \s__tl
+    \int_use:N \c_@@_replacement_char_int \s_@@
     \prg_break:
   }
 %    \end{macrocode}
@@ -2271,8 +2278,8 @@
 %   range $[\hexnum{DC}, \hexnum{DF}]$ (trail surrogate). The test is
 %   similar to the test used for continuation bytes in the
 %   \textsc{utf-8} decoding functions. In the case where |#4#5| is
-%   indeed a trail surrogate, leave |#1#2#4#5| \cs{s__tl}
-%   \meta{code~point} \cs{s__tl}, and remove the pair |#4#5| before
+%   indeed a trail surrogate, leave |#1#2#4#5| \cs{s_@@}
+%   \meta{code~point} \cs{s_@@}, and remove the pair |#4#5| before
 %   looping with \cs{@@_decode_utf_xvi_pair:NN}. Otherwise, of course,
 %   complain about the missing surrogate.
 %
@@ -2295,8 +2302,8 @@
       \or: \exp_after:wN \@@_decode_utf_xvi_quad:NNwNN
       \or: \exp_after:wN \@@_decode_utf_xvi_extra:NNw
       \fi:
-      #1#2 \s__tl
-      \int_eval:n { "100 * \@@_tmp:w #1#2 + \@@_tmp:w #2#1 } \s__tl
+      #1#2 \s_@@
+      \int_eval:n { "100 * \@@_tmp:w #1#2 + \@@_tmp:w #2#1 } \s_@@
       \@@_decode_utf_xvi_pair:NN
     }
   \cs_new:Npn \@@_decode_utf_xvi_quad:NNwNN
@@ -2313,13 +2320,13 @@
             \@@_tmp:w #4#5 < "E0
           \fi:
           \exp_stop_f:
-        #1 #2 #4 #5 \s__tl
+        #1 #2 #4 #5 \s_@@
         \int_eval:n
           {
             ( "100 * \@@_tmp:w #1#2 + \@@_tmp:w #2#1 - "D7F7 ) * "400
             + "100 * \@@_tmp:w #4#5 + \@@_tmp:w #5#4
           }
-        \s__tl
+        \s_@@
         \exp_after:wN \use_i:nnn
       \else:
         \@@_decode_utf_xvi_error:nNN { missing } #1#2
@@ -2335,14 +2342,14 @@
       \fi:
       \prg_break:
     }
-  \cs_new:Npn \@@_decode_utf_xvi_extra:NNw #1#2 \s__tl #3 \s__tl
+  \cs_new:Npn \@@_decode_utf_xvi_extra:NNw #1#2 \s_@@ #3 \s_@@
     { \@@_decode_utf_xvi_error:nNN { extra } #1#2 }
   \cs_new:Npn \@@_decode_utf_xvi_error:nNN #1#2#3
     {
       \flag_raise:n { str_error }
       \flag_raise:n { str_#1 }
-      #2 #3 \s__tl
-      \int_use:N \c_@@_replacement_char_int \s__tl
+      #2 #3 \s_@@
+      \int_use:N \c_@@_replacement_char_int \s_@@
     }
 %    \end{macrocode}
 % \end{macro}
@@ -2483,7 +2490,7 @@
 %
 %   The \texttt{_loop} auxiliary first checks for the end-of-string
 %   marker \cs{s_stop}, calling the \texttt{_end} auxiliary if
-%   appropriate. Otherwise, leave the \meta{4~bytes} \cs{s__tl} behind,
+%   appropriate. Otherwise, leave the \meta{4~bytes} \cs{s_@@} behind,
 %   then check that the code point is not overflowing: the leading byte
 %   must be $0$, and the following byte at most $16$.
 %
@@ -2528,7 +2535,7 @@
       \if_meaning:w \s_stop #4
         \exp_after:wN \@@_decode_utf_xxxii_end:w
       \fi:
-      #1#2#3#4 \s__tl
+      #1#2#3#4 \s_@@
       \if_int_compare:w \@@_tmp:w #1#4 > 0 \exp_stop_f:
         \flag_raise:n { str_overflow }
         \flag_raise:n { str_error }
@@ -2543,7 +2550,7 @@
             { \@@_tmp:w #2#3*"10000 + \@@_tmp:w #3#2*"100 + \@@_tmp:w #4#1 }
         \fi:
       \fi:
-      \s__tl
+      \s_@@
       \@@_decode_utf_xxxii_loop:NNNN
     }
   \cs_new:Npn \@@_decode_utf_xxxii_end:w #1 \s_stop
@@ -2552,8 +2559,8 @@
         {
           \flag_raise:n { str_end }
           \flag_raise:n { str_error }
-          #1 \s__tl
-          \int_use:N \c_@@_replacement_char_int \s__tl
+          #1 \s_@@
+          \int_use:N \c_@@_replacement_char_int \s_@@
         }
       \prg_break:
     }





More information about the latex3-commits mailing list.