mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
blocks and items 'caption' property
This commit is contained in:
parent
c9da6b9a0c
commit
5c3b61265a
10 changed files with 44 additions and 1 deletions
|
|
@ -39,6 +39,12 @@ namespace util {
|
|||
extern std::wstring capitalized(const std::wstring& str);
|
||||
extern std::wstring pascal_case(const std::wstring& str);
|
||||
|
||||
/// @brief Convert `any_prefix:some_data_id` to `some data id`. Leaves
|
||||
/// '_' characters at end of the id.
|
||||
/// @param id source id
|
||||
/// @return resulting caption or empty string if there's nothing but prefix
|
||||
extern std::string id_to_caption(const std::string& id);
|
||||
|
||||
extern std::vector<std::string> split(const std::string& str, char delimiter);
|
||||
extern std::vector<std::wstring> split(const std::wstring& str, char delimiter);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue