diff options
Diffstat (limited to 'macros/latex/contrib/l3kernel/l3str.dtx')
-rw-r--r-- | macros/latex/contrib/l3kernel/l3str.dtx | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/macros/latex/contrib/l3kernel/l3str.dtx b/macros/latex/contrib/l3kernel/l3str.dtx index 09dde6a4eb..9947592862 100644 --- a/macros/latex/contrib/l3kernel/l3str.dtx +++ b/macros/latex/contrib/l3kernel/l3str.dtx @@ -2,7 +2,7 @@ % %% File: l3str.dtx % -% Copyright (C) 2011-2019 The LaTeX3 Project +% Copyright (C) 2011-2020 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 @@ -43,7 +43,7 @@ % }^^A % } % -% \date{Released 2019-11-07} +% \date{Released 2020-01-12} % % \maketitle % @@ -690,14 +690,14 @@ % % \section{String manipulation} % -% \begin{function}[EXP, added = 2015-03-01] +% \begin{function}[EXP, added = 2019-11-26] % { -% \str_lower_case:n, \str_lower_case:f, -% \str_upper_case:n, \str_upper_case:f +% \str_lowercase:n, \str_lowercase:f, +% \str_uppercase:n, \str_uppercase:f % } % \begin{syntax} -% \cs{str_lower_case:n} \Arg{tokens} -% \cs{str_upper_case:n} \Arg{tokens} +% \cs{str_lowercase:n} \Arg{tokens} +% \cs{str_uppercase:n} \Arg{tokens} % \end{syntax} % Converts the input \meta{tokens} to their string representation, as % described for \cs{tl_to_str:n}, and then to the lower or upper @@ -716,8 +716,8 @@ % \cs_set_protected:cpn % { % user -% \str_upper_case:f { \tl_head:n {#1} } -% \str_lower_case:f { \tl_tail:n {#1} } +% \str_uppercase:f { \tl_head:n {#1} } +% \str_lowercase:f { \tl_tail:n {#1} } % } % { #2 } % } @@ -728,19 +728,19 @@ % % These functions should \emph{not} be used for % \begin{itemize} -% \item Caseless comparisons: use \cs{str_fold_case:n} for this +% \item Caseless comparisons: use \cs{str_foldcase:n} for this % situation (case folding is distinct from lower casing). % \item Case changing text for typesetting: see the -% \cs[index=tl_lower_case:n]{tl_lower_case:n(n)}, -% \cs[index=tl_upper_case:n]{tl_upper_case:n(n)} and -% \cs[index=tl_mixed_case:n]{tl_mixed_case:n(n)} functions which +% \cs[index=text_lowercase:n]{text_lowercase:n(n)}, +% \cs[index=text_uppercase:n]{text_uppercase:n(n)} and +% \cs[index=text_titlecase:n]{text_titlecase:n(n)} functions which % correctly deal with context-dependence and other factors appropriate % to text case changing. % \end{itemize} % % \begin{texnote} % As with all \pkg{expl3} functions, the input supported by -% \cs{str_fold_case:n} is \emph{engine-native} characters which are or +% \cs{str_foldcase:n} is \emph{engine-native} characters which are or % interoperate with \textsc{utf-8}. As such, when used with \pdfTeX{} % \emph{only} the Latin alphabet characters A--Z are case-folded % (\emph{i.e.}~the \textsc{ascii} range which coincides with @@ -749,10 +749,10 @@ % \end{texnote} % \end{function} % -% \begin{function}[EXP, added = 2014-06-19, updated = 2016-03-07] -% {\str_fold_case:n, \str_fold_case:V} +% \begin{function}[EXP, added = 2019-11-26] +% {\str_foldcase:n, \str_foldcase:V} % \begin{syntax} -% \cs{str_fold_case:n} \Arg{tokens} +% \cs{str_foldcase:n} \Arg{tokens} % \end{syntax} % Converts the input \meta{tokens} to their string representation, as % described for \cs{tl_to_str:n}, and then folds the case of the resulting @@ -760,7 +760,7 @@ % left in the input stream. % % String folding is a process used for material such as identifiers rather -% than for \enquote{text}. The folding provided by \cs{str_fold_case:n} +% than for \enquote{text}. The folding provided by \cs{str_foldcase:n} % follows the mappings provided by the \href{http://www.unicode.org}^^A % {Unicode Consortium}, who % \href{http://www.unicode.org/faq/casemap_charprop.html#2}{state}: @@ -773,7 +773,7 @@ % should be used solely for internal processing and generally should not be % stored or displayed to the end user. % \end{quote} -% The folding approach implemented by \cs{str_fold_case:n} follows the +% The folding approach implemented by \cs{str_foldcase:n} follows the % \enquote{full} scheme defined by the Unicode Consortium % (\emph{e.g.}~\SS folds to \texttt{SS}). As case-folding is % a language-insensitive process, there is no special treatment of @@ -782,7 +782,7 @@ % % \begin{texnote} % As with all \pkg{expl3} functions, the input supported by -% \cs{str_fold_case:n} is \emph{engine-native} characters which are or +% \cs{str_foldcase:n} is \emph{engine-native} characters which are or % interoperate with \textsc{utf-8}. As such, when used with \pdfTeX{} % \emph{only} the Latin alphabet characters A--Z are case-folded % (\emph{i.e.}~the \textsc{ascii} range which coincides with @@ -1850,9 +1850,9 @@ % % \begin{macro}[EXP] % { -% \str_fold_case:n, \str_fold_case:V, -% \str_lower_case:n, \str_lower_case:f, -% \str_upper_case:n, \str_upper_case:f +% \str_foldcase:n, \str_foldcase:V, +% \str_lowercase:n, \str_lowercase:f, +% \str_uppercase:n, \str_uppercase:f % } % \begin{macro}[EXP]{\@@_change_case:nn} % \begin{macro}[EXP]{\@@_change_case_aux:nn} @@ -1867,12 +1867,12 @@ % and everything else. The output is detokenized to allow data sharing % with text-based case changing. % \begin{macrocode} -\cs_new:Npn \str_fold_case:n #1 { \@@_change_case:nn {#1} { fold } } -\cs_new:Npn \str_lower_case:n #1 { \@@_change_case:nn {#1} { lower } } -\cs_new:Npn \str_upper_case:n #1 { \@@_change_case:nn {#1} { upper } } -\cs_generate_variant:Nn \str_fold_case:n { V } -\cs_generate_variant:Nn \str_lower_case:n { f } -\cs_generate_variant:Nn \str_upper_case:n { f } +\cs_new:Npn \str_foldcase:n #1 { \@@_change_case:nn {#1} { fold } } +\cs_new:Npn \str_lowercase:n #1 { \@@_change_case:nn {#1} { lower } } +\cs_new:Npn \str_uppercase:n #1 { \@@_change_case:nn {#1} { upper } } +\cs_generate_variant:Nn \str_foldcase:n { V } +\cs_generate_variant:Nn \str_lowercase:n { f } +\cs_generate_variant:Nn \str_uppercase:n { f } \cs_new:Npn \@@_change_case:nn #1 { \exp_after:wN \@@_change_case_aux:nn \exp_after:wN @@ -1906,7 +1906,7 @@ \quark_if_recursion_tail_stop_do:Nn #2 { \@@_change_case_end:wn } \@@_change_case_output:fw - { \use:c { char_str_ #1 _case:N } #2 } + { \use:c { char_str_ #1 case:N } #2 } \@@_change_case_loop:nw {#1} } % \end{macrocode} |