MCPcopy Create free account
hub / github.com/beefytech/Beef / ToWString

Method ToWString

BeefySysLib/Common.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37USING_NS_BF;
38
39UTF16String Beefy::ToWString(const StringImpl& theString)
40{
41 UTF16String aString;
42 aString.Reserve(theString.length() + 1);
43 for (intptr i = 0; i < theString.length(); ++i)
44 aString.Add((unsigned char)theString[i]);
45 aString.Add(0);
46 return aString;
47}
48
49// String Beefy::ToString(const UTF16String& theString)
50// {

Callers

nothing calls this directly

Calls 3

ReserveMethod · 0.45
lengthMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected