Home
About
Download
Register
News
Help
Register
Log In
Forums
Feature Suggestions
pos property for some token identifiers
Forums
Active Threads
Search
Who's Online
Help
Print Thread
pos property for some token identifiers
#
85951
08/06/04
03:18 PM
Joined:
Jul 2003
Posts: 40
Paris, France
H
HadS
OP
Ameglian cow
OP
HadS
Ameglian cow
H
Joined:
Jul 2003
Posts: 40
Paris, France
This would be good to add the pos property to $gettok(), $findtok(), $matchtok(), $istok() and $wildtok().
eg: $gettok(Just.a.test,2,46).pos should return 6.
$matchtok(one two three, e, 2, 32).pos should return 9.
Copy Link to Clipboard
Re: pos property for some token identifiers
#
85952
08/06/04
05:35 PM
Joined:
Apr 2003
Posts: 701
Leuven, Belgium
K
Kelder
Hoopy frood
Kelder
Hoopy frood
K
Joined:
Apr 2003
Posts: 701
Leuven, Belgium
Should $gettok(Just...a...test,2,46).pos return 6 or 8? It can give some strange things when you get the position in a string and after an $addtok it's different.
Maybe tokens and positions in strings are different things and shouldn't be mixed?
Copy Link to Clipboard
Re: pos property for some token identifiers
#
85953
08/06/04
06:06 PM
Joined:
Jul 2003
Posts: 40
Paris, France
H
HadS
OP
Ameglian cow
OP
HadS
Ameglian cow
H
Joined:
Jul 2003
Posts: 40
Paris, France
$gettok(Just...a...test,2,46).pos should return 8 because $gettok(Just...a...test,2,46) return a.
Copy Link to Clipboard
Re: pos property for some token identifiers
#
85954
09/06/04
07:56 PM
Joined:
Nov 2003
Posts: 27
T
Tezorian
Ameglian cow
Tezorian
Ameglian cow
T
Joined:
Nov 2003
Posts: 27
it should return 6. Since even empty tokens are tokens.
$gettok(Just...a...test,2,46) SHOULD return $null
This is btw, what screwed up some scripts.
Copy Link to Clipboard
Re: pos property for some token identifiers
#
85955
09/06/04
08:01 PM
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics
Hoopy frood
FiberOPtics
Hoopy frood
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
Then you don't know much about tokens, and the way mIRC handles them.
mIRC strips out consecutive token delimiters.
/tokenize 46 this......is.....a test
$0 = 3
$1 = this
$2 = is
$3 = a test
Greets
Gone.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage