#include <DocSyntax.h>
Definition at line 18 of file DocSyntax.h.
◆ DocSyntax()
| __DCL_BEGIN_NAMESPACE DocSyntax::DocSyntax |
( |
const String & | strLanguageTitle, |
|
|
const String & | strExtensions ) |
Definition at line 18 of file DocSyntax.cpp.
19{
22}
String __strLanguageTitle
StringArray __listFileExtensions
◆ ~DocSyntax()
| DocSyntax::~DocSyntax |
( |
| ) |
|
|
virtual |
Definition at line 24 of file DocSyntax.cpp.
25{
26
27
28
29
30
31
32
33
34}
◆ isCommentChar()
| bool DocSyntax::isCommentChar |
( |
wchar_t | c | ) |
const |
|
inline |
◆ isCommentOff()
| bool DocSyntax::isCommentOff |
( |
const wchar_t * | pch, |
|
|
size_t | nLength ) const |
Definition at line 94 of file DocSyntax.cpp.
95{
99 }
100
101 return false;
102}
◆ isCommentOn()
| bool DocSyntax::isCommentOn |
( |
const wchar_t * | pch, |
|
|
size_t | nLength ) const |
◆ isDelimeter()
| bool DocSyntax::isDelimeter |
( |
wchar_t | c | ) |
const |
|
inline |
◆ isEscapeChar()
| bool DocSyntax::isEscapeChar |
( |
wchar_t | c | ) |
const |
|
inline |
◆ isLineComment()
| bool DocSyntax::isLineComment |
( |
const wchar_t * | pch, |
|
|
size_t | nLength ) const |
◆ isQuotation()
| bool DocSyntax::isQuotation |
( |
wchar_t | c | ) |
const |
|
inline |
◆ isReservedWord()
| bool DocSyntax::isReservedWord |
( |
const wchar_t * | pch, |
|
|
size_t | nLength ) const |
Definition at line 104 of file DocSyntax.cpp.
105{
109 ) {
110 if ((*it).length() == nLength
111 && (*it).compare(pch, nLength) == 0) {
112 return true;
113 }
114 }
115 }
116 else {
119 ) {
120 if ((*it).length() == nLength
121 && (*it).compareNoCase(pch, nLength) == 0
122 ) {
123 return true;
124 }
125 }
126 }
127
128 return false;
129}
StringArray __listReservedWords
◆ isValidExtension()
| bool DocSyntax::isValidExtension |
( |
const wchar_t * | pszFileExt | ) |
const |
Definition at line 67 of file DocSyntax.cpp.
68{
71 ) {
72 if (!((*it).compareNoCase(pszFileExt)))
73 return true;
74 }
75 return false;
76}
◆ isValidLanguage()
| bool DocSyntax::isValidLanguage |
( |
const wchar_t * | pszLanguageTitle | ) |
|
|
inline |
◆ languageTitle()
| const String & DocSyntax::languageTitle |
( |
| ) |
const |
|
inline |
◆ load()
| bool DocSyntax::load |
( |
const wchar_t * | pszFileName | ) |
|
Definition at line 36 of file DocSyntax.cpp.
37{
38 try {
39 IniFile file(pszFileName);
40
48 if (!strTemp.compareNoCase(L"true"))
50 else
52
56
57 file.close();
58 }
59 catch (Exception* _e) {
62 return false;
63 }
64 return true;
65}
#define __DCL_TRACE1(fmt, arg1)
String toStringAll() const
◆ tabWidth()
| int DocSyntax::tabWidth |
( |
| ) |
const |
|
inline |
◆ DocParser
◆ __bCaseSensitive
| bool DocSyntax::__bCaseSensitive |
|
protected |
◆ __listFileExtensions
| StringArray DocSyntax::__listFileExtensions |
|
protected |
◆ __listReservedWords
| StringArray DocSyntax::__listReservedWords |
|
protected |
◆ __nTabWidth
| int DocSyntax::__nTabWidth |
|
protected |
◆ __strCommentOff
| String DocSyntax::__strCommentOff |
|
protected |
◆ __strCommentOn
| String DocSyntax::__strCommentOn |
|
protected |
◆ __strDelimeters
| String DocSyntax::__strDelimeters |
|
protected |
◆ __strEscapeChars
| String DocSyntax::__strEscapeChars |
|
protected |
◆ __strLanguageTitle
| String DocSyntax::__strLanguageTitle |
|
protected |
◆ __strLineComment
| String DocSyntax::__strLineComment |
|
protected |
◆ __strQuotations
| String DocSyntax::__strQuotations |
|
protected |
The documentation for this class was generated from the following files: