- return stringi_set_find_node__ (set, s, utf8_hash_case_string (s, 0));
+ return stringi_set_find_node_len (set, s, strlen (s));
+}
+
+/* Returns the node in SET that contains S with the given LENGTH, or a null
+ pointer if SET does not contain S. */
+struct stringi_set_node *
+stringi_set_find_node_len (const struct stringi_set *set, const char *s,
+ size_t length)
+{
+ return stringi_set_find_node_len__ (set, s, length,
+ utf8_hash_case_bytes (s, length, 0));