From c6ae3f7abce4b0b26c29fada76a0aed5c226fed7 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 13 Jul 2018 01:21:28 -0400 Subject: Add deno::Basename and deno::BinaryContentAsC utilies. These are prep for code sharing with the asset code soon to land. --- src/file_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/file_util.h') diff --git a/src/file_util.h b/src/file_util.h index 87e39299d..a2abb5f68 100644 --- a/src/file_util.h +++ b/src/file_util.h @@ -6,9 +6,9 @@ #include namespace deno { -bool WriteDataAsCpp(const char* name, const char* filename, - const std::string& data); bool ReadFileToString(const char* fn, std::string* contents); +std::string Basename(std::string const& filename); +std::string BinaryContentAsC(const char* name, const std::string& data); } // namespace deno #endif // FILE_UTIL_H_ -- cgit v1.2.3