Skip to content

Commit 2d74855

Browse files
committed
[localization] Make punctuation more uniform
1 parent ac07278 commit 2d74855

File tree

1 file changed

+42
-48
lines changed

1 file changed

+42
-48
lines changed

source/locales.tex

Lines changed: 42 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@
719719

720720
\pnum
721721
\returns
722-
\tcode{*this}
722+
\tcode{*this}.
723723
\end{itemdescr}
724724

725725
\indexlibrary{\idxcode{locale}!destructor}%
@@ -810,9 +810,7 @@
810810

811811
\begin{itemdescr}
812812
\pnum
813-
\returns
814-
The result of the expression:
815-
\tcode{!(*this == other)}.
813+
\returns \tcode{!(*this == other)}.
816814
\end{itemdescr}
817815

818816
\indexlibrarymember{locale}{operator()}%
@@ -838,12 +836,8 @@
838836

839837
\pnum
840838
\returns
841-
The result of the following expression:
842-
843-
\begin{codeblock}
844-
use_facet<collate<charT>>(*this).compare
845-
(s1.data(), s1.data()+s1.size(), s2.data(), s2.data()+s2.size()) < 0;
846-
\end{codeblock}
839+
\tcode{use_facet<collate<charT>>(*this).compare(s1.data(), s1.data() + s1.size(),\\
840+
s2.data(), s2.data() + s2.size()) < 0}.
847841

848842
\pnum
849843
\begin{example}
@@ -957,7 +951,7 @@
957951
\begin{itemdescr}
958952
\pnum
959953
\returns
960-
True if the facet requested is present in \tcode{loc}; otherwise false.
954+
\tcode{true} if the facet requested is present in \tcode{loc}; otherwise \tcode{false}.
961955
\end{itemdescr}
962956

963957
\rSec2[locale.convenience]{Convenience interfaces}
@@ -1598,9 +1592,9 @@
15981592
\begin{itemdescr}
15991593
\pnum
16001594
\returns
1601-
\tcode{do_is(m,c)}
1595+
\tcode{do_is(m, c)}
16021596
or
1603-
\tcode{do_is(low,high,vec)}
1597+
\tcode{do_is(low, high, vec)}.
16041598
\end{itemdescr}
16051599

16061600
\indexlibrarymember{ctype}{scan_is}%
@@ -1612,7 +1606,7 @@
16121606
\begin{itemdescr}
16131607
\pnum
16141608
\returns
1615-
\tcode{do_scan_is(m,low,high)}
1609+
\tcode{do_scan_is(m, low, high)}.
16161610
\end{itemdescr}
16171611

16181612
\indexlibrarymember{ctype}{scan_not}%
@@ -1624,7 +1618,7 @@
16241618
\begin{itemdescr}
16251619
\pnum
16261620
\returns
1627-
\tcode{do_scan_not(m,low,high)}
1621+
\tcode{do_scan_not(m, low, high)}.
16281622
\end{itemdescr}
16291623

16301624
\indexlibrarymember{ctype}{toupper}%
@@ -1638,7 +1632,7 @@
16381632
\returns
16391633
\tcode{do_toupper(c)}
16401634
or
1641-
\tcode{do_toupper(low,high)}
1635+
\tcode{do_toupper(low, high)}.
16421636
\end{itemdescr}
16431637

16441638
\indexlibrarymember{ctype}{tolower}%
@@ -1652,7 +1646,7 @@
16521646
\returns
16531647
\tcode{do_tolower(c)}
16541648
or
1655-
\tcode{do_tolower(low,high)}
1649+
\tcode{do_tolower(low, high)}.
16561650
\end{itemdescr}
16571651

16581652
\indexlibrarymember{ctype}{widen}%
@@ -1666,7 +1660,7 @@
16661660
\returns
16671661
\tcode{do_widen(c)}
16681662
or
1669-
\tcode{do_widen(low,high,to)}
1663+
\tcode{do_widen(low, high, to)}.
16701664
\end{itemdescr}
16711665

16721666
\indexlibrarymember{ctype}{narrow}%
@@ -1679,9 +1673,9 @@
16791673
\begin{itemdescr}
16801674
\pnum
16811675
\returns
1682-
\tcode{do_narrow(c,dfault)}
1676+
\tcode{do_narrow(c, dfault)}
16831677
or
1684-
\tcode{do_narrow(low,high,dfault,to)}
1678+
\tcode{do_narrow(low, high, dfault, to)}.
16851679
\end{itemdescr}
16861680

16871681
\rSec4[locale.ctype.virtuals]{\tcode{ctype} virtual functions}
@@ -1737,7 +1731,7 @@
17371731
The smallest pointer \tcode{p} in the range
17381732
\range{low}{high}
17391733
such that
1740-
\tcode{is(m,*p)}
1734+
\tcode{is(m, *p)}
17411735
would return
17421736
\tcode{true};
17431737
otherwise, returns \tcode{high}.
@@ -1760,7 +1754,7 @@
17601754
The smallest pointer \tcode{p}, if any, in the range
17611755
\range{low}{high}
17621756
such that
1763-
\tcode{is(m,*p)}
1757+
\tcode{is(m, *p)}
17641758
would return
17651759
\tcode{false};
17661760
otherwise, returns \tcode{high}.
@@ -2141,7 +2135,7 @@
21412135
\returns
21422136
\tcode{do_toupper(c)}
21432137
or
2144-
\tcode{do_toupper(low,high)},
2138+
\tcode{do_toupper(low, high)},
21452139
respectively.
21462140
\end{itemdescr}
21472141

@@ -2156,7 +2150,7 @@
21562150
\returns
21572151
\tcode{do_tolower(c)}
21582152
or
2159-
\tcode{do_tolower(low,high)},
2153+
\tcode{do_tolower(low, high)},
21602154
respectively.
21612155
\end{itemdescr}
21622156

@@ -2219,7 +2213,7 @@
22192213
\returns
22202214
A pointer to the initial element of an array of size
22212215
\tcode{table_size}
2222-
which represents the classifications of characters in the "C" locale.
2216+
which represents the classifications of characters in the \tcode{"C"} locale.
22232217
\end{itemdescr}
22242218

22252219
\rSec4[facet.ctype.char.virtuals]{\tcode{ctype<char>} virtual functions}
@@ -2355,7 +2349,7 @@
23552349
\begin{itemdescr}
23562350
\pnum
23572351
\returns
2358-
\tcode{do_out(state, from, from_end, from_next, to, to_end, to_next)}
2352+
\tcode{do_out(state, from, from_end, from_next, to, to_end, to_next)}.
23592353
\end{itemdescr}
23602354

23612355
\indexlibrarymember{codecvt}{unshift}%
@@ -2367,7 +2361,7 @@
23672361
\begin{itemdescr}
23682362
\pnum
23692363
\returns
2370-
\tcode{do_unshift(state, to, to_end, to_next)}
2364+
\tcode{do_unshift(state, to, to_end, to_next)}.
23712365
\end{itemdescr}
23722366

23732367
\indexlibrarymember{codecvt}{in}%
@@ -2380,7 +2374,7 @@
23802374
\begin{itemdescr}
23812375
\pnum
23822376
\returns
2383-
\tcode{do_in(state, from, from_end, from_next, to, to_end, to_next)}
2377+
\tcode{do_in(state, from, from_end, from_next, to, to_end, to_next)}.
23842378
\end{itemdescr}
23852379

23862380
\indexlibrarymember{codecvt}{encoding}%
@@ -2391,7 +2385,7 @@
23912385
\begin{itemdescr}
23922386
\pnum
23932387
\returns
2394-
\tcode{do_encoding()}
2388+
\tcode{do_encoding()}.
23952389
\end{itemdescr}
23962390

23972391
\indexlibrarymember{codecvt}{always_noconv}%
@@ -2402,7 +2396,7 @@
24022396
\begin{itemdescr}
24032397
\pnum
24042398
\returns
2405-
\tcode{do_always_noconv()}
2399+
\tcode{do_always_noconv()}.
24062400
\end{itemdescr}
24072401

24082402
\indexlibrarymember{codecvt}{length}%
@@ -2414,7 +2408,7 @@
24142408
\begin{itemdescr}
24152409
\pnum
24162410
\returns
2417-
\tcode{do_length(state, from, from_end, max)}
2411+
\tcode{do_length(state, from, from_end, max)}.
24182412
\end{itemdescr}
24192413

24202414
\indexlibrarymember{codecvt}{max_length}%
@@ -2425,7 +2419,7 @@
24252419
\begin{itemdescr}
24262420
\pnum
24272421
\returns
2428-
\tcode{do_max_length()}
2422+
\tcode{do_max_length()}.
24292423
\end{itemdescr}
24302424

24312425
\rSec4[locale.codecvt.virtuals]{\tcode{codecvt} virtual functions}
@@ -3636,7 +3630,7 @@
36363630
\begin{itemdescr}
36373631
\pnum
36383632
\returns
3639-
\tcode{do_decimal_point()}
3633+
\tcode{do_decimal_point()}.
36403634
\end{itemdescr}
36413635

36423636
\indexlibrarymember{numpunct}{thousands_sep}%
@@ -3647,7 +3641,7 @@
36473641
\begin{itemdescr}
36483642
\pnum
36493643
\returns
3650-
\tcode{do_thousands_sep()}
3644+
\tcode{do_thousands_sep()}.
36513645
\end{itemdescr}
36523646

36533647
\indexlibrarymember{numpunct}{grouping}%
@@ -3658,7 +3652,7 @@
36583652
\begin{itemdescr}
36593653
\pnum
36603654
\returns
3661-
\tcode{do_grouping()}
3655+
\tcode{do_grouping()}.
36623656
\end{itemdescr}
36633657

36643658
\indexlibrarymember{numpunct}{truename}%
@@ -3838,7 +3832,7 @@
38383832
\begin{itemdescr}
38393833
\pnum
38403834
\returns
3841-
\tcode{do_compare(low1, high1, low2, high2)}
3835+
\tcode{do_compare(low1, high1, low2, high2)}.
38423836
\end{itemdescr}
38433837

38443838
\indexlibrarymember{collate}{transform}%
@@ -3849,7 +3843,7 @@
38493843
\begin{itemdescr}
38503844
\pnum
38513845
\returns
3852-
\tcode{do_transform(low, high)}
3846+
\tcode{do_transform(low, high)}.
38533847
\end{itemdescr}
38543848

38553849
\indexlibrarymember{collate}{hash}%
@@ -3860,7 +3854,7 @@
38603854
\begin{itemdescr}
38613855
\pnum
38623856
\returns
3863-
\tcode{do_hash(low, high)}
3857+
\tcode{do_hash(low, high)}.
38643858
\end{itemdescr}
38653859

38663860
\rSec4[locale.collate.virtuals]{\tcode{collate} virtual functions}
@@ -4061,7 +4055,7 @@
40614055
\begin{itemdescr}
40624056
\pnum
40634057
\returns
4064-
\tcode{do_date_order()}
4058+
\tcode{do_date_order()}.
40654059
\end{itemdescr}
40664060

40674061
\indexlibrarymember{time_get}{get_time}%
@@ -4073,7 +4067,7 @@
40734067
\begin{itemdescr}
40744068
\pnum
40754069
\returns
4076-
\tcode{do_get_time(s, end, str, err, t)}
4070+
\tcode{do_get_time(s, end, str, err, t)}.
40774071
\end{itemdescr}
40784072

40794073
\indexlibrarymember{time_get}{get_date}%
@@ -4085,7 +4079,7 @@
40854079
\begin{itemdescr}
40864080
\pnum
40874081
\returns
4088-
\tcode{do_get_date(s, end, str, err, t)}
4082+
\tcode{do_get_date(s, end, str, err, t)}.
40894083
\end{itemdescr}
40904084

40914085
\indexlibrarymember{time_get}{get_weekday}%
@@ -4102,7 +4096,7 @@
41024096
\returns
41034097
\tcode{do_get_weekday(s, end, str, err, t)}
41044098
or
4105-
\tcode{do_get_monthname(s, end, str, err, t)}
4099+
\tcode{do_get_monthname(s, end, str, err, t)}.
41064100
\end{itemdescr}
41074101

41084102
\indexlibrarymember{time_get}{get_year}%
@@ -4114,7 +4108,7 @@
41144108
\begin{itemdescr}
41154109
\pnum
41164110
\returns
4117-
\tcode{do_get_year(s, end, str, err, t)}
4111+
\tcode{do_get_year(s, end, str, err, t)}.
41184112
\end{itemdescr}
41194113

41204114
\indexlibrarymember{get}{time_get}%
@@ -4125,7 +4119,7 @@
41254119

41264120
\begin{itemdescr}
41274121
\pnum
4128-
\returns \tcode{do_get(s, end, f, err, t, format, modifier)}
4122+
\returns \tcode{do_get(s, end, f, err, t, format, modifier)}.
41294123
\end{itemdescr}
41304124

41314125
\indexlibrarymember{get}{time_get}%
@@ -4190,7 +4184,7 @@
41904184
multi-character sequences are considered while doing so. \end{note}
41914185

41924186
\pnum
4193-
\returns \tcode{s}
4187+
\returns \tcode{s}.
41944188
\end{itemdescr}
41954189

41964190
\rSec4[locale.time.get.virtuals]{\tcode{time_get} virtual functions}
@@ -4624,7 +4618,7 @@
46244618
\begin{itemdescr}
46254619
\pnum
46264620
\returns
4627-
\tcode{do_get(s, end, intl, f, err, quant)}
4621+
\tcode{do_get(s, end, intl, f, err, quant)}.
46284622
\end{itemdescr}
46294623

46304624
\rSec4[locale.money.get.virtuals]{\tcode{money_get} virtual functions}
@@ -4851,7 +4845,7 @@
48514845
\begin{itemdescr}
48524846
\pnum
48534847
\returns
4854-
\tcode{do_put(s, intl, f, loc, quant)}
4848+
\tcode{do_put(s, intl, f, loc, quant)}.
48554849
\end{itemdescr}
48564850

48574851
\rSec4[locale.money.put.virtuals]{\tcode{money_put} virtual functions}
@@ -5262,7 +5256,7 @@
52625256
\pnum
52635257
\returns
52645258
The number of digits after the decimal radix separator, if any.\footnote{In
5265-
common U.S. locales, this is 2.}
5259+
common U.S.\ locales, this is 2.}
52665260
\end{itemdescr}
52675261

52685262
\indexlibrarymember{moneypunct}{do_pos_format}%

0 commit comments

Comments
 (0)