Skip to content

Commit 793a12c

Browse files
committed
[strings] Reflow itemdecl and itemdesc whitespace to avoid overfull boxes and unnecessary linebreaks
1 parent faaf054 commit 793a12c

File tree

1 file changed

+27
-44
lines changed

1 file changed

+27
-44
lines changed

source/strings.tex

+27-44
Original file line numberDiff line numberDiff line change
@@ -3096,16 +3096,14 @@
30963096

30973097
\indexlibrarymember{find}{basic_string}%
30983098
\begin{itemdecl}
3099-
size_type find(basic_string_view<charT, traits> sv,
3100-
size_type pos = 0) const noexcept;
3099+
size_type find(basic_string_view<charT, traits> sv, size_type pos = 0) const noexcept;
31013100
\end{itemdecl}
31023101

31033102
\begin{itemdescr}
31043103
\pnum
31053104
\effects
31063105
Determines the lowest position \tcode{xpos}, if possible, such that both of
31073106
the following conditions hold:
3108-
31093107
\begin{itemize}
31103108
\item
31113109
\tcode{pos <= xpos} and
@@ -3130,8 +3128,7 @@
31303128

31313129
\indexlibrarymember{find}{basic_string}%
31323130
\begin{itemdecl}
3133-
size_type find(const basic_string& str,
3134-
size_type pos = 0) const noexcept;
3131+
size_type find(const basic_string& str, size_type pos = 0) const noexcept;
31353132
\end{itemdecl}
31363133

31373134
\begin{itemdescr}
@@ -3181,16 +3178,14 @@
31813178

31823179
\indexlibrarymember{rfind}{basic_string}%
31833180
\begin{itemdecl}
3184-
size_type rfind(basic_string_view<charT, traits> sv,
3185-
size_type pos = npos) const noexcept;
3181+
size_type rfind(basic_string_view<charT, traits> sv, size_type pos = npos) const noexcept;
31863182
\end{itemdecl}
31873183

31883184
\begin{itemdescr}
31893185
\pnum
31903186
\effects
31913187
Determines the highest position \tcode{xpos}, if possible, such that both of
31923188
the following conditions hold:
3193-
31943189
\begin{itemize}
31953190
\item
31963191
\tcode{xpos <= pos}
@@ -3216,8 +3211,7 @@
32163211

32173212
\indexlibrarymember{rfind}{basic_string}%
32183213
\begin{itemdecl}
3219-
size_type rfind(const basic_string& str,
3220-
size_type pos = npos) const noexcept;
3214+
size_type rfind(const basic_string& str, size_type pos = npos) const noexcept;
32213215
\end{itemdecl}
32223216

32233217
\begin{itemdescr}
@@ -3267,8 +3261,7 @@
32673261

32683262
\indexlibrarymember{find_first_of}{basic_string}%
32693263
\begin{itemdecl}
3270-
size_type find_first_of(basic_string_view<charT, traits> sv,
3271-
size_type pos = 0) const noexcept;
3264+
size_type find_first_of(basic_string_view<charT, traits> sv, size_type pos = 0) const noexcept;
32723265
\end{itemdecl}
32733266

32743267
\begin{itemdescr}
@@ -3302,8 +3295,7 @@
33023295

33033296
\indexlibrarymember{find_first_of}{basic_string}%
33043297
\begin{itemdecl}
3305-
size_type find_first_of(const basic_string& str,
3306-
size_type pos = 0) const noexcept;
3298+
size_type find_first_of(const basic_string& str, size_type pos = 0) const noexcept;
33073299
\end{itemdecl}
33083300

33093301
\begin{itemdescr}
@@ -3314,8 +3306,7 @@
33143306

33153307
\indexlibrarymember{find_first_of}{basic_string}%
33163308
\begin{itemdecl}
3317-
size_type
3318-
find_first_of(const charT* s, size_type pos, size_type n) const;
3309+
size_type find_first_of(const charT* s, size_type pos, size_type n) const;
33193310
\end{itemdecl}
33203311

33213312
\begin{itemdescr}
@@ -3354,16 +3345,14 @@
33543345

33553346
\indexlibrarymember{find_last_of}{basic_string}%
33563347
\begin{itemdecl}
3357-
size_type find_last_of (basic_string_view<charT, traits> sv,
3358-
size_type pos = npos) const noexcept;
3348+
size_type find_last_of(basic_string_view<charT, traits> sv, size_type pos = npos) const noexcept;
33593349
\end{itemdecl}
33603350

33613351
\begin{itemdescr}
33623352
\pnum
33633353
\effects
33643354
Determines the highest position \tcode{xpos}, if possible, such that both of
33653355
the following conditions hold:
3366-
33673356
\begin{itemize}
33683357
\item
33693358
\tcode{xpos <= pos}
@@ -3389,8 +3378,7 @@
33893378

33903379
\indexlibrarymember{find_last_of}{basic_string}%
33913380
\begin{itemdecl}
3392-
size_type find_last_of(const basic_string& str,
3393-
size_type pos = npos) const noexcept;
3381+
size_type find_last_of(const basic_string& str, size_type pos = npos) const noexcept;
33943382
\end{itemdecl}
33953383

33963384
\begin{itemdescr}
@@ -3449,7 +3437,6 @@
34493437
\effects
34503438
Determines the lowest position \tcode{xpos}, if possible, such that both of
34513439
the following conditions hold:
3452-
34533440
\begin{itemize}
34543441
\item
34553442
\tcode{pos <= xpos}
@@ -3475,21 +3462,21 @@
34753462

34763463
\indexlibrarymember{find_first_not_of}{basic_string}%
34773464
\begin{itemdecl}
3478-
size_type find_first_not_of(const basic_string& str,
3479-
size_type pos = 0) const noexcept;
3465+
size_type find_first_not_of(const basic_string& str, size_type pos = 0) const noexcept;
34803466
\end{itemdecl}
34813467

34823468
\begin{itemdescr}
34833469
\pnum
34843470
\effects
34853471
Equivalent to:
3486-
\tcode{return find_first_not_of(basic_string_view<charT, traits>(str), pos);}
3472+
\begin{codeblock}
3473+
return find_first_not_of(basic_string_view<charT, traits>(str), pos);
3474+
\end{codeblock}
34873475
\end{itemdescr}
34883476

34893477
\indexlibrarymember{find_first_not_of}{basic_string}%
34903478
\begin{itemdecl}
3491-
size_type
3492-
find_first_not_of(const charT* s, size_type pos, size_type n) const;
3479+
size_type find_first_not_of(const charT* s, size_type pos, size_type n) const;
34933480
\end{itemdecl}
34943481

34953482
\begin{itemdescr}
@@ -3528,16 +3515,15 @@
35283515

35293516
\indexlibrarymember{find_last_not_of}{basic_string}%
35303517
\begin{itemdecl}
3531-
size_type find_last_not_of (basic_string_view<charT, traits> sv,
3532-
size_type pos = npos) const noexcept;
3518+
size_type find_last_not_of(basic_string_view<charT, traits> sv,
3519+
size_type pos = npos) const noexcept;
35333520
\end{itemdecl}
35343521

35353522
\begin{itemdescr}
35363523
\pnum
35373524
\effects
35383525
Determines the highest position \tcode{xpos}, if possible, such that both of
35393526
the following conditions hold:
3540-
35413527
\begin{itemize}
35423528
\item
35433529
\tcode{xpos <= pos}
@@ -3563,21 +3549,21 @@
35633549

35643550
\indexlibrarymember{find_last_not_of}{basic_string}%
35653551
\begin{itemdecl}
3566-
size_type find_last_not_of(const basic_string& str,
3567-
size_type pos = npos) const noexcept;
3552+
size_type find_last_not_of(const basic_string& str, size_type pos = npos) const noexcept;
35683553
\end{itemdecl}
35693554

35703555
\begin{itemdescr}
35713556
\pnum
35723557
\effects
35733558
Equivalent to:
3574-
\tcode{return find_last_not_of(basic_string_view<charT, traits>(str), pos);}
3559+
\begin{codeblock}
3560+
return find_last_not_of(basic_string_view<charT, traits>(str), pos);
3561+
\end{codeblock}
35753562
\end{itemdescr}
35763563

35773564
\indexlibrarymember{find_last_not_of}{basic_string}%
35783565
\begin{itemdecl}
3579-
size_type find_last_not_of(const charT* s, size_type pos,
3580-
size_type n) const;
3566+
size_type find_last_not_of(const charT* s, size_type pos, size_type n) const;
35813567
\end{itemdecl}
35823568

35833569
\begin{itemdescr}
@@ -3672,8 +3658,7 @@
36723658

36733659
\indexlibrarymember{compare}{basic_string}%
36743660
\begin{itemdecl}
3675-
int compare(size_type pos1, size_type n1,
3676-
basic_string_view<charT, traits> sv) const;
3661+
int compare(size_type pos1, size_type n1, basic_string_view<charT, traits> sv) const;
36773662
\end{itemdecl}
36783663

36793664
\begin{itemdescr}
@@ -3698,7 +3683,8 @@
36983683
Equivalent to:
36993684
\begin{codeblock}
37003685
basic_string_view<charT, traits> sv = t;
3701-
return basic_string_view<charT, traits>(data(), size()).substr(pos1, n1).compare(sv.substr(pos2, n2));
3686+
return basic_string_view<charT, traits>(
3687+
data(), size()).substr(pos1, n1).compare(sv.substr(pos2, n2));
37023688
\end{codeblock}
37033689

37043690
\pnum
@@ -3722,8 +3708,7 @@
37223708

37233709
\indexlibrarymember{compare}{basic_string}%
37243710
\begin{itemdecl}
3725-
int compare(size_type pos1, size_type n1,
3726-
const basic_string& str) const;
3711+
int compare(size_type pos1, size_type n1, const basic_string& str) const;
37273712
\end{itemdecl}
37283713

37293714
\begin{itemdescr}
@@ -3761,8 +3746,7 @@
37613746

37623747
\indexlibrarymember{compare}{basic_string}%
37633748
\begin{itemdecl}
3764-
int compare(size_type pos, size_type n1,
3765-
const charT* s) const;
3749+
int compare(size_type pos, size_type n1, const charT* s) const;
37663750
\end{itemdecl}
37673751

37683752
\begin{itemdescr}
@@ -3772,8 +3756,7 @@
37723756

37733757
\indexlibrarymember{compare}{basic_string}%
37743758
\begin{itemdecl}
3775-
int compare(size_type pos, size_type n1,
3776-
const charT* s, size_type n2) const;
3759+
int compare(size_type pos, size_type n1, const charT* s, size_type n2) const;
37773760
\end{itemdecl}
37783761

37793762
\begin{itemdescr}

0 commit comments

Comments
 (0)