MCPcopy Create free account
hub / github.com/csyonghe/Spire / FromWString

Method FromWString

Source/CoreLib/LibString.cpp:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 String String::FromWString(const wchar_t * wstr)
84 {
85#ifdef _WIN32
86 return CoreLib::IO::Encoding::UTF16->ToString((const char*)wstr, (int)(wcslen(wstr) * sizeof(wchar_t)));
87#else
88 return CoreLib::IO::Encoding::UTF32->ToString((const char*)wstr, (int)(wcslen(wstr) * sizeof(wchar_t)));
89#endif
90 }
91
92 String String::FromWChar(const wchar_t ch)
93 {

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected