MCPcopy Create free account
hub / github.com/beefytech/Beef / Replace

Method Replace

BeefySysLib/util/String.cpp:698–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698void StringImpl::Replace(char find, char replace)
699{
700 auto ptr = GetMutablePtr();
701 for (int i = 0; i < mLength; i++)
702 {
703 if (ptr[i] == find)
704 ptr[i] = replace;
705 }
706}
707
708void StringImpl::Replace(const StringView& find, const StringView & replace)
709{

Callers 7

StrReplaceMethod · 0.45
ImageHelpWalkFunction · 0.45
BfpSystem_SetCommandLineFunction · 0.45
TestFailedFunction · 0.45
Test_ErrorMethod · 0.45
Test_WriteMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestFailedFunction · 0.36
Test_ErrorMethod · 0.36
Test_WriteMethod · 0.36