diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-07-13 01:21:28 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-18 15:43:50 -0400 |
commit | c6ae3f7abce4b0b26c29fada76a0aed5c226fed7 (patch) | |
tree | 51903ba084046fa1249a7244e46e7a1fb309499c /src/file_util.h | |
parent | 08606e40a81a02f95125747a472d14a80c22a925 (diff) |
Add deno::Basename and deno::BinaryContentAsC utilies.
These are prep for code sharing with the asset code soon to land.
Diffstat (limited to 'src/file_util.h')
-rw-r--r-- | src/file_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <string> 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_ |