ReactOS
0.4.16-dev-853-g88d9285
common_utf8.cpp
Go to the documentation of this file.
1
//
2
// common_utf8.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// Common UTF-8 utilities
7
//
8
9
#include <
corecrt_internal.h
>
10
#include <
corecrt_internal_mbstring.h
>
11
#include <
corecrt_internal_ptd_propagation.h
>
12
13
namespace
__crt_mbstring
14
{
15
size_t
return_illegal_sequence
(
mbstate_t
* ps, __crt_cached_ptd_host&
ptd
)
16
{
17
*ps = {};
18
ptd
.get_errno().set(
EILSEQ
);
19
return
INVALID
;
20
}
21
22
size_t
reset_and_return
(
size_t
retval
,
mbstate_t
* ps)
23
{
24
*ps = {};
25
return
retval
;
26
}
27
}
corecrt_internal.h
corecrt_internal_mbstring.h
corecrt_internal_ptd_propagation.h
ptd
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
Definition:
cvt.cpp:355
__crt_mbstring
Definition:
common_utf8.cpp:14
__crt_mbstring::INVALID
constexpr size_t INVALID
Definition:
corecrt_internal_mbstring.h:147
__crt_mbstring::return_illegal_sequence
size_t return_illegal_sequence(mbstate_t *ps, __crt_cached_ptd_host &ptd)
Definition:
common_utf8.cpp:15
__crt_mbstring::reset_and_return
size_t reset_and_return(size_t retval, mbstate_t *ps)
Definition:
common_utf8.cpp:22
EILSEQ
#define EILSEQ
Definition:
errno.h:109
__mbstate_t
Definition:
_sunprocc.h:145
retval
int retval
Definition:
wcstombs.cpp:91
sdk
lib
ucrt
convert
common_utf8.cpp
Generated on Mon Mar 24 2025 06:14:44 for ReactOS by
1.9.6