yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::project::anonymous_namespace{project.cc} Namespace Reference

Functions

std::string ToLowerCopy (std::string value)
 
std::pair< std::string, std::string > ParseKeyValue (const std::string &line)
 
bool ParseBool (const std::string &value)
 
float ParseFloat (const std::string &value)
 
std::vector< std::string > ParseStringList (const std::string &value)
 
std::vector< uint16_t > ParseHexUintList (const std::string &value)
 
std::optional< uint32_t > ParseHexUint32 (const std::string &value)
 
std::string FormatHexUintList (const std::vector< uint16_t > &values)
 
std::string FormatHexUint32 (uint32_t value)
 
std::string SanitizeStorageKey (absl::string_view input)
 
std::pair< std::string, std::string > ParseDefineToken (const std::string &value)
 
std::string ResolveOptionalPath (const std::filesystem::path &base_dir, const std::string &value)
 
std::string BasenameLower (const std::string &path)
 
uint64_t CurrentProcessIdForProjectSave ()
 
std::filesystem::path MakeProjectSaveTempPath (const std::filesystem::path &target_path)
 
void RemoveProjectSaveTempFile (const std::filesystem::path &temp_path)
 
absl::Status WriteProjectFileAtomicallyImpl (const std::filesystem::path &target_path, absl::string_view contents, bool replace_existing)
 

Function Documentation

◆ ToLowerCopy()

std::string yaze::project::anonymous_namespace{project.cc}::ToLowerCopy ( std::string value)

Definition at line 49 of file project.cc.

References ToLowerCopy().

Referenced by BasenameLower(), and ToLowerCopy().

Here is the call graph for this function:

◆ ParseKeyValue()

std::pair< std::string, std::string > yaze::project::anonymous_namespace{project.cc}::ParseKeyValue ( const std::string & line)

Definition at line 57 of file project.cc.

◆ ParseBool()

bool yaze::project::anonymous_namespace{project.cc}::ParseBool ( const std::string & value)

Definition at line 74 of file project.cc.

References ParseBool().

Referenced by ParseBool().

Here is the call graph for this function:

◆ ParseFloat()

float yaze::project::anonymous_namespace{project.cc}::ParseFloat ( const std::string & value)

Definition at line 78 of file project.cc.

References ParseFloat().

Referenced by ParseFloat().

Here is the call graph for this function:

◆ ParseStringList()

std::vector< std::string > yaze::project::anonymous_namespace{project.cc}::ParseStringList ( const std::string & value)

Definition at line 86 of file project.cc.

References ParseStringList().

Referenced by ParseHexUintList(), and ParseStringList().

Here is the call graph for this function:

◆ ParseHexUintList()

std::vector< uint16_t > yaze::project::anonymous_namespace{project.cc}::ParseHexUintList ( const std::string & value)

Definition at line 103 of file project.cc.

References ParseHexUintList(), and ParseStringList().

Referenced by ParseHexUintList().

Here is the call graph for this function:

◆ ParseHexUint32()

std::optional< uint32_t > yaze::project::anonymous_namespace{project.cc}::ParseHexUint32 ( const std::string & value)

Definition at line 131 of file project.cc.

References ParseHexUint32().

Referenced by ParseHexUint32().

Here is the call graph for this function:

◆ FormatHexUintList()

std::string yaze::project::anonymous_namespace{project.cc}::FormatHexUintList ( const std::vector< uint16_t > & values)

Definition at line 151 of file project.cc.

References FormatHexUintList().

Referenced by FormatHexUintList().

Here is the call graph for this function:

◆ FormatHexUint32()

std::string yaze::project::anonymous_namespace{project.cc}::FormatHexUint32 ( uint32_t value)

Definition at line 157 of file project.cc.

References FormatHexUint32().

Referenced by FormatHexUint32().

Here is the call graph for this function:

◆ SanitizeStorageKey()

std::string yaze::project::anonymous_namespace{project.cc}::SanitizeStorageKey ( absl::string_view input)

Definition at line 161 of file project.cc.

References SanitizeStorageKey().

Referenced by SanitizeStorageKey().

Here is the call graph for this function:

◆ ParseDefineToken()

std::pair< std::string, std::string > yaze::project::anonymous_namespace{project.cc}::ParseDefineToken ( const std::string & value)

Definition at line 174 of file project.cc.

References ParseDefineToken().

Referenced by ParseDefineToken().

Here is the call graph for this function:

◆ ResolveOptionalPath()

std::string yaze::project::anonymous_namespace{project.cc}::ResolveOptionalPath ( const std::filesystem::path & base_dir,
const std::string & value )

Definition at line 182 of file project.cc.

References ResolveOptionalPath().

Referenced by ResolveOptionalPath().

Here is the call graph for this function:

◆ BasenameLower()

std::string yaze::project::anonymous_namespace{project.cc}::BasenameLower ( const std::string & path)

Definition at line 194 of file project.cc.

References BasenameLower(), and ToLowerCopy().

Referenced by BasenameLower().

Here is the call graph for this function:

◆ CurrentProcessIdForProjectSave()

uint64_t yaze::project::anonymous_namespace{project.cc}::CurrentProcessIdForProjectSave ( )

Definition at line 199 of file project.cc.

References CurrentProcessIdForProjectSave().

Referenced by CurrentProcessIdForProjectSave(), and MakeProjectSaveTempPath().

Here is the call graph for this function:

◆ MakeProjectSaveTempPath()

std::filesystem::path yaze::project::anonymous_namespace{project.cc}::MakeProjectSaveTempPath ( const std::filesystem::path & target_path)

Definition at line 207 of file project.cc.

References CurrentProcessIdForProjectSave(), and MakeProjectSaveTempPath().

Referenced by MakeProjectSaveTempPath(), and WriteProjectFileAtomicallyImpl().

Here is the call graph for this function:

◆ RemoveProjectSaveTempFile()

void yaze::project::anonymous_namespace{project.cc}::RemoveProjectSaveTempFile ( const std::filesystem::path & temp_path)

Definition at line 217 of file project.cc.

References RemoveProjectSaveTempFile().

Referenced by RemoveProjectSaveTempFile(), and WriteProjectFileAtomicallyImpl().

Here is the call graph for this function:

◆ WriteProjectFileAtomicallyImpl()

absl::Status yaze::project::anonymous_namespace{project.cc}::WriteProjectFileAtomicallyImpl ( const std::filesystem::path & target_path,
absl::string_view contents,
bool replace_existing )

Definition at line 222 of file project.cc.

References MakeProjectSaveTempPath(), RemoveProjectSaveTempFile(), and WriteProjectFileAtomicallyImpl().

Referenced by WriteProjectFileAtomicallyImpl().

Here is the call graph for this function: