strtok-v2.e addition

new topic     » goto parent     » topic index » view thread      » older message » newer message

Ok, since i recieved no feedback on adding case-insensitivity to the strtok 
library, i am adding it like this:

string = "a1 cat1 ba Cat1 da tac2"

findtok(string,"Cat1",{1},32) = 4
findtok(string,"Cat1",1,32) = 4
findtok(string,"Cat1",{"i",1},32) = 2 

This makes the flag optional and doesn't break anything. So far, matchtok, 
matchntok, wildtok, wildntok, and findtok can ignore the case of token and 
string. Webpage and zip file are updated. Comments are welcome.

Kat
http://www.pell.net/warning/euphoria.html

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu