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

Function DeleteCharactersFromString

sourcecommon/utils.cpp:47–58  ·  view source on GitHub ↗

--------------------------------------------------------------------------- ������ �������, ������������� � ������ del

Source from the content-addressed store, hash-verified

45//---------------------------------------------------------------------------
46// ������ �������, ������������� � ������ del
47void DeleteCharactersFromString(char * s, char * del)
48{
49 if( !s || !del ) return;
50 int i, j;
51 for(i=0,j=0; s[i]; i++)
52 {
53 if( strchr(del, s[i]) ) continue;
54 // ������ s[i] � ������ del �� ������ - ������� ���
55 s[j++] = s[i];
56 }
57 s[j] = 0;
58}
59//---------------------------------------------------------------------------
60// �������� � ������ s ��� �������, ��������� � ������ source �� ������ dest
61void ReplaceCharactersFromString(char * s, char * source, char dest)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected