[latex3-commits] [l3svn] 01/03: Tighten up \str_range:nnn docs

noreply at latex-project.org noreply at latex-project.org
Sun Feb 21 22:33:38 CET 2016


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit e77a43b8070c1deb920af6aec72740f273d55706
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Feb 21 20:06:50 2016 +0000

    Tighten up \str_range:nnn docs
---
 l3kernel/l3str.dtx |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/l3kernel/l3str.dtx b/l3kernel/l3str.dtx
index b27abe7..e09c8c2 100644
--- a/l3kernel/l3str.dtx
+++ b/l3kernel/l3str.dtx
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-%% File: l3str.dtx Copyright (C) 2011-2015 The LaTeX3 Project
+%% File: l3str.dtx Copyright (C) 2011-2016 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
@@ -425,8 +425,15 @@
 %     \iow_term:x { \str_range:nnn { abcdef } { -2 } { -1 } }
 %     \iow_term:x { \str_range:nnn { abcdef } { 0 } { -1 } }
 %   \end{verbatim}
-%   will print \texttt{bcd}, \texttt{cdef}, \texttt{ef}, and an empty
-%   line to the terminal.
+%   will print \texttt{bcde}, \texttt{cdef}, \texttt{ef}, and an empty
+%   line to the terminal. The \meta{start index} must always be smaller than
+%   or equal to the \meta{end index}: if this is not the case then no output
+%   is generated. Thus
+%   \begin{verbatim}
+%     \iow_term:x { \str_range:nnn { abcdef } { 5 } { 2 } }
+%     \iow_term:x { \str_range:nnn { abcdef } { -1 } { -4 } }
+%   \end{verbatim}
+%   both yield empty strings.
 % \end{function}
 %
 % \section{String manipulation}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list