Remove a specified string from the string list separated by delimiter.
bool remove_str_from_str_list( LPCSTR lpcszRemoved, string & strList, bool bFullMatch = true, string strDelimiter = "|" )
true if removement succeed, otherwise false.
EX1
bool remove_str_from_str_list_ex1() { LPCSTR lpcszRemoved = "Mencius"; string strList="Confucius\\Mencius"; LPCSTR lpcszBefore = NULL; string strDelimiter = "\\"; bool bFullMatch = true; if(remove_str_from_str_list(lpcszRemoved, strList, bFullMatch, strDelimiter)) printf("%s\n",strList); else printf("error"); return 0; }
origin.h