forked from apex-hughin/CrimsonEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Utility.h
31 lines (20 loc) · 953 Bytes
/
Utility.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __UTILITY_H_
#define __UTILITY_H_
#include "RegExp.h"
// invert case, capitalize
void MakeInvertCase( CString & rString );
void MakeCapitalize( CString & rString );
// find string
INT ForwardFindString(LPCTSTR lpszString, LPCTSTR lpszSubString, INT nFrom, BOOL bWholeWord, BOOL bMatchCase);
INT ReverseFindString(LPCTSTR lpszString, LPCTSTR lpszSubString, INT nFrom, BOOL bWholeWord, BOOL bMatchCase);
// regular expression
INT ForwardFindStringRegExp(LPCTSTR lpszString, LPCTSTR lpszRegExp, CRegExp & clsRegExp, INT nFrom, BOOL bWholeWord, BOOL bMatchCase);
INT ReverseFindStringRegExp(LPCTSTR lpszString, LPCTSTR lpszRegExp, CRegExp & clsRegExp, INT nFrom, BOOL bWholeWord, BOOL bMatchCase);
// system environment
CString GetMsDosShellPath();
CString GetDefaultBrowserPath();
// goto url
HINSTANCE GotoURL(LPCTSTR URL, INT nCmdShow);
// get sub menu
CMenu * GetSubMenuByText(CMenu * pMenu, LPCTSTR lpszText);
#endif // __UTILITY_H_