Move getLanguageSelfName to tools.h

This is a general utility which other ports can get use of.
Added tests
This commit is contained in:
Nikhil Tanwar
2023-07-12 19:56:57 +05:30
parent 8726de494c
commit 385931f229
6 changed files with 125 additions and 60 deletions

View File

@ -244,5 +244,13 @@ FeedLanguages readLanguagesFromFeed(const std::string& content);
* @return vector containing category strings.
*/
FeedCategories readCategoriesFromFeed(const std::string& content);
/**
* Retrieve the full language name associated with a given ISO 639-3 language code.
*
* @param lang ISO 639-3 language code.
* @return full language name.
*/
std::string getLanguageSelfName(const std::string& lang);
}
#endif // KIWIX_TOOLS_H