DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
SafeNames.h File Reference

Namespaces

namespace  DekiEditor
namespace  DekiEditor::SafeNames

Functions

bool DekiEditor::SafeNames::IsSafeName (const std::string &name, std::string &reason)
 One path segment or identifier. Fills reason on rejection.
bool DekiEditor::SafeNames::IsSafeRepoSlug (const std::string &slug, std::string &reason)
 "owner/name" as the registry's repo field and the manifest's name carry it: exactly one '/', both halves IsSafeName.
bool DekiEditor::SafeNames::IsSafeSerialPort (const std::string &port, std::string &reason)
 A serial port as a backend's deploy step passes it to its tools: COM<n> on Windows, /dev/<name> elsewhere.
bool DekiEditor::SafeNames::IsSafeDefine (const std::string &define, std::string &reason)
 A preprocessor define as a package declares it: NAME or NAME=value with [A-Za-z_][A-Za-z0-9_]* and a value of [A-Za-z0-9_.
bool DekiEditor::SafeNames::IsInsideDirectory (const std::filesystem::path &child, const std::filesystem::path &parent)
 True when child resolves to parent or somewhere below it.