18 std::filesystem::perms::owner_read | std::filesystem::perms::owner_write |
19 std::filesystem::perms::group_read | std::filesystem::perms::others_read;
20 std::error_code
error;
21 std::filesystem::permissions(
p, permissions,
error);
23 std::cerr <<
"Failed to set access on file '" <<
p
24 <<
"': " <<
error.message() << std::endl;
31 return reinterpret_cast<const char*
>(
path.u8string().c_str());
45 bool next_upper =
true;
47 auto ch =
string.data()[
i];
50 stream << static_cast<char>(std::toupper(ch));
63 std::string
result = std::string(
string);
65 [](
char x) { return std::tolower(x); });
75 if (!std::isalpha(
string.
data()[0])) {
79 auto ch =
string.data()[
i];
80 if (std::isalnum(ch) || ch ==
'_') {
91 for (
size_t i = 0;
i <
prefix.length();
i++) {
EMSCRIPTEN_KEEPALIVE void empty()
const uint8_t uint32_t uint32_t GError ** error
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
std::string ConvertToEntrypointName(std::string_view string)
Ensure that the entrypoint name is a valid identifier in the target language.
std::string ToLowerCase(std::string_view string)
bool SetPermissiveAccess(const std::filesystem::path &p)
Sets the file access mode of the file at path 'p' to 0644.
std::string ToCamelCase(std::string_view string)
std::string Utf8FromPath(const std::filesystem::path &path)
Converts a native format path to a utf8 string.
bool StringStartsWith(const std::string &target, const std::string &prefix)
std::string InferShaderNameFromPath(std::string_view path)
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
std::shared_ptr< const fml::Mapping > data