GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::wmemmove(3) C++ Standard Libary std::wmemmove(3)

std::wmemmove - std::wmemmove


Defined in header <cwchar>
wchar_t* wmemmove( wchar_t* dest, const wchar_t* src, std::size_t count );


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.


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 of dest


This 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.

// Run this code


#include <iostream>
#include <cwchar>
#include <locale>
#include <clocale>


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';
}


αβγδεζηθικλμνξοπρστυφχψω
αβγδδεζθικλμνξοπρστυφχψω


copies a certain amount of wide characters between two non-overlapping
wmemcpy arrays
(function)
memmove moves one buffer to another
(function)
copy copies a range of elements to a new location
copy_if (function template)
(C++11)
copy_backward copies a range of elements in backwards order
(function template)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.