[latex3-commits] [git/LaTeX3-latex3-latex3] master: Add \prop_(g)put:Nnn and \prop_get:Nn(TF) variants (e12816509)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Jun 23 14:10:06 CEST 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/e128165099e9eb9d918e5f1d47f4b4dc4bc08ff4

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

commit e128165099e9eb9d918e5f1d47f4b4dc4bc08ff4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Jun 22 09:59:18 2020 +0100

    Add \prop_(g)put:Nnn and \prop_get:Nn(TF)  variants
    
    To allow a bit more flexibility in the data management.


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

e128165099e9eb9d918e5f1d47f4b4dc4bc08ff4
 l3kernel/l3prop.dtx | 46 +++++++++++++++++++++++++++-------------------
 1 file changed, 27 insertions(+), 19 deletions(-)

diff --git a/l3kernel/l3prop.dtx b/l3kernel/l3prop.dtx
index a85becf5e..cb1b2910b 100644
--- a/l3kernel/l3prop.dtx
+++ b/l3kernel/l3prop.dtx
@@ -146,13 +146,17 @@
 % \begin{function}[updated = 2012-07-09]
 %   {
 %     \prop_put:Nnn,  \prop_put:NnV,  \prop_put:Nno,  \prop_put:Nnx,
-%     \prop_put:NVn,  \prop_put:NVV,  \prop_put:Non,  \prop_put:Noo,
+%     \prop_put:NVn,  \prop_put:NVV,  \prop_put:NVx,  \prop_put:Nvx, 
+%     \prop_put:Non,  \prop_put:Noo,
 %     \prop_put:cnn,  \prop_put:cnV,  \prop_put:cno,  \prop_put:cnx,
-%     \prop_put:cVn,  \prop_put:cVV,  \prop_put:con,  \prop_put:coo,
+%     \prop_put:cVn,  \prop_put:cVV,  \prop_put:cVx,  \prop_put:cvx, 
+%     \prop_put:con,  \prop_put:coo,
 %     \prop_gput:Nnn, \prop_gput:NnV, \prop_gput:Nno, \prop_gput:Nnx,
-%     \prop_gput:NVn, \prop_gput:NVV, \prop_gput:Non, \prop_gput:Noo,
+%     \prop_gput:NVn, \prop_gput:NVV, \prop_gput:NVx, \prop_gput:Nvx,
+%     \prop_gput:Non, \prop_gput:Noo,
 %     \prop_gput:cnn, \prop_gput:cnV, \prop_gput:cno, \prop_gput:cnx,
-%     \prop_gput:cVn, \prop_gput:cVV, \prop_gput:con, \prop_gput:coo
+%     \prop_gput:cVn, \prop_gput:cVV, \prop_gput:cVx, \prop_gput:cvx, 
+%     \prop_gput:con, \prop_gput:coo
 %   }
 %   \begin{syntax}
 %     \cs{prop_put:Nnn} \meta{property list} \Arg{key} \Arg{value}
@@ -186,8 +190,8 @@
 %
 % \begin{function}[updated = 2011-08-28]
 %   {
-%     \prop_get:NnN, \prop_get:NVN, \prop_get:NoN,
-%     \prop_get:cnN, \prop_get:cVN, \prop_get:coN,
+%     \prop_get:NnN, \prop_get:NVN, \prop_get:NvN, \prop_get:NoN,
+%     \prop_get:cnN, \prop_get:cVN, \prop_get:cvN, \prop_get:coN,
 %   }
 %   \begin{syntax}
 %     \cs{prop_get:NnN} \meta{property list} \Arg{key} \meta{tl var}
@@ -319,8 +323,8 @@
 %
 % \begin{function}[updated = 2012-05-19, TF]
 %   {
-%     \prop_get:NnN, \prop_get:NVN, \prop_get:NoN,
-%     \prop_get:cnN, \prop_get:cVN, \prop_get:coN
+%     \prop_get:NnN, \prop_get:NVN, \prop_get:NvN, \prop_get:NoN,
+%     \prop_get:cnN, \prop_get:cVN, \prop_get:cvN, \prop_get:coN
 %   }
 %   \begin{syntax}
 %     \cs{prop_get:NnNTF} \meta{property list} \Arg{key} \meta{token list variable} \\
@@ -911,8 +915,8 @@
       { \tl_set:Nn #3 {##2} }
       { \tl_set:Nn #3 { \q_no_value } }
   }
-\cs_generate_variant:Nn \prop_get:NnN {     NV , No }
-\cs_generate_variant:Nn \prop_get:NnN { c , cV , co }
+\cs_generate_variant:Nn \prop_get:NnN {     NV , Nv , No }
+\cs_generate_variant:Nn \prop_get:NnN { c , cV , cv , co }
 %    \end{macrocode}
 % \end{macro}
 %
@@ -1038,16 +1042,20 @@
 % \begin{macro}[tested = m3prop002]
 %   {
 %     \prop_put:Nnn, \prop_put:NnV, \prop_put:Nno, \prop_put:Nnx,
-%     \prop_put:NVn, \prop_put:NVV, \prop_put:Non, \prop_put:Noo,
+%     \prop_put:NVn, \prop_put:NVV, \prop_put:NVx, \prop_put:Nvx,
+%     \prop_put:Non, \prop_put:Noo,
 %     \prop_put:cnn, \prop_put:cnV, \prop_put:cno, \prop_put:cnx,
-%     \prop_put:cVn, \prop_put:cVV, \prop_put:con, \prop_put:coo
+%     \prop_put:cVn, \prop_put:cVV, \prop_put:cVx, \prop_put:cvx,
+%     \prop_put:con, \prop_put:coo
 %   }
 % \begin{macro}[tested = m3prop002]
 %   {
 %     \prop_gput:Nnn, \prop_gput:NnV, \prop_gput:Nno, \prop_gput:Nnx,
-%     \prop_gput:NVn, \prop_gput:NVV, \prop_gput:Non, \prop_gput:Noo,
+%     \prop_gput:NVn, \prop_gput:NVV, \prop_hput:NVx, \prop_hput:Nvx,
+%     \prop_gput:Non, \prop_gput:Noo,
 %     \prop_gput:cnn, \prop_gput:cnV, \prop_gput:cno, \prop_gput:cnx,
-%     \prop_gput:cVn, \prop_gput:cVV, \prop_gput:con, \prop_gput:coo
+%     \prop_gput:cVn, \prop_gput:cVV, \prop_gput:cVx, \prop_gput:cvx,
+%     \prop_gput:con, \prop_gput:coo
 %   }
 % \begin{macro}{\@@_put:NNnn}
 %   Since the branches of \cs{@@_split:NnTF} are used as the replacement
@@ -1077,13 +1085,13 @@
       { #1 #2 { \exp_not:o {#2} \l_@@_internal_tl } }
   }
 \cs_generate_variant:Nn \prop_put:Nnn
-  {     NnV , Nno , Nnx , NV , NVV , No , Noo }
+  {     NnV , Nno , Nnx , NV , NVV , NVx , Nvx , No , Noo }
 \cs_generate_variant:Nn \prop_put:Nnn
-  { c , cnV , cno , cnx , cV , cVV , co , coo }
+  { c , cnV , cno , cnx , cV , cVV , cVx , cvx , co , coo }
 \cs_generate_variant:Nn \prop_gput:Nnn
-  {     NnV , Nno , Nnx , NV , NVV , No , Noo }
+  {     NnV , Nno , Nnx , NV , NVV , NVx , Nvx , No , Noo }
 \cs_generate_variant:Nn \prop_gput:Nnn
-  { c , cnV , cno , cnx , cV , cVV , co , coo }
+  { c , cnV , cno , cnx , cV , cVV , cVx , cvx , co , coo }
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -1230,7 +1238,7 @@
       { \prg_return_false: }
   }
 \prg_generate_conditional_variant:Nnn \prop_get:NnN
-  { NV , No , c , cV , co } { T , F , TF }
+  { NV , Nv , No , c , cV , cv , co } { T , F , TF }
 %    \end{macrocode}
 % \end{macro}
 %





More information about the latex3-commits mailing list.