Fix typos.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@180598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a5f0e6c5c1
commit
df4182153c
@ -1407,7 +1407,7 @@ codecvt<wchar_t, char, mbstate_t>::do_out(state_type& st,
|
|||||||
to_nxt = to;
|
to_nxt = to;
|
||||||
for (frm_nxt = frm; frm != frm_end && to != to_end; frm = frm_nxt, to = to_nxt)
|
for (frm_nxt = frm; frm != frm_end && to != to_end; frm = frm_nxt, to = to_nxt)
|
||||||
{
|
{
|
||||||
// save state in case needed to reover to_nxt on error
|
// save state in case it is needed to recover to_nxt on error
|
||||||
mbstate_t save_state = st;
|
mbstate_t save_state = st;
|
||||||
#ifdef _LIBCPP_LOCALE__L_EXTENSIONS
|
#ifdef _LIBCPP_LOCALE__L_EXTENSIONS
|
||||||
size_t n = wcsnrtombs_l(to, &frm_nxt, static_cast<size_t>(fend-frm),
|
size_t n = wcsnrtombs_l(to, &frm_nxt, static_cast<size_t>(fend-frm),
|
||||||
@ -1476,7 +1476,7 @@ codecvt<wchar_t, char, mbstate_t>::do_in(state_type& st,
|
|||||||
to_nxt = to;
|
to_nxt = to;
|
||||||
for (frm_nxt = frm; frm != frm_end && to != to_end; frm = frm_nxt, to = to_nxt)
|
for (frm_nxt = frm; frm != frm_end && to != to_end; frm = frm_nxt, to = to_nxt)
|
||||||
{
|
{
|
||||||
// save state in case needed to reover to_nxt on error
|
// save state in case it is needed to recover to_nxt on error
|
||||||
mbstate_t save_state = st;
|
mbstate_t save_state = st;
|
||||||
#ifdef _LIBCPP_LOCALE__L_EXTENSIONS
|
#ifdef _LIBCPP_LOCALE__L_EXTENSIONS
|
||||||
size_t n = mbsnrtowcs_l(to, &frm_nxt, static_cast<size_t>(fend-frm),
|
size_t n = mbsnrtowcs_l(to, &frm_nxt, static_cast<size_t>(fend-frm),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user