Skip to content

Commit d45e121

Browse files
jensmaurerzygoloid
authored andcommitted
[intro.defs] Integrate [re.def].
Also rephrase the regular expression definitions to fit the ISO-mandate style.
1 parent c269824 commit d45e121

File tree

3 files changed

+45
-48
lines changed

3 files changed

+45
-48
lines changed

source/intro.tex

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@
206206
iostream, and regular expression class templates.
207207
\end{defnote}
208208

209+
\definition{collating element}{defns.regex.collating.element}
210+
\indexdefn{collating element}%
211+
sequence of one or more characters within the
212+
current locale that collate as if they were a single character
213+
209214
\definition{component}{defns.component}
210215
\defncontext{library}
211216
\indexdefn{component}%
@@ -301,6 +306,19 @@
301306
are expression-equivalent.
302307
\end{example}
303308

309+
\definition{finite state machine}{defns.regex.finite.state.machine}
310+
\defncontext{regular expression}
311+
\indexdefn{finite state machine}%
312+
unspecified data structure that is used to
313+
represent a regular expression, and which permits efficient matches
314+
against the regular expression to be obtained
315+
316+
\definition{format specifier}{defns.regex.format.specifier}
317+
\defncontext{regular expression}
318+
\indexdefn{format specifier}%
319+
sequence of one or more characters that is to be
320+
replaced with some part of a regular expression match
321+
304322
\definition{handler function}{defns.handler}
305323
\defncontext{library}
306324
\indexdefn{function!handler}%
@@ -354,6 +372,13 @@
354372
behavior that depends on local conventions of nationality, culture, and
355373
language that each implementation documents
356374

375+
\definition{matched}{defns.regex.matched}
376+
\defncontext{regular expression}
377+
\indexdefn{matched}%
378+
\indexdefn{regular expression!matched}%
379+
condition when a sequence of zero or more characters
380+
correspond to a sequence of characters defined by the pattern
381+
357382
\definition{modifier function}{defns.modifier}
358383
\defncontext{library}
359384
\indexdefn{function!modifier}%
@@ -423,6 +448,14 @@
423448
\definition{parameter}{defns.parameter.templ}
424449
\defncontext{template} member of a \grammarterm{template-parameter-list}
425450

451+
\definition{primary equivalence class}{defns.regex.primary.equivalence.class}
452+
\defncontext{regular expression}
453+
\indexdefn{primary equivalence class}%
454+
set of one or more characters which
455+
share the same primary sort key: that is the sort key weighting that
456+
depends only upon character shape, and not accents, case, or
457+
locale specific tailorings
458+
426459
\definition{program-defined specialization}{defns.prog.def.spec}
427460
\defncontext{library}
428461
\indexdefn{specialization!program-defined}%
@@ -472,6 +505,10 @@
472505
including reference types.
473506
\end{defnote}
474507

508+
\definition{regular expression}{defns.regex.regular.expression}
509+
pattern that selects specific strings
510+
from a set of character strings
511+
475512
\definition{replacement function}{defns.replacement}
476513
\defncontext{library}
477514
\indexdefn{function!replacement}%
@@ -612,6 +649,12 @@
612649
executing.
613650
\end{defnote}
614651

652+
\definition{sub-expression}{defns.regex.subexpression}
653+
\defncontext{regular expression}
654+
\indexdefn{sub-expression!regular expression}%
655+
subset of a regular expression that has
656+
been marked by parentheses
657+
615658
\definition{traits class}{defns.traits}
616659
\defncontext{library}
617660
\indexdefn{traits}%

source/regex.tex

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
enumerating regular expression matches, as summarized in \tref{re.summary}.
2222

2323
\begin{libsumtab}{Regular expressions library summary}{re.summary}
24-
\ref{re.def} & Definitions & \\
2524
\ref{re.req} & Requirements & \\ \rowsep
2625
\ref{re.const} & Constants & \tcode{<regex>} \\
2726
\ref{re.badexp} & Exception type & \\
@@ -34,53 +33,6 @@
3433
\ref{re.grammar} & Grammar & \\
3534
\end{libsumtab}
3635

37-
38-
\rSec1[re.def]{Definitions}
39-
40-
\pnum
41-
The following definitions shall apply to this Clause:
42-
43-
\indextext{collating element}%
44-
\indextext{locale}%
45-
\definition{collating element}{defns.regex.collating.element}
46-
a sequence of one or more characters within the
47-
current locale that collate as if they were a single character.
48-
49-
\indextext{finite state machine}%
50-
\definition{finite state machine}{defns.regex.finite.state.machine}
51-
an unspecified data structure that is used to
52-
represent a regular expression, and which permits efficient matches
53-
against the regular expression to be obtained.
54-
55-
\indextext{format specifier}%
56-
\definition{format specifier}{defns.regex.format.specifier}
57-
a sequence of one or more characters that is to be
58-
replaced with some part of a regular expression match.
59-
60-
\indextext{matched}%
61-
\indextext{regular expression!matched}%
62-
\definition{matched}{defns.regex.matched}
63-
a sequence of zero or more characters is matched by
64-
a regular expression when the characters in the sequence
65-
correspond to a sequence of characters defined by the pattern.
66-
67-
\indextext{primary equivalence class}%
68-
\indextext{locale}%
69-
\definition{primary equivalence class}{defns.regex.primary.equivalence.class}
70-
a set of one or more characters which
71-
share the same primary sort key: that is the sort key weighting that
72-
depends only upon character shape, and not accents, case, or
73-
locale specific tailorings.
74-
75-
\definition{regular expression}{defns.regex.regular.expression}
76-
a pattern that selects specific strings
77-
from a set of character strings.
78-
79-
\indextext{sub-expression!regular expression}%
80-
\definition{sub-expression}{defns.regex.subexpression}
81-
a subset of a regular expression that has
82-
been marked by parenthesis.
83-
8436
\rSec1[re.req]{Requirements}
8537

8638
\pnum

source/xrefdelta.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@
2323
%\movedxrefiii{old.label}{new.label.1}{new.label.2}{new.label.3}
2424
%\movedxrefs{old.label}{new place (eg \tref{blah})}
2525

26+
\movedxref{re.def}{intro.refs}
27+
2628
% Deprecated features.
2729
%\deprxref{old.label} (if moved to depr.old.label, otherwise use \movedxref)

0 commit comments

Comments
 (0)