MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / nullAsEmpty

Function nullAsEmpty

Source/Utility/strings.cpp:255–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255const char* nullAsEmpty(const char* str) {
256 if (str) {
257 return str;
258 } else {
259 return "";
260 }
261}
262
263uint32_t GetLengthInBytesForNCodepoints(const string& utf8in, uint32_t codepoint_index) {
264 uint32_t codepoints = 0;

Callers 4

LoadMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected