uuu
uuu (Universal Update Utility), mfgtools 3.0
 
Loading...
Searching...
No Matches
buildincmd.cpp File Reference
#include "buildincmd.h"
#include <algorithm>
#include <locale>
#include <regex>
#include "emmc_burn_loader.clst"
#include "emmc_burn_all.clst"
#include "fat_write.clst"
#include "nand_burn_loader.clst"
#include "qspi_burn_loader.clst"
#include "fspinand_burn_loader.clst"
#include "sd_burn_loader.clst"
#include "sd_burn_all.clst"
#include "spl_boot.clst"
#include "nvme_burn_all.clst"

Functions

static std::string replace_str (std::string str, std::string key, std::string replace)
 Replace a key substring of a string str by a replacement replace
 
static std::string str_to_upper (const std::string &str)
 Returns a copy of str with all applicable characters converted to uppercase.
 

Variables

static constexpr BuiltInScriptRawData g_builtin_cmd []
 Array containing raw information about all the built-in scripts of uuu.
 
BuiltInScriptMap g_BuildScripts (g_builtin_cmd)
 A map of the built-in scripts' names to their BuiltInScript representations.
 

Function Documentation

◆ replace_str()

static std::string replace_str ( std::string str,
std::string key,
std::string replace )
static

Replace a key substring of a string str by a replacement replace

Parameters
[in]strThe string of which a copy with the replacements shall be created
[in]keyThe string which shall be replaced
[in]replaceThe string that shall replace occurrences of key
Returns
A new string instance with the replacements conducted on it

◆ str_to_upper()

static std::string str_to_upper ( const std::string & str)
static

Returns a copy of str with all applicable characters converted to uppercase.

Parameters
[in]strThe string for which an uppercase copy shall be created
Returns
The copy of str converted to uppercase

Variable Documentation

◆ g_BuildScripts

A map of the built-in scripts' names to their BuiltInScript representations.

◆ g_builtin_cmd

BuiltInScriptRawData g_builtin_cmd[]
staticconstexpr

Array containing raw information about all the built-in scripts of uuu.