summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2016-04-13 02:54:46 +0200
committerDees Troy <dees_troy@teamw.in>2016-05-03 19:20:57 +0200
commit2416a50b5a329a5f2d28b4caa45a965b8d601e96 (patch)
tree4a6f6a3f0299ed10459af563420e28f23b6ab902 /twrp-functions.cpp
parentImprove greek translation (diff)
downloadandroid_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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 8d85ccf04..1c633e7e4 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -305,6 +305,13 @@ std::string TWFunc::Remove_Trailing_Slashes(const std::string& path, bool leaveL
return res;
}
+void TWFunc::Strip_Quotes(char* &str) {
+ if (strlen(str) > 0 && str[0] == '\"')
+ str++;
+ if (strlen(str) > 0 && str[strlen(str)-1] == '\"')
+ str[strlen(str)-1] = 0;
+}
+
vector<string> TWFunc::split_string(const string &in, char del, bool skip_empty) {
vector<string> res;