Skip to content

Commit 4711588

Browse files
committed
[re.synopt], [re.matchflag] Use code formatting in definition of regex flag
values.
1 parent 26d6895 commit 4711588

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

source/regex.tex

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -692,21 +692,21 @@
692692
{\tcode{syntax_option_type} effects}
693693
{tab:re:syntaxoption}
694694
%
695-
icase &
695+
\tcode{icase} &
696696
Specifies that matching of regular expressions against a character
697697
container sequence shall be performed without regard to case.
698698
\indexlibrary{\idxcode{syntax_option_type}!\idxcode{icase}}%
699699
\\ \rowsep
700700
%
701-
nosubs &
701+
\tcode{nosubs} &
702702
Specifies that no sub-expressions shall be considered to be marked, so that
703703
when a regular expression is matched against a
704704
character container sequence, no sub-expression matches shall be
705705
stored in the supplied \tcode{match_results} structure.
706706
\indexlibrary{\idxcode{syntax_option_type}!\idxcode{nosubs}}%
707707
\\ \rowsep
708708
%
709-
optimize &
709+
\tcode{optimize} &
710710
Specifies that the regular expression engine should pay more attention
711711
to the speed with which regular expressions are matched, and less to
712712
the speed with which regular expression objects are
@@ -715,51 +715,51 @@
715715
\indexlibrary{\idxcode{syntax_option_type}!\idxcode{optimize}}%
716716
\\ \rowsep
717717
%
718-
collate &
718+
\tcode{collate} &
719719
Specifies that character ranges of the form \tcode{"[a-b]"} shall be locale
720720
sensitive.
721721
\indexlibrary{\idxcode{syntax_option_type}!\idxcode{collate}}%
722722
\indextext{locale}%
723723
\\ \rowsep
724724
%
725-
ECMAScript &
725+
\tcode{ECMAScript} &
726726
Specifies that the grammar recognized by the regular expression engine
727727
shall be that used by ECMAScript in ECMA-262, as modified in~\ref{re.grammar}.
728728
\indextext{ECMAScript}%
729729
\indexlibrary{\idxcode{syntax_option_type}!\idxcode{ECMAScript}}%
730730
\\ \rowsep
731731
%
732-
basic &
732+
\tcode{basic} &
733733
Specifies that the grammar recognized by the regular expression engine
734734
shall be that used by basic regular expressions in POSIX, Base Definitions and
735735
Headers, Section 9, Regular Expressions.
736736
\indextext{POSIX!regular expressions}%
737737
\indexlibrary{\idxcode{syntax_option_type}!\idxcode{basic}}%
738738
\\ \rowsep
739739
%
740-
extended &
740+
\tcode{extended} &
741741
Specifies that the grammar recognized by the regular expression engine
742742
shall be that used by extended regular expressions in POSIX, Base Definitions and
743743
Headers, Section 9, Regular Expressions.
744744
\indextext{POSIX!extended regular expressions}%
745745
\indexlibrary{\idxcode{syntax_option_type}!\idxcode{extended}}%
746746
\\ \rowsep
747747
%
748-
awk &
748+
\tcode{awk} &
749749
Specifies that the grammar recognized by the regular expression engine
750750
shall be that used by the utility awk in POSIX.
751751
\indextext{\idxcode{awk}}%
752752
\indexlibrary{\idxcode{syntax_option_type}!\idxcode{awk}}%
753753
\\ \rowsep
754754
%
755-
grep &
755+
\tcode{grep} &
756756
Specifies that the grammar recognized by the regular expression engine
757757
shall be that used by the utility grep in POSIX.
758758
\indextext{\idxcode{grep}}%
759759
\indexlibrary{\idxcode{syntax_option_type}!\idxcode{grep}}%
760760
\\ \rowsep
761761
%
762-
egrep &
762+
\tcode{egrep} &
763763
Specifies that the grammar recognized by the regular expression engine
764764
shall be that used by the utility grep when given the -E
765765
option in POSIX.
@@ -825,58 +825,58 @@
825825
{tab:re:matchflag}
826826
%
827827
\indexlibrary{\idxcode{match_not_bol}}%
828-
match_not_bol &
828+
\tcode{match_not_bol} &
829829
The first character in the sequence \range{first}{last} shall be treated
830830
as though it is not at the beginning of a line, so the character
831831
\verb|^| in the regular expression shall not match \range{first}{first}.
832832
\\ \rowsep
833833
%
834834
\indexlibrary{\idxcode{match_not_eol}}%
835-
match_not_eol &
835+
\tcode{match_not_eol} &
836836
The last character in the sequence \range{first}{last} shall be treated
837837
as though it is not at the end of a line, so the character
838838
\verb|"$"| in the regular expression shall not match \range{last}{last}.
839839
\\ \rowsep
840840
%
841841
\indexlibrary{\idxcode{match_not_bow}}%
842-
match_not_bow &
842+
\tcode{match_not_bow} &
843843
The expression \verb|"\\b"| shall not match the
844844
sub-sequence \range{first}{first}.
845845
\\ \rowsep
846846
%
847847
\indexlibrary{\idxcode{match_not_eow}}%
848-
match_not_eow &
848+
\tcode{match_not_eow} &
849849
The expression \verb|"\\b"| shall not match the
850850
sub-sequence \range{last}{last}.
851851
\\ \rowsep
852852
%
853853
\indexlibrary{\idxcode{match_any}}%
854-
match_any &
854+
\tcode{match_any} &
855855
If more than one match is possible then any match is an
856856
acceptable result.
857857
\\ \rowsep
858858
%
859859
\indexlibrary{\idxcode{match_not_null}}%
860-
match_not_null &
860+
\tcode{match_not_null} &
861861
The expression shall not match an empty
862862
sequence.
863863
\\ \rowsep
864864
%
865865
\indexlibrary{\idxcode{match_continuous}}%
866-
match_continuous &
866+
\tcode{match_continuous} &
867867
The expression shall only match a sub-sequence that begins at
868868
\tcode{first}.
869869
\\ \rowsep
870870
%
871871
\indexlibrary{\idxcode{match_prev_avail}}%
872-
match_prev_avail &
872+
\tcode{match_prev_avail} &
873873
\verb!--first! is a valid iterator position. When this flag is
874874
set the flags match_not_bol and match_not_bow shall be ignored by the
875875
regular expression algorithms~\ref{re.alg} and iterators~\ref{re.iter}.
876876
\\ \rowsep
877877
%
878878
\indexlibrary{\idxcode{format_default}}%
879-
format_default &
879+
\tcode{format_default} &
880880
When a regular expression match is to be replaced by a
881881
new string, the new string shall be constructed using the rules used by
882882
the ECMAScript replace function in ECMA-262,
@@ -888,20 +888,20 @@
888888
\\ \rowsep
889889
%
890890
\indexlibrary{\idxcode{format_sed}}%
891-
format_sed &
891+
\tcode{format_sed} &
892892
When a regular expression match is to be replaced by a
893893
new string, the new string shall be constructed using the rules used by
894894
the sed utility in POSIX.
895895
\\ \rowsep
896896
%
897897
\indexlibrary{\idxcode{format_no_copy}}%
898-
format_no_copy &
898+
\tcode{format_no_copy} &
899899
During a search and replace operation, sections of
900900
the character container sequence being searched that do not match the
901901
regular expression shall not be copied to the output string. \\ \rowsep
902902
%
903903
\indexlibrary{\idxcode{format_first_only}}%
904-
format_first_only &
904+
\tcode{format_first_only} &
905905
When specified during a search and replace operation, only the
906906
first occurrence of the regular expression shall be replaced.
907907
\\

0 commit comments

Comments
 (0)