|
-
November 30th, 2006, 03:59 AM
#1
search for strings inside ansistring
hi
i have this:
Code:
AnsiString test = "\1=this \2=is \3=all \4=test";
AnsiString another;
what should i do to search & put the, for example, 2=is into the variable another? the length of the ansistring test is variable.
thanks a lot
-
November 30th, 2006, 04:03 AM
#2
Re: search for strings inside ansistring
You can get a substring and check for equality, or convert it to a C or C++ string and functions for manipulating and comparing them.
Windows XP, Visual Studio 2008, SVN
-
November 30th, 2006, 05:20 AM
#3
Re: search for strings inside ansistring
Get rid of the Borland compiler specific AnsiString and use the C++ std::string instead.
I think you will find it much more useful.
Please rate my post if you felt it was helpful
-
November 30th, 2006, 05:40 AM
#4
Re: search for strings inside ansistring
thanks a lot for helping.
however i used the ansistring pos function to search for the particular strings and it all worked well
thanks again
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|