MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / ReplaceCharactersFromString

Function ReplaceCharactersFromString

sourcecommon/utils.cpp:61–67  ·  view source on GitHub ↗

--------------------------------------------------------------------------- �������� � ������ s ��� �������, ��������� � ������ source �� ������ dest

Source from the content-addressed store, hash-verified

59//---------------------------------------------------------------------------
60// �������� � ������ s ��� �������, ��������� � ������ source �� ������ dest
61void ReplaceCharactersFromString(char * s, char * source, char dest)
62{
63 if( !s || !source ) return;
64 for(int i=0; s[i]; i++)
65 if( strchr(source, s[i]) )
66 s[i] = dest;
67}
68//---------------------------------------------------------------------------
69void ReplaceCharacters(AnsiString & s, char from, char to)
70{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected