Programming with Judy

Using Judy
Using JudySL
Chapter 344
Using JudySL
The JudySL functions provide a way to use string values as indexes into
a Judy array. In JudySL arrays, elements are sorted lexicographically
(case-sensitive) by indexes:
Since an initial (empty) JudySL array is represented by a null pointer,
you can make JudySL arrays multi-dimensional:
The table below shows the JudySL functions. For more information, see
the JudySL(3X) man page.
void * JudySLArray ["Toto, I don't think we're in Kansas any more"];
void * JudySLArray [char *][char *]...;
Table 3-4
JudySL functions Actions
JudySLGet Retrieves a value from a JudySL string array.
JudySLIns Inserts a value into a JudySL array.
JudySLDel Deletes the specified JudySL array element.
JudySLFirst Typically begins a sorted-order scan of the set indexes
in a JudySL array.
JudySLNext Typically continues a sorted-order scan of the set
indexes in a JudySL array or locates a neighbor of an
index.
JudySLLast Typically begins a reverse sorted-order scan of the set
indexes in a JudySL array.
JudySLPrev Typically continues a reverse sorted-order scan of the
set indexes in a JudySL array or locates a neighbor of
an index.
JudySLFreeArray Frees the entire JudyL array. This is much faster
than using JudySLNext and JudySLDel.