00001 #ifndef __rus_numerals 00002 #define __rus_numerals 00003 00004 #include "utilit.h" 00005 00006 struct CNumeralToNumber 00007 { 00008 char m_Cardinal[25]; // "äâà" 00009 char m_Ordinal[25]; // "âòîðîé" 00010 char m_Adverb[25]; // "ÂÄÂÎÅÌ" 00011 char m_CoollectiveNumber[25]; // "ÄÂÎÅ" 00012 char m_RomanNumber[25]; // II 00013 double m_Number; // 2 00014 bool m_bNoun; // false 00015 }; 00016 00017 const size_t NumeralToNumberCount = 40; 00018 extern const CNumeralToNumber NumeralToNumber[]; 00019 00020 extern string IntToStr (double i); 00021 extern string FindByNumber(QWORD Number); 00022 extern int IsAdverbRule(const string& Lemma); 00023 extern double GetCardinalNumeral(const string& word); 00024 extern QWORD GetOrdinalNumeral(const string& word); 00025 extern QWORD GetNounNumeral(const string& word); 00026 00027 00028 #endif 00029 00030