Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f8b80701
Kaydet (Commit)
f8b80701
authored
Şub 12, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
these can all be made const
Change-Id: I6a8af82e8612196f20143f4997eb95c80a2ca13d
üst
d8a9c74f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
baside2.hxx
basctl/source/basicide/baside2.hxx
+1
-1
baside2b.cxx
basctl/source/basicide/baside2b.cxx
+1
-1
syntaxhighlight.cxx
comphelper/source/misc/syntaxhighlight.cxx
+12
-12
syntaxhighlight.hxx
include/comphelper/syntaxhighlight.hxx
+1
-1
No files found.
basctl/source/basicide/baside2.hxx
Dosyayı görüntüle @
f8b80701
...
@@ -157,7 +157,7 @@ public:
...
@@ -157,7 +157,7 @@ public:
void
UpdateSyntaxHighlighting
();
void
UpdateSyntaxHighlighting
();
bool
GetProcedureName
(
OUString
&
rLine
,
OUString
&
rProcType
,
OUString
&
rProcName
);
bool
GetProcedureName
(
OUString
&
rLine
,
OUString
&
rProcType
,
OUString
&
rProcName
)
const
;
};
};
...
...
basctl/source/basicide/baside2b.cxx
Dosyayı görüntüle @
f8b80701
...
@@ -789,7 +789,7 @@ void EditorWindow::HandleProcedureCompletion()
...
@@ -789,7 +789,7 @@ void EditorWindow::HandleProcedureCompletion()
}
}
}
}
bool
EditorWindow
::
GetProcedureName
(
OUString
&
rLine
,
OUString
&
rProcType
,
OUString
&
rProcName
)
bool
EditorWindow
::
GetProcedureName
(
OUString
&
rLine
,
OUString
&
rProcType
,
OUString
&
rProcName
)
const
{
{
std
::
vector
<
HighlightPortion
>
aPortions
;
std
::
vector
<
HighlightPortion
>
aPortions
;
aHighlighter
.
getHighlightPortions
(
rLine
,
aPortions
);
aHighlighter
.
getHighlightPortions
(
rLine
,
aPortions
);
...
...
comphelper/source/misc/syntaxhighlight.cxx
Dosyayı görüntüle @
f8b80701
...
@@ -261,11 +261,11 @@ class SyntaxHighlighter::Tokenizer
...
@@ -261,11 +261,11 @@ class SyntaxHighlighter::Tokenizer
sal_uInt16
aCharTypeTab
[
256
];
sal_uInt16
aCharTypeTab
[
256
];
// Auxiliary function: testing of the character flags
// Auxiliary function: testing of the character flags
bool
testCharFlags
(
sal_Unicode
c
,
sal_uInt16
nTestFlags
)
;
bool
testCharFlags
(
sal_Unicode
c
,
sal_uInt16
nTestFlags
)
const
;
// Get new token, EmptyString == nothing more over there
// Get new token, EmptyString == nothing more over there
bool
getNextToken
(
const
sal_Unicode
*&
pos
,
/*out*/
TokenTypes
&
reType
,
bool
getNextToken
(
const
sal_Unicode
*&
pos
,
/*out*/
TokenTypes
&
reType
,
/*out*/
const
sal_Unicode
*&
rpStartPos
,
/*out*/
const
sal_Unicode
*&
rpEndPos
)
;
/*out*/
const
sal_Unicode
*&
rpStartPos
,
/*out*/
const
sal_Unicode
*&
rpEndPos
)
const
;
const
char
**
ppListKeyWords
;
const
char
**
ppListKeyWords
;
sal_uInt16
nKeyWordCount
;
sal_uInt16
nKeyWordCount
;
...
@@ -276,13 +276,13 @@ public:
...
@@ -276,13 +276,13 @@ public:
Tokenizer
(
HighlighterLanguage
aLang
);
Tokenizer
(
HighlighterLanguage
aLang
);
~
Tokenizer
(
void
);
~
Tokenizer
(
void
);
void
getHighlightPortions
(
const
OUString
&
rLine
,
void
getHighlightPortions
(
const
OUString
&
rLine
,
/*out*/
std
::
vector
<
HighlightPortion
>&
portions
)
;
/*out*/
std
::
vector
<
HighlightPortion
>&
portions
)
const
;
void
setKeyWords
(
const
char
**
ppKeyWords
,
sal_uInt16
nCount
);
void
setKeyWords
(
const
char
**
ppKeyWords
,
sal_uInt16
nCount
);
};
};
// Helper function: test character flag
// Helper function: test character flag
bool
SyntaxHighlighter
::
Tokenizer
::
testCharFlags
(
sal_Unicode
c
,
sal_uInt16
nTestFlags
)
bool
SyntaxHighlighter
::
Tokenizer
::
testCharFlags
(
sal_Unicode
c
,
sal_uInt16
nTestFlags
)
const
{
{
bool
bRet
=
false
;
bool
bRet
=
false
;
if
(
c
!=
0
&&
c
<=
255
)
if
(
c
!=
0
&&
c
<=
255
)
...
@@ -303,8 +303,8 @@ void SyntaxHighlighter::Tokenizer::setKeyWords( const char** ppKeyWords, sal_uIn
...
@@ -303,8 +303,8 @@ void SyntaxHighlighter::Tokenizer::setKeyWords( const char** ppKeyWords, sal_uIn
nKeyWordCount
=
nCount
;
nKeyWordCount
=
nCount
;
}
}
bool
SyntaxHighlighter
::
Tokenizer
::
getNextToken
(
const
sal_Unicode
*&
pos
,
/*out*/
TokenTypes
&
reType
,
bool
SyntaxHighlighter
::
Tokenizer
::
getNextToken
(
const
sal_Unicode
*&
pos
,
/*out*/
TokenTypes
&
reType
,
/*out*/
const
sal_Unicode
*&
rpStartPos
,
/*out*/
const
sal_Unicode
*&
rpEndPos
)
/*out*/
const
sal_Unicode
*&
rpStartPos
,
/*out*/
const
sal_Unicode
*&
rpEndPos
)
const
{
{
reType
=
TT_UNKNOWN
;
reType
=
TT_UNKNOWN
;
...
@@ -665,8 +665,8 @@ SyntaxHighlighter::Tokenizer::~Tokenizer( void )
...
@@ -665,8 +665,8 @@ SyntaxHighlighter::Tokenizer::~Tokenizer( void )
{
{
}
}
void
SyntaxHighlighter
::
Tokenizer
::
getHighlightPortions
(
const
OUString
&
rLine
,
void
SyntaxHighlighter
::
Tokenizer
::
getHighlightPortions
(
const
OUString
&
rLine
,
/*out*/
std
::
vector
<
HighlightPortion
>&
portions
)
/*out*/
std
::
vector
<
HighlightPortion
>&
portions
)
const
{
{
// Set the position to the beginning of the source string
// Set the position to the beginning of the source string
const
sal_Unicode
*
pos
=
rLine
.
getStr
();
const
sal_Unicode
*
pos
=
rLine
.
getStr
();
...
@@ -706,8 +706,8 @@ SyntaxHighlighter::SyntaxHighlighter(HighlighterLanguage language):
...
@@ -706,8 +706,8 @@ SyntaxHighlighter::SyntaxHighlighter(HighlighterLanguage language):
SyntaxHighlighter
::~
SyntaxHighlighter
()
{}
SyntaxHighlighter
::~
SyntaxHighlighter
()
{}
void
SyntaxHighlighter
::
getHighlightPortions
(
const
OUString
&
rLine
,
void
SyntaxHighlighter
::
getHighlightPortions
(
const
OUString
&
rLine
,
/*out*/
std
::
vector
<
HighlightPortion
>&
portions
)
/*out*/
std
::
vector
<
HighlightPortion
>&
portions
)
const
{
{
m_tokenizer
->
getHighlightPortions
(
rLine
,
portions
);
m_tokenizer
->
getHighlightPortions
(
rLine
,
portions
);
}
}
...
...
include/comphelper/syntaxhighlight.hxx
Dosyayı görüntüle @
f8b80701
...
@@ -78,7 +78,7 @@ public:
...
@@ -78,7 +78,7 @@ public:
~
SyntaxHighlighter
();
~
SyntaxHighlighter
();
void
getHighlightPortions
(
const
OUString
&
rLine
,
void
getHighlightPortions
(
const
OUString
&
rLine
,
std
::
vector
<
HighlightPortion
>&
pPortions
);
std
::
vector
<
HighlightPortion
>&
pPortions
)
const
;
HighlighterLanguage
GetLanguage
();
HighlighterLanguage
GetLanguage
();
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment