diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3kernel/l3seq.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3kernel/l3seq.sty | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/l3kernel/l3seq.sty b/Master/texmf-dist/tex/latex/l3kernel/l3seq.sty index 743e17ed121..2b47a5c01d8 100644 --- a/Master/texmf-dist/tex/latex/l3kernel/l3seq.sty +++ b/Master/texmf-dist/tex/latex/l3kernel/l3seq.sty @@ -13,7 +13,7 @@ %% %% Do not distribute a modified version of this file. %% -%% File: l3seq.dtx Copyright (C) 1990-2011 The LaTeX3 Project +%% File: l3seq.dtx Copyright (C) 1990-2012 The LaTeX3 Project %% %% It may be distributed and/or modified under the conditions of the %% LaTeX Project Public License (LPPL), either version 1.3c of this @@ -46,7 +46,7 @@ %% %% ----------------------------------------------------------------------- \RequirePackage{l3names} -\GetIdInfo$Id: l3seq.dtx 3085 2011-12-22 16:29:26Z bruno $ +\GetIdInfo$Id: l3seq.dtx 3158 2012-01-09 00:47:42Z bruno $ {L3 Experimental sequences and stacks} \ProvidesExplPackage {\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} @@ -56,8 +56,8 @@ \msg_expandable_kernel_error:nn { seq } { misused } \use_none:n } -\tl_new:N \l_seq_tmpa_tl -\tl_new:N \l_seq_tmpb_tl +\tl_new:N \l_seq_internal_a_tl +\tl_new:N \l_seq_internal_b_tl \cs_new_eq:NN \seq_new:N \tl_new:N \cs_new_eq:NN \seq_new:c \tl_new:c \cs_new_eq:NN \seq_clear:N \tl_clear:N @@ -85,19 +85,19 @@ \tl_if_empty:nTF {#3} { #1 #2 { \tl_map_function:nN {#4} \seq_wrap_item:n } } { - \tl_set:Nn \l_seq_tmpa_tl + \tl_set:Nn \l_seq_internal_a_tl { \seq_set_split_aux_i:w \prg_do_nothing: #4 \seq_set_split_aux_end: } - \tl_replace_all:Nnn \l_seq_tmpa_tl { #3 } + \tl_replace_all:Nnn \l_seq_internal_a_tl { #3 } { \seq_set_split_aux_end: \seq_set_split_aux_i:w \prg_do_nothing: } - \tl_set:Nx \l_seq_tmpa_tl { \l_seq_tmpa_tl } - #1 #2 { \l_seq_tmpa_tl } + \tl_set:Nx \l_seq_internal_a_tl { \l_seq_internal_a_tl } + #1 #2 { \l_seq_internal_a_tl } } } \cs_new:Npn \seq_set_split_aux_i:w #1 \seq_set_split_aux_end: @@ -131,20 +131,20 @@ \cs_generate_variant:Nn \seq_gput_right:Nn { NV , Nv , No , Nx } \cs_generate_variant:Nn \seq_gput_right:Nn { c , cV , cv , co , cx } \cs_new:Npn \seq_wrap_item:n #1 { \exp_not:n { \seq_item:n {#1} } } -\seq_new:N \l_seq_remove_seq +\seq_new:N \l_seq_internal_remove_seq \cs_new_protected:Npn \seq_remove_duplicates:N { \seq_remove_duplicates_aux:NN \seq_set_eq:NN } \cs_new_protected:Npn \seq_gremove_duplicates:N { \seq_remove_duplicates_aux:NN \seq_gset_eq:NN } \cs_new_protected:Npn \seq_remove_duplicates_aux:NN #1#2 { - \seq_clear:N \l_seq_remove_seq + \seq_clear:N \l_seq_internal_remove_seq \seq_map_inline:Nn #2 { - \seq_if_in:NnF \l_seq_remove_seq {##1} - { \seq_put_right:Nn \l_seq_remove_seq {##1} } + \seq_if_in:NnF \l_seq_internal_remove_seq {##1} + { \seq_put_right:Nn \l_seq_internal_remove_seq {##1} } } - #1 #2 \l_seq_remove_seq + #1 #2 \l_seq_internal_remove_seq } \cs_generate_variant:Nn \seq_remove_duplicates:N { c } \cs_generate_variant:Nn \seq_gremove_duplicates:N { c } @@ -159,16 +159,16 @@ \str_if_eq:nnT {##1} {#3} { \if_false: { \fi: } - \tl_set:Nn \l_seq_tmpb_tl {##1} + \tl_set:Nn \l_seq_internal_b_tl {##1} #1 #2 { \if_false: } \fi: \exp_not:o {#2} - \tl_if_eq:NNT \l_seq_tmpa_tl \l_seq_tmpb_tl + \tl_if_eq:NNT \l_seq_internal_a_tl \l_seq_internal_b_tl { \use_none:nn } } \seq_wrap_item:n {##1} } - \tl_set:Nn \l_seq_tmpa_tl {#3} + \tl_set:Nn \l_seq_internal_a_tl {#3} #1 #2 {#2} \seq_pop_item_def: } @@ -182,11 +182,11 @@ { T , F , TF } { \group_begin: - \tl_set:Nn \l_seq_tmpa_tl {#2} + \tl_set:Nn \l_seq_internal_a_tl {#2} \cs_set_protected:Npn \seq_item:n ##1 { - \tl_set:Nn \l_seq_tmpb_tl {##1} - \if_meaning:w \l_seq_tmpa_tl \l_seq_tmpb_tl + \tl_set:Nn \l_seq_internal_b_tl {##1} + \if_meaning:w \l_seq_internal_a_tl \l_seq_internal_b_tl \exp_after:wN \seq_if_in_aux: \fi: } @@ -476,7 +476,7 @@ { \use_none:n #2 \int_compare:nNnTF {#1} = \c_zero - { \seq_break:n {#3} } + { \seq_break:n { \exp_not:n {#3} } } { \exp_args:Nf \seq_item_aux:nnn { \int_eval:n { #1 - 1 } } } } \cs_generate_variant:Nn \seq_item:Nn { c } |