From 3f2dc73d5a565121db00f4a0f050a48910b51623 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 4 Apr 2025 13:24:41 +0900 Subject: Replace TRUE/FALSE with boolean values true/false Signed-off-by: Michele Calgaro --- doc/other/Lexer.txt | 4 ++-- doc/other/ScintillaDoc.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/other') diff --git a/doc/other/Lexer.txt b/doc/other/Lexer.txt index 9d4ab50..3752994 100644 --- a/doc/other/Lexer.txt +++ b/doc/other/Lexer.txt @@ -129,7 +129,7 @@ using an encoding such as Shift-JIS. In these encodings, extended Lead bytes are rarely of any lexical significance, normally only being allowed within strings and comments. In such contexts, lexers should -ignore ch if styler.IsLeadByte(ch) returns TRUE. +ignore ch if styler.IsLeadByte(ch) returns true. Note: UTF-8 is simpler than Shift-JIS, so no special handling is applied for it. All UTF-8 extended characters are >= 128 and none are @@ -149,7 +149,7 @@ During initialization, lexers that support folding set bool fold = styler.GetPropertyInt("fold"); -If folding is enabled in the editor, fold will be TRUE and the lexer +If folding is enabled in the editor, fold will be true and the lexer should call: styler.SetLevel(line, level); diff --git a/doc/other/ScintillaDoc.html b/doc/other/ScintillaDoc.html index d82f9fc..77da728 100644 --- a/doc/other/ScintillaDoc.html +++ b/doc/other/ScintillaDoc.html @@ -799,8 +799,8 @@ struct TextToFind { SCI_GETOVERTYPE
When overtype is enabled, each typed character replaces the character to the right of the text caret. When overtype is disabled, characters are inserted at the caret. - SCI_GETOVERTYPE returns TRUE (1) if overtyping is active, otherwise - FALSE (0) will be returned. Use SCI_SETOVERTYPE to set the overtype + SCI_GETOVERTYPE returns true (1) if overtyping is active, otherwise + false (0) will be returned. Use SCI_SETOVERTYPE to set the overtype mode.

Cut, copy and paste

@@ -829,7 +829,7 @@ struct TextToFind { SCI_GETSELECTIONSTART()-SCI_GETSELECTIONEND(), which will be non-zero if you can copy or cut to the clipboard.

-

GTK+ does not really support SCI_CANPASTE and always returns TRUE +

GTK+ does not really support SCI_CANPASTE and always returns true unless the document is read-only.

On X, the clipboard is asynchronous and may require several messages between @@ -2373,7 +2373,7 @@ struct TextToFind { for WM_PALETTECHANGED, WM_QUERYNEWPALETTE and SCI_SETUSEPALETTE. The Windows messages to forward are:
WM_SYSCOLORCHANGE, WM_PALETTECHANGED, - WM_QUERYNEWPALETTE (should return TRUE).

+ WM_QUERYNEWPALETTE (should return true).

To forward a message (WM_XXXX, WPARAM, LPARAM) to Scintilla, you can use SendMessage(hScintilla, WM_XXXX, WPARAM, LPARAM) where hScintilla is -- cgit v1.2.3