I wrote an implementation of several of the VB string functions in C++ yesterday, if anyone is interested. The ones I have done are:
  • InStr
  • Mid
  • Replace
  • TrimL
  • TrimR
  • Trim


I also have functions to remove all but one space from a series of spaces, and one to remove tabs from a string:
Code:
If the input is "Hello      Zaei", the output would be "Hello Zaei", and, if the input is "Hello\tZaei", the output would be "Hello Zaei"
I am also working on a split function. If anyone is interested, I will post the code (its on another computer, and I have to find a disk). Just let me know.

Z.