19void FindAndReplaceInPlace(std::string& str,
20 const std::string& findStr,
21 const std::string& replaceStr) {
23 while ((
pos = str.find(findStr,
pos)) != std::string::npos) {
24 str.replace(
pos, findStr.
length(), replaceStr);
36std::string FileLoader::SanitizePath(
const std::string& url) {
37 std::string sanitized = url;
39 return SanitizeURIEscapedCharacters(sanitized);
42bool FileLoader::ReadFileToString(
const std::string&
path,
48std::pair<uint8_t*, intptr_t> FileLoader::ReadFileToBytes(
49 const std::string&
path) {
static const char kFileURLPrefix[]
static const size_t kFileURLPrefixLength
static const std::string kPathSeparator
bool ReadFileToString(const std::string &path, std::string *result)
std::pair< uint8_t *, intptr_t > ReadFileToBytes(const std::string &path)
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