Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Fri May 17 12:50:55 CEST 2024

Total time taken to generate the page: 0.01001 seconds