NAH 1.0.6
Native Application Host - Library API Reference
Loading...
Searching...
No Matches
expansion.hpp File Reference
#include "nah/warnings.hpp"
#include <string>
#include <vector>
#include <unordered_map>

Go to the source code of this file.

Classes

struct  nah::ExpansionResult
 
struct  nah::ExpansionWithLimitsResult
 

Namespaces

namespace  nah
 

Functions

void nah::expand_environment_map (std::unordered_map< std::string, std::string > &environment, WarningCollector &warnings)
 
ExpansionResult nah::expand_placeholders (const std::string &input, const std::unordered_map< std::string, std::string > &environment, const std::string &source_path, WarningCollector &warnings)
 
std::string nah::expand_placeholders (const std::string &input, const std::unordered_map< std::string, std::string > &environment, std::vector< std::string > &missing_vars)
 
ExpansionWithLimitsResult nah::expand_placeholders_with_limits (const std::string &input, const std::unordered_map< std::string, std::string > &environment, std::vector< std::string > &missing_vars, size_t max_size, size_t max_placeholders)
 
std::vector< std::string > nah::expand_string_vector (const std::vector< std::string > &input, const std::unordered_map< std::string, std::string > &environment, const std::string &source_path_prefix, WarningCollector &warnings)
 
std::vector< std::string > nah::expand_vector (const std::vector< std::string > &input, const std::unordered_map< std::string, std::string > &environment, std::vector< std::string > &missing_vars)
 

Variables

constexpr size_t nah::MAX_EXPANDED_SIZE = 64 * 1024
 
constexpr size_t nah::MAX_PLACEHOLDERS = 128