|
3712 | 3712 | \pnum
|
3713 | 3713 | The
|
3714 | 3714 | \term{pending sequence}
|
3715 |
| -of characters is defined as the concatenation of: |
3716 |
| -\begin{enumeratea} |
3717 |
| -\item |
3718 |
| -If |
3719 |
| -\tcode{gptr()} |
3720 |
| -is non-null, then the |
| 3715 | +of characters is defined as the concatenation of |
| 3716 | +\begin{itemize} |
| 3717 | +\item the empty sequence if \tcode{gptr()} is null, otherwise the |
3721 | 3718 | \tcode{egptr() - gptr()}
|
3722 | 3719 | characters starting at
|
3723 | 3720 | \tcode{gptr()},
|
3724 |
| -otherwise the empty sequence. |
| 3721 | +followed by |
3725 | 3722 | \item
|
3726 |
| -Some sequence (possibly empty) of characters read from the input sequence. |
3727 |
| -\end{enumeratea} |
| 3723 | +some (possibly empty) sequence of characters read from the input sequence. |
| 3724 | +\end{itemize} |
3728 | 3725 |
|
3729 | 3726 | \pnum
|
3730 | 3727 | The
|
3731 | 3728 | \term{result character}
|
3732 | 3729 | is
|
3733 |
| -\begin{enumeratea} |
3734 |
| -\item |
3735 |
| -If the pending sequence is non-empty, the first character of the sequence. |
3736 |
| -\item |
3737 |
| -If the pending sequence |
3738 |
| -is |
3739 |
| -empty then the next character that would be read from the input sequence. |
3740 |
| -\end{enumeratea} |
| 3730 | +the first character of the pending sequence if it is non-empty, |
| 3731 | +otherwise |
| 3732 | +the next character that would be read from the input sequence. |
3741 | 3733 |
|
3742 | 3734 | \pnum
|
3743 | 3735 | The
|
3744 | 3736 | \term{backup sequence}
|
3745 |
| -is defined as the concatenation of: |
3746 |
| -\begin{enumeratea} |
3747 |
| -\item |
3748 |
| -If |
3749 |
| -\tcode{eback()} |
3750 |
| -is null then empty, |
3751 |
| -\item |
3752 |
| -Otherwise the |
| 3737 | +is the empty sequence if \tcode{eback()} is null, otherwise the |
3753 | 3738 | \tcode{gptr() - eback()}
|
3754 | 3739 | characters beginning at
|
3755 | 3740 | \tcode{eback()}.
|
3756 |
| -\end{enumeratea} |
3757 | 3741 |
|
3758 | 3742 | \pnum
|
3759 | 3743 | \effects
|
3760 | 3744 | The function sets up the
|
3761 | 3745 | \tcode{gptr()}
|
3762 | 3746 | and
|
3763 | 3747 | \tcode{egptr()}
|
3764 |
| -satisfying one of: |
3765 |
| -\begin{enumeratea} |
3766 |
| -\item |
3767 |
| -If the pending sequence is non-empty, |
| 3748 | +such that |
| 3749 | +if the pending sequence is non-empty, then |
3768 | 3750 | \tcode{egptr()}
|
3769 | 3751 | is non-null and
|
3770 | 3752 | \tcode{egptr() - gptr()}
|
3771 | 3753 | characters starting at
|
3772 | 3754 | \tcode{gptr()}
|
3773 |
| -are the characters in the pending sequence |
3774 |
| -\item |
3775 |
| -If the pending sequence is empty, either |
3776 |
| -\tcode{gptr()} |
| 3755 | +are the characters in the pending sequence, otherwise |
| 3756 | +either \tcode{gptr()} |
3777 | 3757 | is null or
|
3778 |
| -\tcode{gptr()} |
3779 |
| -and |
3780 |
| -\tcode{egptr()} |
3781 |
| -are set to the same non-null pointer value. |
3782 |
| -\end{enumeratea} |
| 3758 | +\tcode{gptr() == egptr()}. |
3783 | 3759 |
|
3784 | 3760 | \pnum
|
3785 | 3761 | If
|
3786 | 3762 | \tcode{eback()}
|
3787 | 3763 | and
|
3788 | 3764 | \tcode{gptr()}
|
3789 |
| -are non-null then the function is not constrained as to their contents, but the ``usual backup condition'' is that either: |
3790 |
| -\begin{enumeratea} |
| 3765 | +are non-null then the function is not constrained as to their contents, but the ``usual backup condition'' is that either |
| 3766 | +\begin{itemize} |
3791 | 3767 | \item
|
3792 |
| -If the backup sequence contains at least |
| 3768 | +the backup sequence contains at least |
3793 | 3769 | \tcode{gptr() - eback()}
|
3794 |
| -characters, then the |
| 3770 | +characters, and then the |
3795 | 3771 | \tcode{gptr() - eback()}
|
3796 | 3772 | characters starting at
|
3797 | 3773 | \tcode{eback()}
|
3798 | 3774 | agree with the last
|
3799 | 3775 | \tcode{gptr() - eback()}
|
3800 |
| -characters of the backup sequence. |
| 3776 | +characters of the backup sequence, or |
3801 | 3777 | \item
|
3802 |
| -Or the \tcode{n} characters starting at |
| 3778 | +the \tcode{n} characters starting at |
3803 | 3779 | \tcode{gptr() - n}
|
3804 |
| -agree with the backup sequence (where \tcode{n} is the length of the backup sequence) |
3805 |
| -\end{enumeratea} |
| 3780 | +agree with the backup sequence (where \tcode{n} is the length of the backup sequence). |
| 3781 | +\end{itemize} |
3806 | 3782 |
|
3807 | 3783 | \pnum
|
3808 | 3784 | \default
|
|
3953 | 3929 | Consumes some initial subsequence of the characters of the
|
3954 | 3930 | \term{pending sequence}.
|
3955 | 3931 | The pending sequence is defined as the concatenation of
|
3956 |
| -\begin{enumeratea} |
| 3932 | +\begin{itemize} |
3957 | 3933 | \item
|
3958 |
| -if |
3959 |
| -\tcode{pbase()} |
3960 |
| -is null then the empty sequence otherwise, |
| 3934 | +the empty sequence if \tcode{pbase()} is not null, otherwise the |
3961 | 3935 | \tcode{pptr() - pbase()}
|
3962 | 3936 | characters beginning at
|
3963 |
| -\tcode{pbase()}. |
| 3937 | +\tcode{pbase()}, followed by |
3964 | 3938 | \item
|
| 3939 | +the empty sequence |
3965 | 3940 | if
|
3966 | 3941 | \tcode{traits::eq_int_type(c, traits::eof())}
|
3967 | 3942 | returns
|
3968 |
| -\tcode{true}, |
3969 |
| -then the empty sequence |
3970 |
| -otherwise, the sequence consisting of \tcode{c}. |
3971 |
| -\end{enumeratea} |
| 3943 | +\tcode{true}, otherwise the sequence consisting of \tcode{c}. |
| 3944 | +\end{itemize} |
3972 | 3945 |
|
3973 | 3946 | \pnum
|
3974 | 3947 | \remarks
|
|
0 commit comments