diff options
author | Matt Mower <mowerm@gmail.com> | 2016-04-13 02:54:46 +0200 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2016-05-03 19:20:57 +0200 |
commit | 2416a50b5a329a5f2d28b4caa45a965b8d601e96 (patch) | |
tree | 4a6f6a3f0299ed10459af563420e28f23b6ab902 /twrp-functions.hpp | |
parent | Improve greek translation (diff) | |
download | android_bootable_recovery-2416a50b5a329a5f2d28b4caa45a965b8d601e96.tar android_bootable_recovery-2416a50b5a329a5f2d28b4caa45a965b8d601e96.tar.gz android_bootable_recovery-2416a50b5a329a5f2d28b4caa45a965b8d601e96.tar.bz2 android_bootable_recovery-2416a50b5a329a5f2d28b4caa45a965b8d601e96.tar.lz android_bootable_recovery-2416a50b5a329a5f2d28b4caa45a965b8d601e96.tar.xz android_bootable_recovery-2416a50b5a329a5f2d28b4caa45a965b8d601e96.tar.zst android_bootable_recovery-2416a50b5a329a5f2d28b4caa45a965b8d601e96.zip |
Diffstat (limited to '')
-rw-r--r-- | twrp-functions.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/twrp-functions.hpp b/twrp-functions.hpp index 6c33c5eaf..3f9b2ff5a 100644 --- a/twrp-functions.hpp +++ b/twrp-functions.hpp @@ -50,6 +50,7 @@ public: static int Try_Decrypting_File(string fn, string password); // -1 for some error, 0 for failed to decrypt, 1 for decrypted, 3 for decrypted and found gzip format static unsigned long Get_File_Size(const string& Path); // Returns the size of a file static std::string Remove_Trailing_Slashes(const std::string& path, bool leaveLast = false); // Normalizes the path, e.g /data//media/ -> /data/media + static void Strip_Quotes(char* &str); // Remove leading & trailing double-quotes from a string static vector<string> split_string(const string &in, char del, bool skip_empty); static timespec timespec_diff(timespec& start, timespec& end); // Return a diff for 2 times static int32_t timespec_diff_ms(timespec& start, timespec& end); // Returns diff in ms |