MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / strreplaceall

Function strreplaceall

ogsr_engine/xrGame/script_engine_help.cpp:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void strreplaceall(luabind::internal_string& str, LPCSTR S, LPCSTR N)
75{
76 LPCSTR A;
77 int S_len = xr_strlen(S);
78 while ((A = strstr(str.c_str(), S)) != 0)
79 str.replace(A - str.c_str(), S_len, N);
80}
81
82static luabind::internal_string& process_signature(luabind::internal_string& str)
83{

Callers 2

print_classFunction · 0.85

Calls 3

replaceMethod · 0.80
xr_strlenFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected