[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppBuilderAnsiReplaceStr
The STL's equivalent is std::replace.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppBuilderAnsiReplaceStr
(C++ Builder) AnsiReplaceStr
Function to replace occurrances of a certain sub-String by others. In the header file StrUtils.hpp.{ const String test = "XXX1X23X456X78XX90XX"; const String test2 = AnsiReplaceStr(test,"X",""); assert(test2=="1234567890"); }
- include <System.hpp> //For String
- include <assert> //For assert
The STL's equivalent is std::replace.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
