Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
util.hpp File Reference
#include <stdexcept>
#include <aurore/core/logger.hpp>

Go to the source code of this file.

Namespaces

namespace  aurore
 

Functions

bool aurore::endsWith (const std::string &data, const std::string &suffix)
 
bool aurore::startsWith (const std::string &data, const std::string &prefix)
 
void aurore::fatal (std::string message)
 
std::string aurore::loadFileContents (const std::string &path)
 
bool aurore::readSmallFile (const std::string &path, size_t maxBytes, std::string *text)
 
bool aurore::isResourceNameSafe (const std::string &name)
 
std::string aurore::escapeControlChars (const std::string &text)
 
const char * aurore::environmentVariable (const std::string &name)
 The environment variable AURORE_<name>: nullptr when it is not set.