Need help accomplishing something using descriptors
| Sat, 2008-01-05 22:47 | |
|
I have a descriptor. I need to locate a specific sequence of characters, then copy the contents from after this character, until the next CRLF, to another descriptor. I have this in one descriptor: ABC123 I want to find 'DEF' and have '456' in another descriptor: I can of course perform a Find() to locate the starting point of the sequence, but after this I'm lost. I reviewed the SDK documentation for the descriptor classes and have searched the forums here. What is the general approach for this? It doesn't seem like something too unusual. I was thinking after locating the sequence, copy from here + 3 to the end of the original sequence to a descriptor: 456 ...then trim characters after (and including the first CRLF: 456 But I don't even see a way to use Copy() to do this. I also though about using Match(), but it seems that you have to know the number of characters even when using wildcards. In my example there is no way to know how many characters long the '456' part will be. Thanks. |
|






Forum posts: 110
I must admit I don't do much string processing on Symbian but for some reason the phrase "TLex" springs to mind. Look it up in the SDK docs...