tmp/tmp_v9ejzi1/{from.md → to.md}
RENAMED
|
@@ -1,12 +1,14 @@
|
|
| 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, ...);
|
|
@@ -35,36 +37,36 @@ namespace std {
|
|
| 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);
|
| 52 |
-
wchar_t* wcschr(wchar_t* s, wchar_t 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);
|
| 55 |
-
wchar_t* wcspbrk(wchar_t* s1, const wchar_t* s2);
|
| 56 |
-
const wchar_t* wcsrchr(const wchar_t* s, wchar_t c);
|
| 57 |
-
wchar_t* wcsrchr(wchar_t* s, wchar_t 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);
|
| 60 |
-
wchar_t* wcsstr(wchar_t* s1, const wchar_t* s2);
|
| 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);
|
| 63 |
-
wchar_t* wmemchr(wchar_t* s, wchar_t c, size_t n);
|
| 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 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
|
|
@@ -74,21 +76,22 @@ namespace std {
|
|
| 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 document, but they have the
|
| 91 |
same behavior as in the C standard library [[library.c]]. — *end note*]
|
| 92 |
|
| 93 |
-
See also: ISO C 7.
|
| 94 |
|
|
|
|
| 1 |
### Header `<cwchar>` synopsis <a id="cwchar.syn">[[cwchar.syn]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
#define __STDC_VERSION_WCHAR_H__ 202311L
|
| 5 |
+
|
| 6 |
namespace std {
|
| 7 |
+
using size_t = see [support.types.layout]; // freestanding
|
| 8 |
+
using mbstate_t = see below; // freestanding
|
| 9 |
+
using wint_t = see below; // freestanding
|
| 10 |
|
| 11 |
struct tm;
|
| 12 |
|
| 13 |
int fwprintf(FILE* stream, const wchar_t* format, ...);
|
| 14 |
int fwscanf(FILE* stream, const wchar_t* format, ...);
|
|
|
|
| 37 |
long double wcstold(const wchar_t* nptr, wchar_t** endptr);
|
| 38 |
long int wcstol(const wchar_t* nptr, wchar_t** endptr, int base);
|
| 39 |
long long int wcstoll(const wchar_t* nptr, wchar_t** endptr, int base);
|
| 40 |
unsigned long int wcstoul(const wchar_t* nptr, wchar_t** endptr, int base);
|
| 41 |
unsigned long long int wcstoull(const wchar_t* nptr, wchar_t** endptr, int base);
|
| 42 |
+
wchar_t* wcscpy(wchar_t* s1, const wchar_t* s2); // freestanding
|
| 43 |
+
wchar_t* wcsncpy(wchar_t* s1, const wchar_t* s2, size_t n); // freestanding
|
| 44 |
+
wchar_t* wmemcpy(wchar_t* s1, const wchar_t* s2, size_t n); // freestanding
|
| 45 |
+
wchar_t* wmemmove(wchar_t* s1, const wchar_t* s2, size_t n); // freestanding
|
| 46 |
+
wchar_t* wcscat(wchar_t* s1, const wchar_t* s2); // freestanding
|
| 47 |
+
wchar_t* wcsncat(wchar_t* s1, const wchar_t* s2, size_t n); // freestanding
|
| 48 |
+
int wcscmp(const wchar_t* s1, const wchar_t* s2); // freestanding
|
| 49 |
int wcscoll(const wchar_t* s1, const wchar_t* s2);
|
| 50 |
+
int wcsncmp(const wchar_t* s1, const wchar_t* s2, size_t n); // freestanding
|
| 51 |
size_t wcsxfrm(wchar_t* s1, const wchar_t* s2, size_t n);
|
| 52 |
+
int wmemcmp(const wchar_t* s1, const wchar_t* s2, size_t n); // freestanding
|
| 53 |
+
const wchar_t* wcschr(const wchar_t* s, wchar_t c); // freestanding; see [library.c]
|
| 54 |
+
wchar_t* wcschr(wchar_t* s, wchar_t c); // freestanding; see [library.c]
|
| 55 |
+
size_t wcscspn(const wchar_t* s1, const wchar_t* s2); // freestanding
|
| 56 |
+
const wchar_t* wcspbrk(const wchar_t* s1, const wchar_t* s2); // freestanding; see [library.c]
|
| 57 |
+
wchar_t* wcspbrk(wchar_t* s1, const wchar_t* s2); // freestanding; see [library.c]
|
| 58 |
+
const wchar_t* wcsrchr(const wchar_t* s, wchar_t c); // freestanding; see [library.c]
|
| 59 |
+
wchar_t* wcsrchr(wchar_t* s, wchar_t c); // freestanding; see [library.c]
|
| 60 |
+
size_t wcsspn(const wchar_t* s1, const wchar_t* s2); // freestanding
|
| 61 |
+
const wchar_t* wcsstr(const wchar_t* s1, const wchar_t* s2); // freestanding; see [library.c]
|
| 62 |
+
wchar_t* wcsstr(wchar_t* s1, const wchar_t* s2); // freestanding; see [library.c]
|
| 63 |
+
wchar_t* wcstok(wchar_t* s1, const wchar_t* s2, wchar_t** ptr); // freestanding
|
| 64 |
+
const wchar_t* wmemchr(const wchar_t* s, wchar_t c, size_t n); // freestanding; see [library.c]
|
| 65 |
+
wchar_t* wmemchr(wchar_t* s, wchar_t c, size_t n); // freestanding; see [library.c]
|
| 66 |
+
size_t wcslen(const wchar_t* s); // freestanding
|
| 67 |
+
wchar_t* wmemset(wchar_t* s, wchar_t c, size_t n); // freestanding
|
| 68 |
size_t wcsftime(wchar_t* s, size_t maxsize, const wchar_t* format, const tm* timeptr);
|
| 69 |
wint_t btowc(int c);
|
| 70 |
int wctob(wint_t c);
|
| 71 |
|
| 72 |
// [c.mb.wcs], multibyte / wide string and character conversion functions
|
|
|
|
| 76 |
size_t wcrtomb(char* s, wchar_t wc, mbstate_t* ps);
|
| 77 |
size_t mbsrtowcs(wchar_t* dst, const char** src, size_t len, mbstate_t* ps);
|
| 78 |
size_t wcsrtombs(char* dst, const wchar_t** src, size_t len, mbstate_t* ps);
|
| 79 |
}
|
| 80 |
|
| 81 |
+
#define NULL see [support.types.nullptr] // freestanding
|
| 82 |
+
#define WCHAR_MAX see below // freestanding
|
| 83 |
+
#define WCHAR_MIN see below // freestanding
|
| 84 |
+
#define WEOF see below // freestanding
|
| 85 |
+
#define WCHAR_WIDTH see below // freestanding
|
| 86 |
```
|
| 87 |
|
| 88 |
The contents and meaning of the header `<cwchar>` are the same as the C
|
| 89 |
standard library header `<wchar.h>`, except that it does not declare a
|
| 90 |
type `wchar_t`.
|
| 91 |
|
| 92 |
[*Note 1*: The functions `wcschr`, `wcspbrk`, `wcsrchr`, `wcsstr`, and
|
| 93 |
`wmemchr` have different signatures in this document, but they have the
|
| 94 |
same behavior as in the C standard library [[library.c]]. — *end note*]
|
| 95 |
|
| 96 |
+
See also: ISO C 7.31
|
| 97 |
|