Lines Matching refs:src
68 size_t mbsnrtowcs(wchar_t* dst, const char** src, size_t nmc, size_t len, mbstate_t* ps) { in mbsnrtowcs() argument
76 if (nmc > 0 && mbstate_bytes_so_far(state) > 0 && static_cast<uint8_t>((*src)[0]) < 0x80) { in mbsnrtowcs()
83 if (static_cast<uint8_t>((*src)[i]) < 0x80) { in mbsnrtowcs()
85 if ((*src)[i] == '\0') { in mbsnrtowcs()
90 r = mbrtowc(nullptr, *src + i, nmc - i, state); in mbsnrtowcs()
107 if (static_cast<uint8_t>((*src)[i]) < 0x80) { in mbsnrtowcs()
109 dst[o] = (*src)[i]; in mbsnrtowcs()
111 if ((*src)[i] == '\0') { in mbsnrtowcs()
112 *src = nullptr; in mbsnrtowcs()
116 r = mbrtowc(dst + o, *src + i, nmc - i, state); in mbsnrtowcs()
118 *src += i; in mbsnrtowcs()
122 *src += nmc; in mbsnrtowcs()
126 *src = nullptr; in mbsnrtowcs()
131 *src += i; in mbsnrtowcs()
135 size_t mbsrtowcs(wchar_t* dst, const char** src, size_t len, mbstate_t* ps) { in mbsrtowcs() argument
136 return mbsnrtowcs(dst, src, SIZE_MAX, len, ps); in mbsrtowcs()
148 size_t wcsnrtombs(char* dst, const wchar_t** src, size_t nwc, size_t len, mbstate_t* ps) { in wcsnrtombs() argument
160 wchar_t wc = (*src)[i]; in wcsnrtombs()
178 wchar_t wc = (*src)[i]; in wcsnrtombs()
183 *src = nullptr; in wcsnrtombs()
191 *src += i; in wcsnrtombs()
198 *src += i; in wcsnrtombs()
207 *src += i; in wcsnrtombs()
211 size_t wcsrtombs(char* dst, const wchar_t** src, size_t len, mbstate_t* ps) { in wcsrtombs() argument
212 return wcsnrtombs(dst, src, SIZE_MAX, len, ps); in wcsrtombs()