coastline 0.0.4
Loading...
Searching...
No Matches
stringresources.h File Reference
#include <cstdint>
#include <filesystem>
#include <map>
#include <set>
#include <span>
#include <string>
#include <string_view>
#include "language.h"
Include dependency graph for stringresources.h:

Go to the source code of this file.

Classes

class  coastline::GameText
 Read the strings of a language and of en-us, each a JSON object of strings by key, from strings/LANGUAGE.json and strings/en-us.json under assets, for the race and the menus. More...

Namespaces

namespace  coastline

Functions

std::map< unsigned, std::string > coastline::ReadLibraryStrings (std::span< const std::uint8_t > image)
 Read the string resources of a Windows library.
void coastline::AppendUtf8 (std::string &text, char32_t c)
 Append a code point to UTF-8 text.
char32_t coastline::NextCodePoint (std::string_view text, std::size_t &position)
 Decode the code point of UTF-8 text at a position, and step past it.
const std::string * coastline::FindString (std::string_view key)
std::string_view coastline::GameString (std::string_view key)