Merge pull request #2217 from ctapmex/colorer-schemes
[far2l.git] / incsrch / loc.h
blobf0f413686c1b68c08c8f942266c02202d30994b8
1 /*
2 FAR manager incremental search plugin, search as you type in editor.
3 Copyright (C) 1999-2019, Stanislav V. Mekhanoshin
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>.
18 #pragma once
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
24 extern char aUpcaseTable[256];
26 extern void SetSubstringPatternL(const TCHAR *sPattern);
27 extern TCHAR *SubStringL(const TCHAR *text, size_t N);
28 extern void SetSubstringPatternR(const TCHAR *sPattern);
29 extern TCHAR *SubStringR(const TCHAR *text, size_t N);
31 extern void InitUpcaseTable(int nTableNum, BOOL bAnsiMode);
32 extern void UpperCase(TCHAR *sDest, const TCHAR *sSrc, size_t nLen);
33 #ifdef __WATCOMC__
34 #pragma aux UpperCase parm[edi][esi][ecx] modify exact[eax ebx ecx edi esi] = \
35 "jecxz Exit" \
36 "dec esi" \
37 "dec edi" \
38 "lea ebx, aUpcaseTable" \
39 "Next: mov al, [esi][ecx]" \
40 "xlat" \
41 "mov [edi][ecx], al" \
42 "loop Next" \
43 "Exit:"
44 #endif
46 #ifdef __cplusplus
48 #endif