MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / string

Method string

source/core/StarLua.cpp:778–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778String LuaEngine::string(int handleIndex) {
779 if (m_nullTerminated > 0)
780 return String(lua_tostring(m_handleThread, handleIndex));
781 else {
782 size_t len = 0;
783 const char* data = lua_tolstring(m_handleThread, handleIndex, &len);
784 return String(data, len);
785 }
786}
787
788StringView LuaEngine::stringView(int handleIndex) {
789 if (m_nullTerminated > 0)

Callers 11

toJsonMethod · 0.45
storeMethod · 0.45
addImageDirectivesMethod · 0.45
filterProcessingMethod · 0.45
toStringMethod · 0.45
StarAssetPath.cppFile · 0.45
MakeFileNameMethod · 0.45
ConcatPathsMethod · 0.45

Calls 2

StringClass · 0.85
lua_tolstringFunction · 0.85

Tested by 4

MakeFileNameMethod · 0.36
ConcatPathsMethod · 0.36