summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3kernel/l3doc.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-05-14 22:40:31 +0000
committerKarl Berry <karl@freefriends.org>2018-05-14 22:40:31 +0000
commit4f72d8bc5b19c84f984da441c10a7c8e00963239 (patch)
treeaf6c22990635ed9d4b8a4d47065d0ef9482b3366 /Master/texmf-dist/tex/latex/l3kernel/l3doc.cls
parenta60c899015aeb03e242f1df83e8670f6c00a8bce (diff)
l3kernel (14may18)
git-svn-id: svn://tug.org/texlive/trunk@47718 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3kernel/l3doc.cls')
-rw-r--r--Master/texmf-dist/tex/latex/l3kernel/l3doc.cls24
1 files changed, 11 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/l3kernel/l3doc.cls b/Master/texmf-dist/tex/latex/l3kernel/l3doc.cls
index 4de17f6298d..dce81b3df6e 100644
--- a/Master/texmf-dist/tex/latex/l3kernel/l3doc.cls
+++ b/Master/texmf-dist/tex/latex/l3kernel/l3doc.cls
@@ -66,9 +66,6 @@
\bool_new:N \l__codedoc_names_verb_bool
\seq_new:N \l__codedoc_names_seq
\seq_new:N \g__codedoc_nested_names_seq
-\tl_const:Nx \c__codedoc_backslash_tl { \iow_char:N \\ }
-\exp_last_unbraced:NNo
- \cs_new_eq:NN \c__codedoc_backslash_token { \c__codedoc_backslash_tl }
\tl_new:N \l__codedoc_index_macro_tl
\tl_new:N \l__codedoc_index_key_tl
\tl_new:N \l__codedoc_index_module_tl
@@ -482,7 +479,7 @@
\cs_set_protected:Npn \ifnot@excluded
{
\exp_args:Nxx \expanded@notin
- { \c__codedoc_backslash_tl \tl_to_str:N \macro@namepart , }
+ { \c_backslash_str \tl_to_str:N \macro@namepart , }
{ \exp_args:NV \tl_to_str:n \index@excludelist }
}
\cs_new:Npn \pdfstringnewline { : ~ }
@@ -544,12 +541,12 @@
\DeclareDocumentCommand \cmd { O{} m }
{ \__codedoc_cmd:no {#1} { \token_to_str:N #2 } }
\DeclareDocumentCommand \cs { O{} m }
- { \__codedoc_cmd:no {#1} { \c__codedoc_backslash_tl #2 } }
+ { \__codedoc_cmd:no {#1} { \c_backslash_str #2 } }
\DeclareDocumentCommand \tn { O{} m }
{
\__codedoc_cmd:no
{ module = TeX , replace = false , #1 }
- { \c__codedoc_backslash_tl #2 }
+ { \c_backslash_str #2 }
}
\DeclareDocumentCommand \meta { m }
{ \__codedoc_meta:n {#1} }
@@ -778,8 +775,8 @@
\cs_new_protected:Npn \__codedoc_get_hyper_target:nN #1#2
{
\tl_set:Nx #2 { \tl_to_str:n {#1} }
- \tl_replace_all:Nxn #2 { \iow_char:N \_ } { / }
- \tl_remove_all:Nx #2 { \iow_char:N \\ }
+ \tl_replace_all:Nxn #2 { \c_underscore_str } { / }
+ \tl_remove_all:Nx #2 { \c_backslash_str }
\tl_put_left:Nn #2 { doc/function// }
}
\cs_generate_variant:Nn \__codedoc_get_hyper_target:nN { o , x }
@@ -793,7 +790,7 @@
}
{
\tl_remove_all:Nx \l__codedoc_tmpa_tl
- { \iow_char:N \^^M \iow_char:N \% }
+ { \iow_char:N \^^M \c_percent_str }
\tl_remove_all:Nx \l__codedoc_tmpa_tl { \tl_to_str:n { ^ ^ A } }
\tl_remove_all:Nx \l__codedoc_tmpa_tl { \iow_char:N \^^I }
\tl_remove_all:Nx \l__codedoc_tmpa_tl { \iow_char:N \^^M }
@@ -1503,7 +1500,7 @@
\__codedoc_test_missing_aux:Nxn
\g__codedoc_missing_tests_prop
{ \seq_use:Nn \l__codedoc_names_seq { , } }
- { { \g_file_curr_name_str \iow_char:N \ (#1) } }
+ { { \g_file_curr_name_str \c_space_tl (#1) } }
}
\cs_new_protected:Npn \__codedoc_test_missing_aux:Nnn #1#2#3
{
@@ -2127,7 +2124,7 @@
{
\tl_replace_all:Nnn #1 {##1}
{
- \verbatimchar \c__codedoc_backslash_tl ##1
+ \verbatimchar \c_backslash_str ##1
\token_to_str:N \verb * \verbatimchar
}
}
@@ -2140,7 +2137,7 @@
{
\tl_set:Nn #1 {#2}
\tl_replace_all:Non #1
- { \c__codedoc_backslash_tl }
+ { \c_backslash_str }
{ \token_to_str:N \bslash \c_space_tl }
}
\__codedoc_quote_special_char:N #1
@@ -2162,8 +2159,9 @@
\tl_if_in:NoTF \l__codedoc_index_key_tl { \tl_to_str:n { __ } }
{ \bool_set_true:N \l__codedoc_index_internal_bool }
{ \bool_set_false:N \l__codedoc_index_internal_bool }
+ \exp_last_unbraced:NNo
\tl_if_head_eq_charcode:oNT
- { \l__codedoc_index_key_tl } \c__codedoc_backslash_token
+ { \l__codedoc_index_key_tl } \c_backslash_str
{ \__codedoc_key_pop: }
\tl_if_in:NoTF \l__codedoc_index_key_tl { \token_to_str:N : }
{ \__codedoc_key_func: }