MCPcopy Create free account
hub / github.com/1401199262/MemoryVirtualization / to_byte_string

Function to_byte_string

globals.cpp:41–46  ·  view source on GitHub ↗

convert wstring to string

Source from the content-addressed store, hash-verified

39}
40// convert wstring to string
41std::string to_byte_string(const std::wstring& input)
42{
43 //std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
44 std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
45 return converter.to_bytes(input);
46}
47
48/*
49std::string.find����ǰ��������Ӵ����ַ����ֵ�λ�á�

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected