|
|
@@ -387,6 +387,17 @@ string SubstVar(string Str,const struct SubstVar *Vars)
|
|
|
return Str;
|
|
|
}
|
|
|
/*}}}*/
|
|
|
+// OutputInDepth - return a string with separator multiplied with depth /*{{{*/
|
|
|
+// ---------------------------------------------------------------------
|
|
|
+/* Returns a string with the supplied separator depth + 1 times in it */
|
|
|
+std::string OutputInDepth(const unsigned long Depth, const char* Separator)
|
|
|
+{
|
|
|
+ std::string output = "";
|
|
|
+ for(unsigned long d=Depth+1; d > 0; d--)
|
|
|
+ output.append(Separator);
|
|
|
+ return output;
|
|
|
+}
|
|
|
+ /*}}}*/
|
|
|
// URItoFileName - Convert the uri into a unique file name /*{{{*/
|
|
|
// ---------------------------------------------------------------------
|
|
|
/* This converts a URI into a safe filename. It quotes all unsafe characters
|