yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
message_source_sync.cc File Reference
#include "app/editor/message/message_source_sync.h"
#include <algorithm>
#include <array>
#include <cctype>
#include <cstdint>
#include <exception>
#include <filesystem>
#include <fstream>
#include <iterator>
#include <limits>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <system_error>
#include <utility>
#include <vector>
#include "absl/status/status.h"
#include "absl/strings/ascii.h"
#include "absl/strings/match.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "app/editor/message/message_data.h"
#include "core/source_artifact_publisher.h"
#include "nlohmann/json.hpp"
#include "rom/snes.h"
#include "util/macro.h"

Go to the source code of this file.

Classes

struct  yaze::editor::anonymous_namespace{message_source_sync.cc}::ExpandedSourceMessage
 

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::anonymous_namespace{message_source_sync.cc}
 

Typedefs

using yaze::editor::anonymous_namespace{message_source_sync.cc}::Json = nlohmann::json
 
using yaze::editor::anonymous_namespace{message_source_sync.cc}::ExpandedSourceBank = std::map<int, ExpandedSourceMessage>
 

Functions

absl::StatusOr< std::string > yaze::editor::anonymous_namespace{message_source_sync.cc}::ReadTextFile (const fs::path &path, absl::string_view label)
 
bool yaze::editor::anonymous_namespace{message_source_sync.cc}::ReadBoundedNonnegativeInteger (const Json &value, uint64_t maximum, uint64_t *parsed)
 
absl::StatusOr< Jsonyaze::editor::anonymous_namespace{message_source_sync.cc}::ParseBundleDocument (std::string_view content, absl::string_view label)
 
absl::StatusOr< std::string > yaze::editor::anonymous_namespace{message_source_sync.cc}::SelectEntryText (const Json &entry, int id, absl::string_view label)
 
std::string yaze::editor::anonymous_namespace{message_source_sync.cc}::NormalizeLegacyDictionaryTokens (std::string text)
 
absl::StatusOr< ExpandedSourceBankyaze::editor::anonymous_namespace{message_source_sync.cc}::ParseExpandedBank (const Json &document, int expected_count, bool require_complete, absl::string_view label)
 
std::string yaze::editor::anonymous_namespace{message_source_sync.cc}::SerializeCanonicalBundle (const ExpandedSourceBank &bank)
 
std::string yaze::editor::anonymous_namespace{message_source_sync.cc}::RenderAsmBody (const ExpandedSourceBank &bank, int first_expanded_id)
 
std::string yaze::editor::anonymous_namespace{message_source_sync.cc}::RenderAsmInclude (const ExpandedSourceBank &bank, int first_expanded_id, std::string_view source_sha256)
 
bool yaze::editor::anonymous_namespace{message_source_sync.cc}::IsCanonicalMappedLoRomAddress (uint32_t address)
 
absl::StatusOr< size_t > yaze::editor::anonymous_namespace{message_source_sync.cc}::ValidateLayoutAndGetCapacity (const core::MessageLayout &layout)
 
bool yaze::editor::anonymous_namespace{message_source_sync.cc}::IsWithinRoot (const fs::path &root, const fs::path &candidate)
 
absl::StatusOr< fs::path > yaze::editor::anonymous_namespace{message_source_sync.cc}::ResolveProjectTarget (const fs::path &project_root, const std::string &configured_path, bool must_exist, absl::string_view label)
 
absl::StatusOr< fs::path > yaze::editor::anonymous_namespace{message_source_sync.cc}::CanonicalProjectRoot (const project::YazeProject &project)
 
std::string yaze::editor::anonymous_namespace{message_source_sync.cc}::LowercasePath (const fs::path &path)
 
absl::Status yaze::editor::anonymous_namespace{message_source_sync.cc}::ValidateDistinctTargets (const fs::path &bundle_path, const fs::path &include_path)
 
absl::StatusOr< std::string > yaze::editor::anonymous_namespace{message_source_sync.cc}::NormalizeExpectedSha256 (std::string hash)
 
std::string yaze::editor::ComputeMessageSourceSha256 (std::string_view content)
 
absl::StatusOr< MessageSourceSyncResultyaze::editor::SyncMessageSource (const project::YazeProject &project, const fs::path &incoming_bundle_path, const MessageSourceSyncOptions &options)
 

Variables

const core::SourceArtifactPublisherLabels yaze::editor::anonymous_namespace{message_source_sync.cc}::kMessageSourcePublisherLabels