src/strings_func.h
changeset 8817 9df6e6b40d12
parent 8610 17cc343a23dd
child 8826 35a3dfe12641
equal deleted inserted replaced
8816:0917ba1990f2 8817:9df6e6b40d12
    67 bool ReadLanguagePack(int index);
    67 bool ReadLanguagePack(int index);
    68 void InitializeLanguagePacks();
    68 void InitializeLanguagePacks();
    69 
    69 
    70 int CDECL StringIDSorter(const void *a, const void *b);
    70 int CDECL StringIDSorter(const void *a, const void *b);
    71 
    71 
       
    72 /** Key comparison function for std::map */
       
    73 struct StringIDCompare
       
    74 {
       
    75 	bool operator()(StringID s1, StringID s2) { return StringIDSorter(&s1, &s2) < 0; }
       
    76 };
       
    77 
    72 void CheckForMissingGlyphsInLoadedLanguagePack();
    78 void CheckForMissingGlyphsInLoadedLanguagePack();
    73 
    79 
    74 #endif /* STRINGS_TYPE_H */
    80 #endif /* STRINGS_TYPE_H */