U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Problem with StringReplace [solved]
Problem with StringReplace [solved] [message #7905] Wed, 31 January 2007 08:31 Go to previous message
WebChaot is currently offline  WebChaot
Messages: 53
Registered: September 2006
Location: Austria, Vienna
Member
Hi all!

I was looking for a simple replace function - after a while of searching found such function in "TCore". But what I want to do doesnt work - maybe I do something wrong:

I have some Strings ...

Vector<String> Lines;

... and fill them ...

Lines = Split(LargeStringFromFile, ASeparator, false);

... and now I want to replace something in each line:

for (int i = 0; i < Lines.GetCount(); i++)
{
Lines.At(i) = StringReplace(Lines.At(i), "Something", "SomethingElse");
}

Lines.At(i) seems to do not contain what i expect. Some suggestions?


Thanks in advance,

WebChaot.

[Updated on: Wed, 31 January 2007 09:42] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: RegExp support
Next Topic: LOG files in ~/.App-name/logs/date.log in Linux
Goto Forum:
  


Current Time: Sun May 03 08:24:37 GMT+2 2026

Total time taken to generate the page: 0.00454 seconds