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

Function FormatRegExpString

sourcecommon/utils.cpp:1758–1768  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1756}
1757//---------------------------------------------------------------------------
1758String FormatRegExpString(String source)
1759{
1760 String MetaChars = __UTEXT("[]\\/^$.|?*+(){}");
1761 for(int i=1; i<=source.Length(); i++)
1762 if( MetaChars.Pos(source[i]) > 0 )
1763 {
1764 source.Insert("\\", i);
1765 i++;
1766 }
1767 return source;
1768}
1769//---------------------------------------------------------------------------
1770struct colstring ColorNamesRus[] =
1771{

Callers

nothing calls this directly

Calls 1

InsertMethod · 0.80

Tested by

no test coverage detected