tmp/tmp2swgm_r4/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Header `<cwchar>` synopsis <a id="cwchar.syn">[[cwchar.syn]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
+
using size_t = see [support.types.layout];
|
| 6 |
+
using mbstate_t = see below;
|
| 7 |
+
using wint_t = see below;
|
| 8 |
+
|
| 9 |
+
struct tm;
|
| 10 |
+
|
| 11 |
+
int fwprintf(FILE* stream, const wchar_t* format, ...);
|
| 12 |
+
int fwscanf(FILE* stream, const wchar_t* format, ...);
|
| 13 |
+
int swprintf(wchar_t* s, size_t n, const wchar_t* format, ...);
|
| 14 |
+
int swscanf(const wchar_t* s, const wchar_t* format, ...);
|
| 15 |
+
int vfwprintf(FILE* stream, const wchar_t* format, va_list arg);
|
| 16 |
+
int vfwscanf(FILE* stream, const wchar_t* format, va_list arg);
|
| 17 |
+
int vswprintf(wchar_t* s, size_t n, const wchar_t* format, va_list arg);
|
| 18 |
+
int vswscanf(const wchar_t* s, const wchar_t* format, va_list arg);
|
| 19 |
+
int vwprintf(const wchar_t* format, va_list arg);
|
| 20 |
+
int vwscanf(const wchar_t* format, va_list arg);
|
| 21 |
+
int wprintf(const wchar_t* format, ...);
|
| 22 |
+
int wscanf(const wchar_t* format, ...);
|
| 23 |
+
wint_t fgetwc(FILE* stream);
|
| 24 |
+
wchar_t* fgetws(wchar_t* s, int n, FILE* stream);
|
| 25 |
+
wint_t fputwc(wchar_t c, FILE* stream);
|
| 26 |
+
int fputws(const wchar_t* s, FILE* stream);
|
| 27 |
+
int fwide(FILE* stream, int mode);
|
| 28 |
+
wint_t getwc(FILE* stream);
|
| 29 |
+
wint_t getwchar();
|
| 30 |
+
wint_t putwc(wchar_t c, FILE* stream);
|
| 31 |
+
wint_t putwchar(wchar_t c);
|
| 32 |
+
wint_t ungetwc(wint_t c, FILE* stream);
|
| 33 |
+
double wcstod(const wchar_t* nptr, wchar_t** endptr);
|
| 34 |
+
float wcstof(const wchar_t* nptr, wchar_t** endptr);
|
| 35 |
+
long double wcstold(const wchar_t* nptr, wchar_t** endptr);
|
| 36 |
+
long int wcstol(const wchar_t* nptr, wchar_t** endptr, int base);
|
| 37 |
+
long long int wcstoll(const wchar_t* nptr, wchar_t** endptr, int base);
|
| 38 |
+
unsigned long int wcstoul(const wchar_t* nptr, wchar_t** endptr, int base);
|
| 39 |
+
unsigned long long int wcstoull(const wchar_t* nptr, wchar_t** endptr, int base);
|
| 40 |
+
wchar_t* wcscpy(wchar_t* s1, const wchar_t* s2);
|
| 41 |
+
wchar_t* wcsncpy(wchar_t* s1, const wchar_t* s2, size_t n);
|
| 42 |
+
wchar_t* wmemcpy(wchar_t* s1, const wchar_t* s2, size_t n);
|
| 43 |
+
wchar_t* wmemmove(wchar_t* s1, const wchar_t* s2, size_t n);
|
| 44 |
+
wchar_t* wcscat(wchar_t* s1, const wchar_t* s2);
|
| 45 |
+
wchar_t* wcsncat(wchar_t* s1, const wchar_t* s2, size_t n);
|
| 46 |
+
int wcscmp(const wchar_t* s1, const wchar_t* s2);
|
| 47 |
+
int wcscoll(const wchar_t* s1, const wchar_t* s2);
|
| 48 |
+
int wcsncmp(const wchar_t* s1, const wchar_t* s2, size_t n);
|
| 49 |
+
size_t wcsxfrm(wchar_t* s1, const wchar_t* s2, size_t n);
|
| 50 |
+
int wmemcmp(const wchar_t* s1, const wchar_t* s2, size_t n);
|
| 51 |
+
const wchar_t* wcschr(const wchar_t* s, wchar_t c) // see [library.c]
|
| 52 |
+
wchar_t* wcschr(wchar_t* s, wchar_t c) // see [library.c]
|
| 53 |
+
size_t wcscspn(const wchar_t* s1, const wchar_t* s2);
|
| 54 |
+
const wchar_t* wcspbrk(const wchar_t* s1, const wchar_t* s2) // see [library.c]
|
| 55 |
+
wchar_t* wcspbrk(wchar_t* s1, const wchar_t* s2) // see [library.c]
|
| 56 |
+
const wchar_t* wcsrchr(const wchar_t* s, wchar_t c) // see [library.c]
|
| 57 |
+
wchar_t* wcsrchr(wchar_t* s, wchar_t c) // see [library.c]
|
| 58 |
+
size_t wcsspn(const wchar_t* s1, const wchar_t* s2);
|
| 59 |
+
const wchar_t* wcsstr(const wchar_t* s1, const wchar_t* s2) // see [library.c]
|
| 60 |
+
wchar_t* wcsstr(wchar_t* s1, const wchar_t* s2) // see [library.c]
|
| 61 |
+
wchar_t* wcstok(wchar_t* s1, const wchar_t* s2, wchar_t** ptr);
|
| 62 |
+
const wchar_t* wmemchr(const wchar_t* s, wchar_t c, size_t n) // see [library.c]
|
| 63 |
+
wchar_t* wmemchr(wchar_t* s, wchar_t c, size_t n) // see [library.c]
|
| 64 |
+
size_t wcslen(const wchar_t* s);
|
| 65 |
+
wchar_t* wmemset(wchar_t* s, wchar_t c, size_t n);
|
| 66 |
+
size_t wcsftime(wchar_t* s, size_t maxsize, const wchar_t* format, const struct tm* timeptr);
|
| 67 |
+
wint_t btowc(int c);
|
| 68 |
+
int wctob(wint_t c);
|
| 69 |
+
|
| 70 |
+
// [c.mb.wcs], multibyte / wide string and character conversion functions
|
| 71 |
+
int mbsinit(const mbstate_t* ps);
|
| 72 |
+
size_t mbrlen(const char* s, size_t n, mbstate_t* ps);
|
| 73 |
+
size_t mbrtowc(wchar_t* pwc, const char* s, size_t n, mbstate_t* ps);
|
| 74 |
+
size_t wcrtomb(char* s, wchar_t wc, mbstate_t* ps);
|
| 75 |
+
size_t mbsrtowcs(wchar_t* dst, const char** src, size_t len, mbstate_t* ps);
|
| 76 |
+
size_t wcsrtombs(char* dst, const wchar_t** src, size_t len, mbstate_t* ps);
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
#define NULL see [support.types.nullptr]
|
| 80 |
+
#define WCHAR_MAX see below
|
| 81 |
+
#define WCHAR_MIN see below
|
| 82 |
+
#define WEOF see below
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
The contents and meaning of the header `<cwchar>` are the same as the C
|
| 86 |
+
standard library header `<wchar.h>`, except that it does not declare a
|
| 87 |
+
type `wchar_t`.
|
| 88 |
+
|
| 89 |
+
[*Note 1*: The functions `wcschr`, `wcspbrk`, `wcsrchr`, `wcsstr`, and
|
| 90 |
+
`wmemchr` have different signatures in this International Standard, but
|
| 91 |
+
they have the same behavior as in the C standard library (
|
| 92 |
+
[[library.c]]). — *end note*]
|
| 93 |
+
|
| 94 |
+
ISO C 7.29
|
| 95 |
+
|