MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / makeString

Method makeString

source/src/scriptinterpreter.h:1160–1166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1158 static void clearSaved() { std::unique_lock<std::mutex> lock(savedVariables_Mutex); savedVariables.clear(); savedVariables_Save = true; savedVariables_Condition.notify_all(); }
1159
1160 static auto makeString(const std::string str) -> std::string
1161 {
1162 std::string result = str;
1163 result.erase(std::remove(result.begin(), result.end(), '\''), result.end());
1164 result = "'" + result + "'";
1165 return result;
1166 }
1167 static bool isReserveSymbol(unsigned char ch)
1168 {
1169 return ch != '_' && ch < 0x80 && !std::isalnum(ch);

Callers 1

ActionInterpreterMethod · 0.80

Calls 3

eraseMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected