| Localization library | |||||||||||||||||||||||||
| Regular expressions library(C++11) | |||||||||||||||||||||||||
| Formatting library(C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| Functions | ||||||||||||||||||||||||||
| Character classification | ||||||||||||||||||||||||||
| Character manipulation | ||||||||||||||||||||||||||
| Conversions to numeric formats | ||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||
| String manipulation | ||||||||||||||||||||||||||
| String examination | ||||||||||||||||||||||||||
| Array manipulation | ||||||||||||||||||||||||||
Defined in header <cwchar> | ||
wchar_t* wmemmove(wchar_t* dest,constwchar_t* src,std::size_t count); | ||
Copies exactlycount successive wide characters from the wide character array pointed to bysrc to the wide character array pointed to bydest.
Ifcount 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 todest.
Contents |
| 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 |
Returns a copy ofdest.
This function is not locale-sensitive and pays no attention to the values of thewchar_t objects it copies: nulls as well as invalid characters are copied too.
#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:
αβγδεζηθικλμνξοπρστυφχψωαβγδδεζθικλμνξοπρστυφχψω
| copies a certain amount of wide characters between two non-overlapping arrays (function)[edit] | |
| moves one buffer to another (function)[edit] | |
(C++11) | copies a range of elements to a new location (function template)[edit] |
| copies a range of elements in backwards order (function template)[edit] | |
C documentation forwmemmove | |