[latex3-commits] [l3svn] branch master updated: Another \tl_to_lowercase; n removed
noreply at latex-project.org
noreply at latex-project.org
Wed Mar 23 13:04:09 CET 2016
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
The following commit(s) were added to refs/heads/master by this push:
new 394e9f6 Another \tl_to_lowercase;n removed
394e9f6 is described below
commit 394e9f6669cee0219328c51e2006f84a4a5bce05
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Mar 23 12:03:41 2016 +0000
Another \tl_to_lowercase;n removed
This one didn't actually seem to be 'active'!
---
l3experimental/l3str/l3str-format.dtx | 57 +++++++++++++++------------------
1 file changed, 26 insertions(+), 31 deletions(-)
diff --git a/l3experimental/l3str/l3str-format.dtx b/l3experimental/l3str/l3str-format.dtx
index 3994fc4..97127d1 100644
--- a/l3experimental/l3str/l3str-format.dtx
+++ b/l3experimental/l3str/l3str-format.dtx
@@ -825,42 +825,37 @@
% case, round to |#4+1| significant figures (one before the decimal
% separator, |#4| after).
% \begin{macrocode}
-\group_begin:
-\char_set_catcode_other:N E
-\tl_to_lowercase:n
+\cs_new:Npn \@@_fp_e:wn \s__fp \__fp_chk:w #1#2#3 ; #4
{
- \group_end:
- \cs_new:Npn \@@_fp_e:wn \s__fp \__fp_chk:w #1#2#3 ; #4
+ \int_case:nnF {#1}
{
- \int_case:nnF {#1}
- {
- {0} { \use:nf { 0 . } { \prg_replicate:nn {#4} { 0 } } e 0 }
- {2} { inf }
- {3} { nan }
- }
- {
- \exp_last_unbraced:Nf \@@_fp_e_aux:wn
- \@@_fp_round:wn \s__fp \__fp_chk:w #1#2#3 ; { #4 + 1 }
- {#4}
- }
+ { 0 } { \use:nf { 0 . } { \prg_replicate:nn {#4} { 0 } } e 0 }
+ { 2 } { inf }
+ { 3 } { nan }
}
- \cs_new:Npn \@@_fp_e_aux:wn
- \s__fp \__fp_chk:w #1#2 #3 #4#5#6#7 ; #8
{
- \@@_put:fw { \int_eval:n { #3 - 1 } }
- \@@_put:nw { e }
- \int_compare:nNnTF {#8} > \c_sixteen
- {
- \@@_put:fw { \prg_replicate:nn { #8 - \c_fifteen } {0} }
- \@@_put:fw { \use_none:n #4#5#6#7 }
- }
- {
- \@@_put:fw
- { \str_range:nnn { #4#5#6#7 0 } { 2 } { #8 + 1 } }
- }
- \@@_put:fw { \use_i:nnnn #4 . }
- \use_none:n \s__stop
+ \exp_last_unbraced:Nf \@@_fp_e_aux:wn
+ \@@_fp_round:wn \s__fp \__fp_chk:w #1#2#3 ; { #4 + 1 }
+ {#4}
+ }
+ }
+\cs_new:Npn \@@_fp_e_aux:wn
+ \s__fp \__fp_chk:w #1#2 #3 #4#5#6#7 ; #8
+ {
+ \@@_put:fw { \int_eval:n { #3 - 1 } }
+ \@@_put:nw { e }
+ \int_compare:nNnTF {#8} > \c_sixteen
+ {
+ \@@_put:fw { \prg_replicate:nn { #8 - \c_fifteen } {0} }
+ \@@_put:fw { \use_none:n #4#5#6#7 }
+ }
+ {
+ \@@_put:fw
+ { \str_range:nnn { #4#5#6#7 0 } { 2 } { #8 + 1 } }
}
+ \@@_put:fw { \use_i:nnnn #4 . }
+ \use_none:n \s__stop
+ }
}
% \end{macrocode}
% \end{macro}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list