Reactos
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
13namespace __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}