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 » Index find on complex match
Index find on complex match [message #47075] Tue, 29 November 2016 05:32
kr8vzn is currently offline  kr8vzn
Messages: 4
Registered: May 2013
Location: Australia
Junior Member
Hi,

I have the following structure and would like to find complex matches to any item of the structure

struct Test : Moveable<Test>
{
unsigned u;
String a;
String b;
String c;
bool f;

static unsigned u_counter;

Test() {u = u_counter; u_counter++; f = true;};
Test(String s1, String s2 = "", String s3 = "")
{u = u_counter; u_counter++; a = s1; b = s2; c = s3; f = true;};
};

unsigned Test::u_counter = 1;

CONSOLE_APP_MAIN
{
Index<Test> tests;
tests.Add(Test("String1"));
tests.Add(Test("band"));
tests.Add(Test("String3","and"));

}

I would like to be able to have

tests.Find(String(..));

with find "and" matching "band" and "and"
or find "Str" matching "String1" and "String2"

Is there a way to do this with existing functions?
Previous Topic: 'Thread' has not been declared
Next Topic: CoWork::Finish() can wait in a worker thread while there are jobs to do
Goto Forum:
  


Current Time: Thu Mar 28 20:50:16 CET 2024

Total time taken to generate the page: 0.02144 seconds