Mercurial > minori
view include/gui/translate/anime.h @ 261:3ec7804abf17
include: make header guards more sane
The C++ standard[1] says:
Each identifier that contains a double underscore __ or
begins with an underscore followed by an uppercase letter
is reserved to the implementation for any use.
[1]: https://timsong-cpp.github.io/cppwp/n4659/lex.name#3.1
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 03 Apr 2024 20:04:28 -0400 |
parents | 649786bae914 |
children | 657fda1b9cac |
line wrap: on
line source
#ifndef MINORI_GUI_TRANSLATE_ANIME_H_ #define MINORI_GUI_TRANSLATE_ANIME_H_ #include "core/anime.h" namespace Translate { std::string ToString(const Anime::ListStatus status); std::string ToString(const Anime::SeriesFormat format); std::string ToString(const Anime::SeriesSeason season); std::string ToString(const Anime::SeriesStatus status); std::string ToString(const Anime::Services service); std::string ToString(const Anime::TitleLanguage language); std::string ToString(const Anime::ScoreFormat format); std::string ToLocalString(const Anime::ListStatus status); std::string ToLocalString(const Anime::SeriesFormat format); std::string ToLocalString(const Anime::SeriesSeason season); std::string ToLocalString(const Anime::SeriesStatus status); std::string ToLocalString(const Anime::Services service); std::string ToLocalString(const Anime::TitleLanguage language); std::string ToLocalString(const Anime::ScoreFormat language); Anime::ListStatus ToListStatus(const std::string& str); Anime::SeriesFormat ToSeriesFormat(const std::string& str); Anime::SeriesSeason ToSeriesSeason(const std::string& str); Anime::SeriesStatus ToSeriesStatus(const std::string& str); Anime::Services ToService(const std::string& str); Anime::TitleLanguage ToLanguage(const std::string& str); Anime::ScoreFormat ToScoreFormat(const std::string& str); } // namespace Translate #endif // MINORI_GUI_TRANSLATE_ANIME_H_