Merge "Move wchar _l functions out of wchar.cpp."

This commit is contained in:
Treehugger Robot 2017-07-13 19:21:11 +00:00 committed by Gerrit Code Review
commit 78c8b306ee
2 changed files with 22 additions and 22 deletions

View File

@ -210,25 +210,3 @@ size_t wcsnrtombs(char* dst, const wchar_t** src, size_t nwc, size_t len, mbstat
size_t wcsrtombs(char* dst, const wchar_t** src, size_t len, mbstate_t* ps) {
return wcsnrtombs(dst, src, SIZE_MAX, len, ps);
}
int wcscoll_l(const wchar_t *ws1, const wchar_t *ws2, locale_t) {
return wcscoll(ws1, ws2);
}
size_t wcsxfrm_l(wchar_t *dest, const wchar_t *src, size_t n, locale_t) {
return wcsxfrm(dest, src, n);
}
long long wcstoll_l(const wchar_t *nptr, wchar_t **endptr, int base,
locale_t) {
return wcstoll(nptr, endptr, base);
}
unsigned long long wcstoull_l(const wchar_t *nptr, wchar_t **endptr,
int base, locale_t) {
return wcstoull(nptr, endptr, base);
}
long double wcstold_l(const wchar_t *nptr, wchar_t **endptr, locale_t) {
return wcstold(nptr, endptr);
}

View File

@ -36,3 +36,25 @@ int wcscasecmp_l(const wchar_t* ws1, const wchar_t* ws2, locale_t) {
int wcsncasecmp_l(const wchar_t* ws1, const wchar_t* ws2, size_t n, locale_t) {
return wcsncasecmp(ws1, ws2, n);
}
int wcscoll_l(const wchar_t *ws1, const wchar_t *ws2, locale_t) {
return wcscoll(ws1, ws2);
}
size_t wcsxfrm_l(wchar_t *dest, const wchar_t *src, size_t n, locale_t) {
return wcsxfrm(dest, src, n);
}
long long wcstoll_l(const wchar_t *nptr, wchar_t **endptr, int base,
locale_t) {
return wcstoll(nptr, endptr, base);
}
unsigned long long wcstoull_l(const wchar_t *nptr, wchar_t **endptr,
int base, locale_t) {
return wcstoull(nptr, endptr, base);
}
long double wcstold_l(const wchar_t *nptr, wchar_t **endptr, locale_t) {
return wcstold(nptr, endptr);
}