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)