MCPcopy Create free account
hub / github.com/SmingHub/Sming / replace

Method replace

Sming/Wiring/WString.cpp:792–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790/*********************************************/
791
792void String::replace(char find, char replace)
793{
794 auto buf = buffer();
795 for(unsigned len = length(); len > 0; --len, ++buf) {
796 if(*buf == find) {
797 *buf = replace;
798 }
799 }
800}
801
802bool String::replace(const String& find, const String& replace)
803{

Callers 15

onIndexFunction · 0.45
jquery.jsFile · 0.45
gbFunction · 0.45
xbFunction · 0.45
PFunction · 0.45
jquery.jsFile · 0.45
gbFunction · 0.45
xbFunction · 0.45
PFunction · 0.45
jquery.jsFile · 0.45
gbFunction · 0.45
xbFunction · 0.45

Calls 3

memmemFunction · 0.85
cbufferMethod · 0.80
lengthMethod · 0.45

Tested by 2

parse_http_dateFunction · 0.36
parse_iso_datetimeFunction · 0.36