code: public Result getMatch(String lookup) {
          int strLen = lookup.length();
          char[] chars = new char[strLen + 1];
          lookup.getChars(0, strLen, chars, 0);
          chars[strLen] = '\uffff';
          
          TinyList resultList = new TinyList();
          fillMatchResults(chars, 1, resultList);
  
          return (Result)resultList.mElement;
      }
docs: Returns null if no match.