MCPcopy Create free account
hub / github.com/chrxh/alien / copy

Method copy

source/Base/StringHelper.cpp:100–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void StringHelper::copy(char* target, int targetSize, std::string const& source)
101{
102 auto sourceSize = source.size();
103 if (sourceSize >= targetSize) {
104 sourceSize = targetSize - 1;
105 }
106 source.copy(target, sourceSize);
107 target[sourceSize] = 0;
108}
109
110bool StringHelper::containsCaseInsensitive(std::string const& str, std::string const& toMatch)
111{

Callers 4

encodeDecodeImplFunction · 0.80
InputTextMethod · 0.80
copy_simFunction · 0.80
readMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected