From 6a257c21703e120a6e9d56b876cfb13b51fdf866 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 11 Apr 2001 10:13:44 +0000 Subject: Added SetMultiple and ToString methods. Made argument to single argument Set be const. Added length arguments to several methds so they can be used on buffers without modifying the buffers to include \0 characters. --- include/PropSet.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/PropSet.h') diff --git a/include/PropSet.h b/include/PropSet.h index 61a4f4252..7524d90ba 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -33,15 +33,17 @@ public: PropSet *superPS; PropSet(); ~PropSet(); - void Set(const char *key, const char *val); - void Set(char *keyval); + void Set(const char *key, const char *val, int lenKey=-1, int lenVal=-1); + void Set(const char *keyVal); + void SetMultiple(const char *s); SString Get(const char *key); SString GetExpanded(const char *key); - SString Expand(const char *withvars); + SString Expand(const char *withVars); int GetInt(const char *key, int defaultValue=0); SString GetWild(const char *keybase, const char *filename); SString GetNewExpand(const char *keybase, const char *filename); void Clear(); + char *ToString(); // Caller must delete[] the return value bool GetFirst(char **key, char **val); bool GetNext(char **key, char **val); }; -- cgit v1.2.3