From e4999acc98a1d8d9248455281cb6f405f2cef4ce Mon Sep 17 00:00:00 2001 From: Andy2 Date: Mon, 6 Dec 2010 18:24:31 -0800 Subject: [PATCH] add dict_getWordCount() --- xwords4/common/dictnry.c | 6 ++++++ xwords4/common/dictnry.h | 1 + 2 files changed, 7 insertions(+) diff --git a/xwords4/common/dictnry.c b/xwords4/common/dictnry.c index 3a3b04b4e..09f93d2c0 100644 --- a/xwords4/common/dictnry.c +++ b/xwords4/common/dictnry.c @@ -437,6 +437,12 @@ dict_getLangCode( const DictionaryCtxt* dict ) return dict->langCode; } +XP_U32 +dict_getWordCount( const DictionaryCtxt* dict ) +{ + return dict->nWords; +} + #ifdef STUBBED_DICT #define BLANK_FACE '\0' diff --git a/xwords4/common/dictnry.h b/xwords4/common/dictnry.h index fc4ff731d..4d7f2f9e9 100644 --- a/xwords4/common/dictnry.h +++ b/xwords4/common/dictnry.h @@ -152,6 +152,7 @@ void dict_getFaceBitmaps( const DictionaryCtxt* dict, Tile tile, XP_Bitmaps* bmps ); XP_LangCode dict_getLangCode( const DictionaryCtxt* dict ); +XP_U32 dict_getWordCount( const DictionaryCtxt* dict ); void dict_writeToStream( const DictionaryCtxt* ctxt, XWStreamCtxt* stream ); void dict_loadFromStream( DictionaryCtxt* dict, XWStreamCtxt* stream );