File: cuchar

package info (click to toggle)
cppreference-doc 20170409-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 259,868 kB
  • sloc: xml: 570,184; python: 1,923; php: 520; makefile: 167; sh: 25; cpp: 9; ansic: 9
file content (40 lines) | stat: -rw-r--r-- 1,386 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*  Copyright (C) 2015  Povilas Kanapickas <povilas@radix.lt>

    This file is part of cppreference-doc

    This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
    Unported License. To view a copy of this license, visit
    http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
    Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

    Permission is granted to copy, distribute and/or modify this document
    under the terms of the GNU Free Documentation License, Version 1.3 or
    any later version published by the Free Software Foundation; with no
    Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
*/

#ifndef CPPREFERENCE_CUCHAR_H
#define CPPREFERENCE_CUCHAR_H

#if CPPREFERENCE_STDVER>= 2011

#define __STDC_UTF_16__
#define __STDC_UTF_32__
namespace std {

std::size_t mbrtoc16(char16_t* pc16,
                     const char* s,
                     std::size_t n,
                     std::mbstate_t* ps);
std::size_t mbrtoc32(char32_t* pc32,
                     const char* s,
                     std::size_t n,
                     std::mbstate_t* ps);
std::size_t c16rtomb(char* s, char16_t c16, std::mbstate_t* ps);
std::size_t c32rtomb(char* s, char32_t c32, std::mbstate_t* ps);

} // namespace std

#endif // CPPREFERENCE_STDVER>= 2011

#endif // CPPREFERENCE_CUCHAR_H