// Do case-insensitive lookup of key[0:keylen] in t[0:n] (key part),
// returning 1 if found, 0 if not.
// Array t must be sorted in increasing lexicographic order of key.
// If found, return corresponding val in *pans.
int
_lookup(StringInt* t, int n, Rune* key, int keylen, int* pans)
{
int min;
int max;
int try;
int cmpresult;
// Make a StringInt table out of a[0:n], mapping each string
// to its index. Check that entries are in alphabetical order.
StringInt*
_makestrinttab(Rune** a, int n)
{
StringInt* ans;
int i;