MCPcopy Create free account
hub / github.com/anjo76/angelscript / StringIsEmpty

Function StringIsEmpty

sdk/add_on/scriptstdstring/scriptstdstring.cpp:181–188  ·  view source on GitHub ↗

bool string::isEmpty() bool string::empty() // if AS_USE_STLNAMES == 1

Source from the content-addressed store, hash-verified

179// bool string::isEmpty()
180// bool string::empty() // if AS_USE_STLNAMES == 1
181static bool StringIsEmpty(const string &str)
182{
183 // We don't register the method directly because some compilers
184 // and standard libraries inline the definition, resulting in the
185 // linker being unable to find the declaration
186 // Example: CLang/LLVM with XCode 4.3 on OSX 10.7
187 return str.empty();
188}
189
190#if AS_NO_IMPL_OPS_WITH_STRING_AND_PRIMITIVE == 0
191static string &AssignUInt64ToString(asQWORD i, string &dest)

Callers 1

StringIsEmptyGenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected