summaryrefslogtreecommitdiff
path: root/src/Util.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-22 16:01:54 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-22 16:01:54 +0000
commit44beebd257b0fb265bea5387850b9beb33c0adc2 (patch)
tree0ec08e4aad18ccff2d578aca1c0b3799d2716c6c /src/Util.h
parentd027ca8e7c383e9755d6fb997e8a880df99e88b9 (diff)
parent87a229cab18679042beb06076e5dec1dcfadaeae (diff)
Tagging release 0.2.0 of aria2release-0.2.0
Diffstat (limited to 'src/Util.h')
-rw-r--r--src/Util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Util.h b/src/Util.h
index 02f73657..98bb116e 100644
--- a/src/Util.h
+++ b/src/Util.h
@@ -37,7 +37,7 @@ public:
static string llitos(long long int value, bool comma = false);
static string itos(int value, bool comma = false);
/**
- * Computes difference in milli second between tv1 and tv2,
+ * Computes difference in micro-seconds between tv1 and tv2,
* assuming tv1 is newer than tv2.
* If tv1 is older than tv2, then this method returns 0.
*/
@@ -49,6 +49,10 @@ public:
static void slice(vector<string>& result, string src, char delim);
static string trim(string src);
+
+ static bool endsWith(string target, string part);
+
+ static string replace(string target, string oldstr, string newstr);
};
#endif // _D_UTIL_H_