File: xinttools.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (154 lines) | stat: -rw-r--r-- 3,765 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# xinttools package
# Matthew Bertucci 11/16/2021 for v1.4j

#include:xintkernel

\xintgodef#*
\xintgodef{cmd}#Sd
\xintgoodef#*
\xintgoodef{cmd}#Sd
\xintgfdef#*
\xintgfdef{cmd}#Sd

\xintRevWithBraces{list}
\xintrevwithbraces{list}#S
\xintRevWithBracesNoExpand{list}
\xintrevwithbracesnoexpand{list}#S

\xintZapFirstSpaces{content}
\xintzapfirstspaces{content}#S
\xintZapLastSpaces{content}
\xintzaplastspaces{content}#S
\xintZapSpaces{content}
\xintzapspaces{content}#S
\xintZapSpacesB{content}
\xintzapspacesb{content}#S

\xintCSVtoList{csv list}
\xintcsvtolist{csv list}#S
\xintCSVtoListNoExpand{csv list}
\xintcsvtolistnoexpand{csv list}#S
\xintCSVtoListNonStripped{csv list}#*
\xintcsvtolistnonstripped{csv list}#S
\xintCSVtoListNonStrippedNoExpand{csv list}#*
\xintcsvtolistnonstrippednoexpand{csv list}#S

\xintNthElt{integer}{list}
\xintnthelt{integer}{list}#S
\xintNthEltNoExpand{integer}{list}
\xintntheltnoexpand{integer}{list}#S
\xintNthOnePy{integer}{list}
\xintnthonepy{integer}{list}#S
\xintNthOnePyNoExpand{integer}{list}
\xintnthonepynoexpand{integer}{list}#S

\xintKeep{integer}{list}
\xintkeep{integer}{list}#S
\xintKeepNoExpand{integer}{list}
\xintkeepnoexpand{integer}{list}#S
\xintKeepUnbraced{integer}{list}
\xintkeepunbraced{integer}{list}#S
\xintKeepUnbracedNoExpand{integer}{list}
\xintkeepunbracednoexpand{integer}{list}#S

\xintTrim{integer}{list}
\xinttrim{integer}{list}#S
\xintTrimNoExpand{integer}{list}
\xinttrimnoexpand{integer}{list}#S
\xintTrimUnbraced{integer}{list}
\xinttrimunbraced{integer}{list}#S
\xintTrimUnbracedNoExpand{integer}{list}
\xinttrimunbracednoexpand{integer}{list}#S

\xintListWithSep{sep}{list}
\xintlistwithsep{sep}{list}#S
\xintListWithSepNoExpand{sep}{list}
\xintlistwithsepnoexpand{sep}{list}#S

\xintApply{macro}{list}
\xintapply{macro}{list}#S
\xintApplyNoExpand{macro}{list}
\xintapplynoexpand{macro}{list}#S
\xintApplyUnbraced{macro}{list}
\xintapplyunbraced{macro}{list}#S
\xintApplyUnbracedNoExpand{macro}{list}#*
\xintapplyunbracednoexpand{macro}{list}#S

\xintSeq{start-integer}{stop-integer}
\xintSeq[step]{start-integer}{stop-integer}
\xintseq{start-integer}{stop-integer}#S

\xintloop#*
\xintbreakloop#*
\xintbreakloopanddo#*
\xintloopskiptonext#*
\xintiloop#*
\xintiloopindex#*
\xintbracediloopindex#*
\xintouteriloopindex#*
\xintbracedouteriloopindex#*
\xintbreakiloop#*
\xintbreakiloopanddo#*
\xintiloopskiptonext#*
\xintiloopskipandredo#*

\xintApplyInline{macro}{list}

\xintFor %<<param>%> in {%<csv list%>} \do {%<code%>}
\xintFor* %<<param>%> in {%<csv list%>} \do {%<code%>}

\xintifForFirst{YES branch}{NO branch}
\xintifForLast{YES branch}{NO branch}

\xintBreakFor
\xintBreakForAndDo{code}

\xintegers#*
\xintintegers
\xintdimensions
\xintrationals

\xintForpair %<params%> in {%<csv pair list%>} \do {%<code%>}
\xintForthree %<params%> in {%<csv triple list%>} \do {%<code%>}
\xintForfour %<params%> in {%<csv 4-tuple list%>} \do {%<code%>}

\xintAssign %<<braced things>%> \to %<<cmd list>%>
\xintAssign[%<options%>] %<<braced things>%> \to %<<cmd list>%>
\to{cmd}#Sd

#keyvals:\xintAssign
g
e
x
o
go
oo
goo
f
gf
#endkeyvals

\xintAssignArray %<<braced things>%> \to %<<cmd>%>
\xintAssignArray[%<options%>] %<<braced things>%> \to %<<cmd>%>
\xintDigitsOf %<<braced things>%> \to %<<cmd>%>
\xintDigitsOf[%<options%>] %<<braced things>%> \to %<<cmd>%>

#keyvals:\xintAssignArray,\xintDigitsOf
o
oo
f
#endkeyvals

\xintRelaxArray%<<array macro>%>

\xintNthEltPy#S
\xintReverse#S
\xintZip#S
\xintCSVLength#S
\xintCSVKeep#S
\xintCSVKeepx#S
\xintCSVTrim#S
\xintCSVNthEltPy#S
\xintCSVReverse#S
\xintCSVFirstItem#S
\xintCSVLastItem#S