// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: strutl.h,v 1.9 1998/11/01 05:27:38 jgg Exp $
+// $Id: strutl.h,v 1.12 1999/02/01 08:11:57 jgg Exp $
/* ######################################################################
String Util - These are some usefull string functions
#ifndef STRUTL_H
#define STRUTL_H
+#ifdef __GNUG__
+#pragma interface "apt-pkg/strutl.h"
+#endif
+
#include <stdlib.h>
#include <string>
#include <vector>
+#include <time.h>
char *_strstrip(char *String);
char *_strtabexpand(char *String,size_t Len);
bool ParseQuoteWord(const char *&String,string &Res);
bool ParseCWord(const char *String,string &Res);
string QuoteString(string Str,const char *Bad);
+string DeQuoteString(string Str);
string SizeToStr(double Bytes);
string TimeToStr(unsigned long Sec);
string SubstVar(string Str,string Subst,string Contents);
string Path;
unsigned int Port;
- inline operator string();
+ operator string();
inline operator =(string From) {CopyFrom(From);};
inline bool empty() {return Access.empty();};