Build your own Trie entry table

2016-12-26 Thread Remi Thebault via Digitalmars-d-learn
Hello I want to map a dchar to its Bidi_Class. I've built an utility that reads UnicodeData.txt into an AA and builds a trie with std.uni.codepointTrie from it. I use Trie.store() to export the trie entry table into a D module. (I believe in a similar manner than phobos' unicode_tables.d) N

Re: Build your own Trie entry table

2016-12-27 Thread Dmitry Olshansky via Digitalmars-d-learn
On Monday, 26 December 2016 at 10:12:20 UTC, Remi Thebault wrote: Hello I want to map a dchar to its Bidi_Class. I've built an utility that reads UnicodeData.txt into an AA and builds a trie with std.uni.codepointTrie from it. I use Trie.store() to export the trie entry table into a D module.

Re: Build your own Trie entry table

2016-12-28 Thread Remi Thebault via Digitalmars-d-learn
On Tuesday, 27 December 2016 at 19:19:49 UTC, Dmitry Olshansky wrote: On Monday, 26 December 2016 at 10:12:20 UTC, Remi Thebault wrote: Now I want to use this table to efficiently create a Trie in my code, the same way std.uni does, but found out that Trie constructor is private. Please f