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< std::string > ParsePositionalStringList (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)
 
void MigrateGfxGroupLabelKeys (std::unordered_map< std::string, std::unordered_map< std::string, std::string > > &labels)
 
std::map< uint16_t, std::vector< uint16_t > > ParseHexUintListMap (const std::string &value)
 
std::string FormatHexUintListMap (const std::map< uint16_t, 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)
 
bool ContainsLoneCarriageReturn (const std::string &content)
 
bool IsKnownProjectSection (absl::string_view name)
 
bool IsGeneratedProjectComment (absl::string_view line, bool before_sections)
 
ProjectFilePassthrough::Section & PassthroughSection (ProjectFilePassthrough &passthrough, const std::string &name)
 
bool IsKeyLine (absl::string_view line)
 
std::string MergeProjectFilePassthrough (const std::string &canonical, const ProjectFilePassthrough &passthrough)
 

Variables

constexpr absl::string_view kProjectFileFooter = "# End of YAZE Project File"
 

Function Documentation

◆ ToLowerCopy()

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

Definition at line 52 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 60 of file project.cc.

◆ ParseBool()

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

Definition at line 77 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 81 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 89 of file project.cc.

References ParseStringList().

Referenced by ParseHexUintList(), and ParseStringList().

Here is the call graph for this function:

◆ ParsePositionalStringList()

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

Definition at line 106 of file project.cc.

References ParsePositionalStringList().

Referenced by ParsePositionalStringList().

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 122 of file project.cc.

References ParseHexUintList(), and ParseStringList().

Referenced by ParseHexUintList(), and ParseHexUintListMap().

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 150 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 170 of file project.cc.

References FormatHexUintList().

Referenced by FormatHexUintList().

Here is the call graph for this function:

◆ MigrateGfxGroupLabelKeys()

void yaze::project::anonymous_namespace{project.cc}::MigrateGfxGroupLabelKeys ( std::unordered_map< std::string, std::unordered_map< std::string, std::string > > & labels)

Definition at line 182 of file project.cc.

References MigrateGfxGroupLabelKeys().

Referenced by MigrateGfxGroupLabelKeys().

Here is the call graph for this function:

◆ ParseHexUintListMap()

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

Definition at line 229 of file project.cc.

References ParseHexUintList(), and ParseHexUintListMap().

Referenced by ParseHexUintListMap().

Here is the call graph for this function:

◆ FormatHexUintListMap()

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

Definition at line 247 of file project.cc.

References FormatHexUintListMap().

Referenced by FormatHexUintListMap().

Here is the call graph for this function:

◆ FormatHexUint32()

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

Definition at line 255 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 259 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 272 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 280 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 292 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 297 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 305 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 315 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 320 of file project.cc.

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

Referenced by WriteProjectFileAtomicallyImpl().

Here is the call graph for this function:

◆ ContainsLoneCarriageReturn()

bool yaze::project::anonymous_namespace{project.cc}::ContainsLoneCarriageReturn ( const std::string & content)

Definition at line 766 of file project.cc.

References ContainsLoneCarriageReturn().

Referenced by ContainsLoneCarriageReturn().

Here is the call graph for this function:

◆ IsKnownProjectSection()

bool yaze::project::anonymous_namespace{project.cc}::IsKnownProjectSection ( absl::string_view name)

Definition at line 779 of file project.cc.

References IsKnownProjectSection().

Referenced by IsKnownProjectSection().

Here is the call graph for this function:

◆ IsGeneratedProjectComment()

bool yaze::project::anonymous_namespace{project.cc}::IsGeneratedProjectComment ( absl::string_view line,
bool before_sections )

Definition at line 807 of file project.cc.

References IsGeneratedProjectComment(), and kProjectFileFooter.

Referenced by IsGeneratedProjectComment().

Here is the call graph for this function:

◆ PassthroughSection()

ProjectFilePassthrough::Section & yaze::project::anonymous_namespace{project.cc}::PassthroughSection ( ProjectFilePassthrough & passthrough,
const std::string & name )

Definition at line 820 of file project.cc.

References PassthroughSection(), and yaze::project::ProjectFilePassthrough::sections.

Referenced by PassthroughSection().

Here is the call graph for this function:

◆ IsKeyLine()

bool yaze::project::anonymous_namespace{project.cc}::IsKeyLine ( absl::string_view line)

Definition at line 831 of file project.cc.

References IsKeyLine().

Referenced by IsKeyLine(), and MergeProjectFilePassthrough().

Here is the call graph for this function:

◆ MergeProjectFilePassthrough()

std::string yaze::project::anonymous_namespace{project.cc}::MergeProjectFilePassthrough ( const std::string & canonical,
const ProjectFilePassthrough & passthrough )

Variable Documentation

◆ kProjectFileFooter

constexpr absl::string_view yaze::project::anonymous_namespace{project.cc}::kProjectFileFooter = "# End of YAZE Project File"
constexpr

Definition at line 776 of file project.cc.

Referenced by IsGeneratedProjectComment(), and MergeProjectFilePassthrough().