[INC] CellTravTrie
1 Attachment(s)
This is a set of stocks me and Twilight_Suzuka (but mostly her) wrote in order to reproduce the functionality of ArrayX using core AMXX functions. It requires CellTrie (included in AMXX 1.8.0 r3711) and CellArray (included in AMXX 1.8.0).
Here is an example plugin that I used to test it: Code:
A couple of notes:
|
Re: [INC] CellTravTrie
Why do you have checks to see if the strings begin with the newline character? Won't you meant the null character?
Other thing: there is a recurrent "problem" in her coding (it also happens in ArrayX): This: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: [INC] CellTravTrie
I don't think it can store a "^n" as the key. Also, you're right about the problem. It's a trivial optimization, though.
|
Re: [INC] CellTravTrie
Quote:
|
Re: [INC] CellTravTrie
I never tested it because I assumed that Suzuka knew what it was doing. You're probably right, though.
|
Re: [INC] CellTravTrie
Quote:
What does this include makes you able to do, that you can't do without it? |
Re: [INC] CellTravTrie
It allows you to traverse a trie. Without this header, you can't traverse it.
|
Re: [INC] CellTravTrie
Quote:
|
Re: [INC] CellTravTrie
TravTrieClear() is broken, if you use it on your travtrie you lose you object.
Here is a fix : Code:
stock TravTrieClear(TravTrie:trie, keylength = 64, startsize = 32) |
All times are GMT -4. The time now is 10:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.