[latex3-commits] [git/LaTeX3-latex3-latex3] prop: Move \prop_count:N to stable (ddbe193)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Feb 26 23:57:15 CET 2019
Repository : https://github.com/latex3/latex3
On branch : prop
Link : https://github.com/latex3/latex3/commit/ddbe1931431b37c007aab358237c30fd6c774c91
>---------------------------------------------------------------
commit ddbe1931431b37c007aab358237c30fd6c774c91
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Feb 26 22:57:15 2019 +0000
Move \prop_count:N to stable
>---------------------------------------------------------------
ddbe1931431b37c007aab358237c30fd6c774c91
l3kernel/CHANGELOG.md | 1 +
l3kernel/l3candidates.dtx | 29 -----------------------------
l3kernel/l3prop.dtx | 29 +++++++++++++++++++++++++++++
l3kernel/testfiles/m3expl001.luatex.tlg | 6 +++---
l3kernel/testfiles/m3expl001.ptex.tlg | 6 +++---
l3kernel/testfiles/m3expl001.tlg | 6 +++---
l3kernel/testfiles/m3expl001.uptex.tlg | 6 +++---
l3kernel/testfiles/m3expl001.xetex.tlg | 6 +++---
l3kernel/testfiles/m3expl003.luatex.tlg | 6 +++---
l3kernel/testfiles/m3expl003.ptex.tlg | 6 +++---
l3kernel/testfiles/m3expl003.tlg | 6 +++---
l3kernel/testfiles/m3expl003.uptex.tlg | 6 +++---
l3kernel/testfiles/m3expl003.xetex.tlg | 6 +++---
13 files changed, 60 insertions(+), 59 deletions(-)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 72370dd..82a7c81 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -17,6 +17,7 @@ this project uses date-based 'snapshot' version identifiers.
- Return values from `\file_get:nnN`, `\file_get_...:nN`, \ior_get:NN\,
`\sys_shell_get:nnN`
- Moved coffin affine transformations to stable
+- Moved `\prop_count:N` to stable
- Moved `\tl_count_tokens:n` to stable
### Removed
diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index c21da00..2495415 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -598,14 +598,6 @@
%
% \section{Additions to \pkg{l3prop}}
%
-% \begin{function}[EXP]{\prop_count:N, \prop_count:c}
-% \begin{syntax}
-% \cs{prop_count:N} \meta{property list}
-% \end{syntax}
-% Leaves the number of key--value pairs in the \meta{property list} in
-% the input stream as an \meta{integer denotation}.
-% \end{function}
-%
% \begin{function}[rEXP]
% {\prop_map_tokens:Nn, \prop_map_tokens:cn}
% \begin{syntax}
@@ -1926,27 +1918,6 @@
%<@@=prop>
% \end{macrocode}
%
-% \begin{macro}[EXP]{\prop_count:N, \prop_count:c}
-% \begin{macro}[EXP]{\@@_count:nn}
-% Counting the key--value pairs in a property list is done using the
-% same approach as for other count functions: turn each entry into a
-% \texttt{+1} then use integer evaluation to actually do the
-% mathematics.
-% \begin{macrocode}
-\cs_new:Npn \prop_count:N #1
- {
- \int_eval:n
- {
- 0
- \prop_map_function:NN #1 \@@_count:nn
- }
- }
-\cs_new:Npn \@@_count:nn #1#2 { + 1 }
-\cs_generate_variant:Nn \prop_count:N { c }
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
% \begin{macro}[rEXP]{\prop_map_tokens:Nn, \prop_map_tokens:cn}
% \begin{macro}{\@@_map_tokens:nwwn}
% The mapping is very similar to \cs{prop_map_function:NN}. The
diff --git a/l3kernel/l3prop.dtx b/l3kernel/l3prop.dtx
index b3f7077..835e1ea 100644
--- a/l3kernel/l3prop.dtx
+++ b/l3kernel/l3prop.dtx
@@ -216,6 +216,14 @@
% \end{texnote}
% \end{function}
%
+% \begin{function}[EXP]{\prop_count:N, \prop_count:c}
+% \begin{syntax}
+% \cs{prop_count:N} \meta{property list}
+% \end{syntax}
+% Leaves the number of key--value pairs in the \meta{property list} in
+% the input stream as an \meta{integer denotation}.
+% \end{function}
+%
% \section{Modifying property lists}
%
% \begin{function}[added = 2012-05-12]
@@ -872,6 +880,27 @@
% \end{macro}
% \end{macro}
%
+% \begin{macro}[EXP]{\prop_count:N, \prop_count:c}
+% \begin{macro}[EXP]{\@@_count:nn}
+% Counting the key--value pairs in a property list is done using the
+% same approach as for other count functions: turn each entry into a
+% \texttt{+1} then use integer evaluation to actually do the
+% mathematics.
+% \begin{macrocode}
+\cs_new:Npn \prop_count:N #1
+ {
+ \int_eval:n
+ {
+ 0
+ \prop_map_function:NN #1 \@@_count:nn
+ }
+ }
+\cs_new:Npn \@@_count:nn #1#2 { + 1 }
+\cs_generate_variant:Nn \prop_count:N { c }
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
% \begin{macro}[TF, tested = m3prop004]
% {\prop_pop:NnN, \prop_pop:cnN, \prop_gpop:NnN, \prop_gpop:cnN}
% Popping an item from a property list, keeping track of whether
diff --git a/l3kernel/testfiles/m3expl001.luatex.tlg b/l3kernel/testfiles/m3expl001.luatex.tlg
index 2c29c58..97e649b 100644
--- a/l3kernel/testfiles/m3expl001.luatex.tlg
+++ b/l3kernel/testfiles/m3expl001.luatex.tlg
@@ -2360,6 +2360,9 @@ Defining \prop_gpop:coN on line ...
Defining \prop_item:Nn on line ...
Defining \__prop_item_Nn:nwwn on line ...
Defining \prop_item:cn on line ...
+Defining \prop_count:N on line ...
+Defining \__prop_count:nn on line ...
+Defining \prop_count:c on line ...
Defining \prop_pop:NnNT on line ...
Defining \prop_pop:NnNF on line ...
Defining \prop_pop:NnNTF on line ...
@@ -5997,9 +6000,6 @@ Defining \bool_set_inverse:N on line ...
Defining \bool_set_inverse:c on line ...
Defining \bool_gset_inverse:N on line ...
Defining \bool_gset_inverse:c on line ...
-Defining \prop_count:N on line ...
-Defining \__prop_count:nn on line ...
-Defining \prop_count:c on line ...
Defining \prop_map_tokens:Nn on line ...
Defining \__prop_map_tokens:nwwn on line ...
Defining \prop_map_tokens:cn on line ...
diff --git a/l3kernel/testfiles/m3expl001.ptex.tlg b/l3kernel/testfiles/m3expl001.ptex.tlg
index 5db63c2..1d8561a 100644
--- a/l3kernel/testfiles/m3expl001.ptex.tlg
+++ b/l3kernel/testfiles/m3expl001.ptex.tlg
@@ -2652,6 +2652,9 @@ Defining \prop_gpop:coN on line ...
Defining \prop_item:Nn on line ...
Defining \__prop_item_Nn:nwwn on line ...
Defining \prop_item:cn on line ...
+Defining \prop_count:N on line ...
+Defining \__prop_count:nn on line ...
+Defining \prop_count:c on line ...
Defining \prop_pop:NnNT on line ...
Defining \prop_pop:NnNF on line ...
Defining \prop_pop:NnNTF on line ...
@@ -6030,9 +6033,6 @@ Defining \bool_set_inverse:N on line ...
Defining \bool_set_inverse:c on line ...
Defining \bool_gset_inverse:N on line ...
Defining \bool_gset_inverse:c on line ...
-Defining \prop_count:N on line ...
-Defining \__prop_count:nn on line ...
-Defining \prop_count:c on line ...
Defining \prop_map_tokens:Nn on line ...
Defining \__prop_map_tokens:nwwn on line ...
Defining \prop_map_tokens:cn on line ...
diff --git a/l3kernel/testfiles/m3expl001.tlg b/l3kernel/testfiles/m3expl001.tlg
index 4b43c45..2e59dd6 100644
--- a/l3kernel/testfiles/m3expl001.tlg
+++ b/l3kernel/testfiles/m3expl001.tlg
@@ -2652,6 +2652,9 @@ Defining \prop_gpop:coN on line ...
Defining \prop_item:Nn on line ...
Defining \__prop_item_Nn:nwwn on line ...
Defining \prop_item:cn on line ...
+Defining \prop_count:N on line ...
+Defining \__prop_count:nn on line ...
+Defining \prop_count:c on line ...
Defining \prop_pop:NnNT on line ...
Defining \prop_pop:NnNF on line ...
Defining \prop_pop:NnNTF on line ...
@@ -6030,9 +6033,6 @@ Defining \bool_set_inverse:N on line ...
Defining \bool_set_inverse:c on line ...
Defining \bool_gset_inverse:N on line ...
Defining \bool_gset_inverse:c on line ...
-Defining \prop_count:N on line ...
-Defining \__prop_count:nn on line ...
-Defining \prop_count:c on line ...
Defining \prop_map_tokens:Nn on line ...
Defining \__prop_map_tokens:nwwn on line ...
Defining \prop_map_tokens:cn on line ...
diff --git a/l3kernel/testfiles/m3expl001.uptex.tlg b/l3kernel/testfiles/m3expl001.uptex.tlg
index dde2dc0..d9119ae 100644
--- a/l3kernel/testfiles/m3expl001.uptex.tlg
+++ b/l3kernel/testfiles/m3expl001.uptex.tlg
@@ -2652,6 +2652,9 @@ Defining \prop_gpop:coN on line ...
Defining \prop_item:Nn on line ...
Defining \__prop_item_Nn:nwwn on line ...
Defining \prop_item:cn on line ...
+Defining \prop_count:N on line ...
+Defining \__prop_count:nn on line ...
+Defining \prop_count:c on line ...
Defining \prop_pop:NnNT on line ...
Defining \prop_pop:NnNF on line ...
Defining \prop_pop:NnNTF on line ...
@@ -6027,9 +6030,6 @@ Defining \bool_set_inverse:N on line ...
Defining \bool_set_inverse:c on line ...
Defining \bool_gset_inverse:N on line ...
Defining \bool_gset_inverse:c on line ...
-Defining \prop_count:N on line ...
-Defining \__prop_count:nn on line ...
-Defining \prop_count:c on line ...
Defining \prop_map_tokens:Nn on line ...
Defining \__prop_map_tokens:nwwn on line ...
Defining \prop_map_tokens:cn on line ...
diff --git a/l3kernel/testfiles/m3expl001.xetex.tlg b/l3kernel/testfiles/m3expl001.xetex.tlg
index ebab8d8..aaa69e6 100644
--- a/l3kernel/testfiles/m3expl001.xetex.tlg
+++ b/l3kernel/testfiles/m3expl001.xetex.tlg
@@ -2397,6 +2397,9 @@ Defining \prop_gpop:coN on line ...
Defining \prop_item:Nn on line ...
Defining \__prop_item_Nn:nwwn on line ...
Defining \prop_item:cn on line ...
+Defining \prop_count:N on line ...
+Defining \__prop_count:nn on line ...
+Defining \prop_count:c on line ...
Defining \prop_pop:NnNT on line ...
Defining \prop_pop:NnNF on line ...
Defining \prop_pop:NnNTF on line ...
@@ -6008,9 +6011,6 @@ Defining \bool_set_inverse:N on line ...
Defining \bool_set_inverse:c on line ...
Defining \bool_gset_inverse:N on line ...
Defining \bool_gset_inverse:c on line ...
-Defining \prop_count:N on line ...
-Defining \__prop_count:nn on line ...
-Defining \prop_count:c on line ...
Defining \prop_map_tokens:Nn on line ...
Defining \__prop_map_tokens:nwwn on line ...
Defining \prop_map_tokens:cn on line ...
diff --git a/l3kernel/testfiles/m3expl003.luatex.tlg b/l3kernel/testfiles/m3expl003.luatex.tlg
index 2c29c58..97e649b 100644
--- a/l3kernel/testfiles/m3expl003.luatex.tlg
+++ b/l3kernel/testfiles/m3expl003.luatex.tlg
@@ -2360,6 +2360,9 @@ Defining \prop_gpop:coN on line ...
Defining \prop_item:Nn on line ...
Defining \__prop_item_Nn:nwwn on line ...
Defining \prop_item:cn on line ...
+Defining \prop_count:N on line ...
+Defining \__prop_count:nn on line ...
+Defining \prop_count:c on line ...
Defining \prop_pop:NnNT on line ...
Defining \prop_pop:NnNF on line ...
Defining \prop_pop:NnNTF on line ...
@@ -5997,9 +6000,6 @@ Defining \bool_set_inverse:N on line ...
Defining \bool_set_inverse:c on line ...
Defining \bool_gset_inverse:N on line ...
Defining \bool_gset_inverse:c on line ...
-Defining \prop_count:N on line ...
-Defining \__prop_count:nn on line ...
-Defining \prop_count:c on line ...
Defining \prop_map_tokens:Nn on line ...
Defining \__prop_map_tokens:nwwn on line ...
Defining \prop_map_tokens:cn on line ...
diff --git a/l3kernel/testfiles/m3expl003.ptex.tlg b/l3kernel/testfiles/m3expl003.ptex.tlg
index 5db63c2..1d8561a 100644
--- a/l3kernel/testfiles/m3expl003.ptex.tlg
+++ b/l3kernel/testfiles/m3expl003.ptex.tlg
@@ -2652,6 +2652,9 @@ Defining \prop_gpop:coN on line ...
Defining \prop_item:Nn on line ...
Defining \__prop_item_Nn:nwwn on line ...
Defining \prop_item:cn on line ...
+Defining \prop_count:N on line ...
+Defining \__prop_count:nn on line ...
+Defining \prop_count:c on line ...
Defining \prop_pop:NnNT on line ...
Defining \prop_pop:NnNF on line ...
Defining \prop_pop:NnNTF on line ...
@@ -6030,9 +6033,6 @@ Defining \bool_set_inverse:N on line ...
Defining \bool_set_inverse:c on line ...
Defining \bool_gset_inverse:N on line ...
Defining \bool_gset_inverse:c on line ...
-Defining \prop_count:N on line ...
-Defining \__prop_count:nn on line ...
-Defining \prop_count:c on line ...
Defining \prop_map_tokens:Nn on line ...
Defining \__prop_map_tokens:nwwn on line ...
Defining \prop_map_tokens:cn on line ...
diff --git a/l3kernel/testfiles/m3expl003.tlg b/l3kernel/testfiles/m3expl003.tlg
index 4b43c45..2e59dd6 100644
--- a/l3kernel/testfiles/m3expl003.tlg
+++ b/l3kernel/testfiles/m3expl003.tlg
@@ -2652,6 +2652,9 @@ Defining \prop_gpop:coN on line ...
Defining \prop_item:Nn on line ...
Defining \__prop_item_Nn:nwwn on line ...
Defining \prop_item:cn on line ...
+Defining \prop_count:N on line ...
+Defining \__prop_count:nn on line ...
+Defining \prop_count:c on line ...
Defining \prop_pop:NnNT on line ...
Defining \prop_pop:NnNF on line ...
Defining \prop_pop:NnNTF on line ...
@@ -6030,9 +6033,6 @@ Defining \bool_set_inverse:N on line ...
Defining \bool_set_inverse:c on line ...
Defining \bool_gset_inverse:N on line ...
Defining \bool_gset_inverse:c on line ...
-Defining \prop_count:N on line ...
-Defining \__prop_count:nn on line ...
-Defining \prop_count:c on line ...
Defining \prop_map_tokens:Nn on line ...
Defining \__prop_map_tokens:nwwn on line ...
Defining \prop_map_tokens:cn on line ...
diff --git a/l3kernel/testfiles/m3expl003.uptex.tlg b/l3kernel/testfiles/m3expl003.uptex.tlg
index dde2dc0..d9119ae 100644
--- a/l3kernel/testfiles/m3expl003.uptex.tlg
+++ b/l3kernel/testfiles/m3expl003.uptex.tlg
@@ -2652,6 +2652,9 @@ Defining \prop_gpop:coN on line ...
Defining \prop_item:Nn on line ...
Defining \__prop_item_Nn:nwwn on line ...
Defining \prop_item:cn on line ...
+Defining \prop_count:N on line ...
+Defining \__prop_count:nn on line ...
+Defining \prop_count:c on line ...
Defining \prop_pop:NnNT on line ...
Defining \prop_pop:NnNF on line ...
Defining \prop_pop:NnNTF on line ...
@@ -6027,9 +6030,6 @@ Defining \bool_set_inverse:N on line ...
Defining \bool_set_inverse:c on line ...
Defining \bool_gset_inverse:N on line ...
Defining \bool_gset_inverse:c on line ...
-Defining \prop_count:N on line ...
-Defining \__prop_count:nn on line ...
-Defining \prop_count:c on line ...
Defining \prop_map_tokens:Nn on line ...
Defining \__prop_map_tokens:nwwn on line ...
Defining \prop_map_tokens:cn on line ...
diff --git a/l3kernel/testfiles/m3expl003.xetex.tlg b/l3kernel/testfiles/m3expl003.xetex.tlg
index ebab8d8..aaa69e6 100644
--- a/l3kernel/testfiles/m3expl003.xetex.tlg
+++ b/l3kernel/testfiles/m3expl003.xetex.tlg
@@ -2397,6 +2397,9 @@ Defining \prop_gpop:coN on line ...
Defining \prop_item:Nn on line ...
Defining \__prop_item_Nn:nwwn on line ...
Defining \prop_item:cn on line ...
+Defining \prop_count:N on line ...
+Defining \__prop_count:nn on line ...
+Defining \prop_count:c on line ...
Defining \prop_pop:NnNT on line ...
Defining \prop_pop:NnNF on line ...
Defining \prop_pop:NnNTF on line ...
@@ -6008,9 +6011,6 @@ Defining \bool_set_inverse:N on line ...
Defining \bool_set_inverse:c on line ...
Defining \bool_gset_inverse:N on line ...
Defining \bool_gset_inverse:c on line ...
-Defining \prop_count:N on line ...
-Defining \__prop_count:nn on line ...
-Defining \prop_count:c on line ...
Defining \prop_map_tokens:Nn on line ...
Defining \__prop_map_tokens:nwwn on line ...
Defining \prop_map_tokens:cn on line ...
More information about the latex3-commits
mailing list