|
-
September 26th, 2009, 07:49 AM
#1
CString Replace question
Hi ...
Currently I'm using CString::Replace and it's working fine.
Problem is that I'm doing it 10 times on the same string (very long one).
So what I'm looking for is a way to find\replace from a given position.
Any ideas ?
Thanks a lot
-
September 26th, 2009, 08:07 AM
#2
Re: CString Replace question
Something like (pseudo-code!):
Code:
CString strOriginal;
...
int iPosition = ...;
...
CString strAfterPosition = strOriginal.Mid(iPosition);
strAfterPosition.Replace(...);
strOriginal = strOriginal.Left(iPosition) + strAfterPosition;
Victor Nijegorodov
-
September 26th, 2009, 08:09 AM
#3
Re: CString Replace question
Interesting .. I'll test this code soon.
Thanks
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
|