summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/strutl.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:27 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:27 +0000
commit6e52073fac7be205251b222f63cf2f61d1519364 (patch)
treed406a1676155eb0b1ff985701f45b7af9175ee6d /apt-pkg/contrib/strutl.h
parentdb0c350f8f028b0afa153fe91106e6ef03a34aa0 (diff)
A few functions migrated around
Author: jgg Date: 1999-08-02 03:07:47 GMT A few functions migrated around
Diffstat (limited to 'apt-pkg/contrib/strutl.h')
-rw-r--r--apt-pkg/contrib/strutl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/contrib/strutl.h b/apt-pkg/contrib/strutl.h
index 6ba1f9ebe..14293ae05 100644
--- a/apt-pkg/contrib/strutl.h
+++ b/apt-pkg/contrib/strutl.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: strutl.h,v 1.14 1999/07/26 17:46:08 jgg Exp $
+// $Id: strutl.h,v 1.15 1999/08/02 03:07:48 jgg Exp $
/* ######################################################################
String Util - These are some usefull string functions
@@ -42,6 +42,8 @@ string LookupTag(string Message,const char *Tag,const char *Default = 0);
int StringToBool(string Text,int Default = -1);
bool ReadMessages(int Fd, vector<string> &List);
bool StrToNum(const char *Str,unsigned long &Res,unsigned Len,unsigned Base = 0);
+bool Hex2Num(const char *Start,const char *End,unsigned char *Num,
+ unsigned int Length);
int stringcmp(const char *A,const char *AEnd,const char *B,const char *BEnd);
inline int stringcmp(const char *A,const char *AEnd,const char *B) {return stringcmp(A,AEnd,B,B+strlen(B));};