From 295013083c4e9454656c0e94ab977057ee55ea11 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 25 Mar 2010 12:10:59 +0000 Subject: New case insensitive searching implementation uses objects implementing the CaseFolder interface to fold both search text and document text so they can be compared with a simple strcmp. A simple table based folder CaseFolderTable is used for 8 bit encodings and maps input bytes to folded bytes. For multi-byte encodings except for UTF-8 a null (output same as input) CaseFolderTable is used. For UTF-8, more complex subclasses are used which call platform APIs to perform the folding. Folding is approximately to lower case although this differs between platforms. --- src/Editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 053b10a9e..180db571a 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -424,6 +424,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void Indent(bool forwards); + virtual CaseFolder *CaseFolderForEncoding(); long FindText(uptr_t wParam, sptr_t lParam); void SearchAnchor(); long SearchText(unsigned int iMessage, uptr_t wParam, sptr_t lParam); -- cgit v1.2.3