From 247a896f4c6e3988d04cf5992cd36a7193647f4b Mon Sep 17 00:00:00 2001 From: rdaneelolivaw Date: Mon, 1 Aug 2005 05:08:46 +0000 Subject: RBR - update description of SCI_GETPROPERTYINT to match reality. --- doc/ScintillaDoc.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 903ec8430..fc1871e65 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -38,7 +38,7 @@

Scintilla Documentation

-

Last edited 27/July/2005 RBR

+

Last edited 31/July/2005 RBR

There is an overview of the internal design of Scintilla.
@@ -4290,7 +4290,7 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ SCI_SETPROPERTY(const char *key, const char *value)
SCI_GETPROPERTY(const char *key, char *value)
SCI_GETPROPERTYEXPANDED(const char *key, char *value)
- SCI_GETPROPERTYINT(const char *key)
+ SCI_GETPROPERTYINT(const char *key, int default)
SCI_SETKEYWORDS(int keyWordSet, const char *keyWordList)
@@ -4372,9 +4372,10 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){

If the value argument is 0 then the length that should be allocated to store the value (including any indicated keyword replacement) is returned; again, the terminating 0 is not included.

-

SCI_GETPROPERTYINT(const char *key)
+

SCI_GETPROPERTYINT(const char *key, int default)
Lookup a keyword:value pair using the specified key; if found, interpret the value as an integer and return it. - If not found (or the value is not a number) then return 0.

+ If not found (or the value is an empty string) then return the supplied default. If the keyword:value pair is found but is not + a number, then return 0.

Note that "keyword replacement" as described in SCI_SETPROPERTY will be performed before any numeric interpretation.

-- cgit v1.2.3