MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / PrintTableItemNumeric

Function PrintTableItemNumeric

src/Chain/libraries/glua/glua_decompile.cpp:1023–1032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1021}
1022
1023void PrintTableItemNumeric(std::stringstream &str, DecTableItem* item) {
1024 const auto &value = item->value;
1025 if (value[0] == '{' && string_last_char(str.str()) != '\n') {
1026 str << "\n";
1027 }
1028 str << value;
1029 if (value[value.length() - 1] == '}') {
1030 str << "\n";
1031 }
1032}
1033
1034void PrintTableItemKeyed(GluaDecompileContextP ctx, Function* F, std::stringstream &str, DecTableItem* item) {
1035 const auto &value = item->value;

Callers 1

PrintTableFunction · 0.85

Calls 3

string_last_charFunction · 0.85
strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected