X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Fifmsxmldocument.h;h=ae555a1fad52ec06663cab8972462a21876028d0;hp=8e04c3c8bc4db26ef5603f5eee28068e3d39162d;hb=1230cc420c955e75051d011d964bc68f061ba08c;hpb=6836fbb5db8464f56e682989996b2210b14231d0 diff --git a/include/ifmsxmldocument.h b/include/ifmsxmldocument.h index 8e04c3c..ae555a1 100644 --- a/include/ifmsxmldocument.h +++ b/include/ifmsxmldocument.h @@ -90,6 +90,17 @@ protected: } return false; } + + const std::string SanitizeSingleString(const std::string &text) + { + std::string returntext=text; + // remove bogus chars from text string + for(char i=1; i<32; i++) + { + returntext=StringFunctions::Replace(returntext,std::string(1,i),""); + } + return returntext; + } };