--- parser3/src/include/pa_dictionary.h 2001/08/28 09:27:42 1.2 +++ parser3/src/include/pa_dictionary.h 2001/10/05 16:12:40 1.6 @@ -2,10 +2,9 @@ Parser: dictionary class decl. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_dictionary.h,v 1.2 2001/08/28 09:27:42 parser Exp $ + $Id: pa_dictionary.h,v 1.6 2001/10/05 16:12:40 parser Exp $ */ #ifndef PA_DICTIONARY_H @@ -16,7 +15,6 @@ /// simple dictionary, speding up lookups on contained two columned table class Dictionary : public Pooled { - friend static void add_first(Array::Item *value, void *info); public: /// construct wrapper, grabbing first letters of first column into @b first @@ -26,7 +24,7 @@ public: double max_ratio() { return fmax_ratio; } /// find first row that contains string in first column which starts @b src - void* first_that_starts(const char *src) const; + void* first_that_starts(const char *src, size_t src_size=0) const; /// where this table came from, may be NULL. proxy to Table const String *origin_string() { return table.origin_string(); } @@ -40,6 +38,7 @@ private: int starting_line_of[0x100]; int constructor_line; + static void add_first(Array::Item *value, void *info); }; #endif