MCPcopy Create free account
hub / github.com/Tencent/UnLua / StringValue

Function StringValue

Plugins/UnLuaExtensions/LuaRapidjson/Source/src/values.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 Value StringValue(lua_State* L, int idx, Allocator& allocator) {
52 size_t len;
53 const char* s = lua_tolstring(L, idx, &len);
54 return Value(s, static_cast<SizeType>(len), allocator);
55 }
56
57 Value TableValue(lua_State* L, int idx, int depth, Allocator& allocator)
58 {

Callers 2

toValueFunction · 0.85
ObjectValueFunction · 0.85

Calls 1

lua_tolstringFunction · 0.85

Tested by

no test coverage detected