mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
rename 'files' to 'io'
This commit is contained in:
parent
e5d558d357
commit
1e22882284
45 changed files with 157 additions and 160 deletions
|
|
@ -1,16 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace files {
|
||||
inline bool is_valid_name(std::string_view name) {
|
||||
static std::string illegalChars = "\\/%?!<>:; ";
|
||||
for (char c : illegalChars) {
|
||||
if (name.find(c) != std::string::npos) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return !name.empty();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue