|
dl
|
语言管理器 更多...
#include <dl_language.h>
Public 成员函数 | |
| Language () | |
| void | LoadCsv (std::string_view path_name) |
| 从CSV文件加载语言配置文件 更多... | |
| std::string_view | Get (std::string_view tag, std::string_view name) |
| 失败返回特定字符串,并写入日志 更多... | |
| std::optional< std::string_view > | GetCheck (std::string_view tag, std::string_view name) |
| 失败返回false 更多... | |
| std::size_t | GetTagSize (std::string_view tag) |
| 返回tag包含的子项数量 更多... | |
| std::vector< std::string_view > | GetTagNameAll (std::string_view tag, std::string_view name) |
| 返回tag子项,以name字符串开头所有元素 更多... | |
| const std::vector< std::string > & | GetLangAll () |
| 返回所有语言 更多... | |
| void | SetLangCurrent (std::size_t index) |
| 设置当前语言 更多... | |
| ~Language () | |
语言管理器
在文件 dl_language.h 第 27 行定义.
| dl::Language::Language | ( | ) |
| dl::Language::~Language | ( | ) |
| std::string_view dl::Language::Get | ( | std::string_view | tag, |
| std::string_view | name | ||
| ) |
失败返回特定字符串,并写入日志
|
inline |
失败返回false
在文件 dl_language.h 第 46 行定义.
| const std::vector< std::string > & dl::Language::GetLangAll | ( | ) |
返回所有语言
|
inline |
返回tag子项,以name字符串开头所有元素
在文件 dl_language.h 第 69 行定义.
|
inline |
返回tag包含的子项数量
在文件 dl_language.h 第 60 行定义.
| void dl::Language::LoadCsv | ( | std::string_view | path_name | ) |
从CSV文件加载语言配置文件
| void dl::Language::SetLangCurrent | ( | std::size_t | index | ) |
设置当前语言