X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fstringi-map.h;h=5f2ffdc40ba0624b3842e7ae1360046295c19107;hb=54f4856c4669d2639239cda25752d646729f627a;hp=bc01e721cd92a735a7c06ff2a61e1f8bf699605c;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp diff --git a/src/libpspp/stringi-map.h b/src/libpspp/stringi-map.h index bc01e721cd..5f2ffdc40b 100644 --- a/src/libpspp/stringi-map.h +++ b/src/libpspp/stringi-map.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ key-value pairs. */ #include -#include +#include "libpspp/hmap.h" struct string_set; struct stringi_set; @@ -90,8 +90,11 @@ static inline bool stringi_map_is_empty (const struct stringi_map *); bool stringi_map_contains (const struct stringi_map *, const char *); const char *stringi_map_find (const struct stringi_map *, const char *); +const char *stringi_map_find__ (const struct stringi_map *, const char *key, + size_t key_len); struct stringi_map_node *stringi_map_find_node (const struct stringi_map *, - const char *); + const char *key, + size_t key_len); char *stringi_map_find_and_delete (struct stringi_map *, const char *key); struct stringi_map_node *stringi_map_insert (struct stringi_map *,