diff options
author | nyamatongwe <unknown> | 2001-04-11 10:13:44 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-04-11 10:13:44 +0000 |
commit | cb2e5c750428414a5236a1fce3dbd4f4e1103221 (patch) | |
tree | 74bee5dcde5203c7d086274fcab79a2961eea0bd /include/PropSet.h | |
parent | 74a54c90af88f66a7d8b1659765e5d79654d4f62 (diff) | |
download | scintilla-mirror-cb2e5c750428414a5236a1fce3dbd4f4e1103221.tar.gz |
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.
Diffstat (limited to 'include/PropSet.h')
-rw-r--r-- | include/PropSet.h | 8 |
1 files changed, 5 insertions, 3 deletions
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); }; |