Copies exactly count successive wide characters from the wide character array pointed to by src to the wide character array pointed to by dest.
If count is zero, the function does nothing.
The arrays may overlap: copying takes place as if the wide characters were copied to a temporary wide character array and then copied from the temporary array to dest.
[edit] Parameters dest - pointer to the wide character array to copy to src - pointer to the wide character array to copy from count - number of wide characters to copy [edit] Return valueReturns a copy of dest.
[edit] NotesThis function is not locale-sensitive and pays no attention to the values of the wchar_t objects it copies: nulls as well as invalid characters are copied too.
[edit] Example#include <clocale> #include <cwchar> #include <iostream> #include <locale> int main() { std::setlocale(LC_ALL, "en_US.utf8"); std::wcout.imbue(std::locale("en_US.utf8")); wchar_t str[] = L"αβγδεζηθικλμνξοÏÏÏÏÏ ÏÏÏÏ"; std::wcout << str << '\n'; std::wmemmove(str + 4, str + 3, 3); // copy from [δεζ] to [εζη] std::wcout << str << '\n'; }
Possible output:
αβγδεζηθικλμνξοÏÏÏÏÏ ÏÏÏÏ Î±Î²Î³Î´Î´ÎµÎ¶Î¸Î¹ÎºÎ»Î¼Î½Î¾Î¿ÏÏÏÏÏ ÏÏÏÏ[edit] See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4