String & delimit

Dié d.cavadini at freesurf.ch
Tue Apr 3 08:50:07 PDT 2007


Hello

I have this string:

blablabla thisis a string example <i_need_this_text>

With Tango.text.Util i think i can use "delimit" function for extracting the test "i_need_this_text".

delimit("blablabla thisis a string example <i_need_this_text>","<>")

But i found in http://www.dsource.org/projects/tango/docs/current/tango.text.Util.html

the delimit declaration:

T[][] delimit (T)(T[] src, T[] set);

and now how can i correctly use this function with template? I suppose i must declare e template like this

template TText(T){alias T* t;}

but i dont understand how use the template with the delimit function.

Someone can explain me?
Thank you!




More information about the Digitalmars-d mailing list