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 » How Use Substring Search?
Re: How Use Substring Search? [message #3205 is a reply to message #3204] Fri, 12 May 2006 18:49 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
zaurus wrote on Fri, 12 May 2006 12:13

Hi!

I have some difficulties in using the substring search.

sText = "This is a long night.";
iPos = sText.Find("long");

I was thinking that it should work like this, but it doesn't. Some small example would help. I couldn't find anything in existing examples.

Sorry if this is a dumb question. I'm still new to U++, but like it a lot.

Thanks for any help

Zaurus



Well, this works:

#include <Core/Core.h>

CONSOLE_APP_MAIN
{
	String sText = "This is a long night.";
	int iPos = sText.Find("long");
	Cout() << iPos << "\n";
}


Mirek
 
Read Message
Read Message
Read Message
Previous Topic: Header Issues[SOLVED]
Next Topic: short-hand
Goto Forum:
  


Current Time: Thu Jun 06 17:05:43 CEST 2024

Total time taken to generate the page: 0.01951 seconds