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
40be618f
Kaydet (Commit)
40be618f
authored
Ara 05, 2011
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refactor scanAlphanumeric
üst
f81a7438
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
scanner.cxx
basic/source/comp/scanner.cxx
+13
-4
scanner.hxx
basic/source/inc/scanner.hxx
+1
-0
No files found.
basic/source/comp/scanner.cxx
Dosyayı görüntüle @
40be618f
...
...
@@ -150,6 +150,17 @@ static SbxDataType GetSuffixType( sal_Unicode c )
// return value is sal_False at EOF or errors
#define BUF_SIZE 80
void
SbiScanner
::
scanAlphanumeric
()
{
sal_uInt16
n
=
nCol
;
while
(
theBasicCharClass
::
get
().
isAlphaNumeric
(
*
pLine
,
bCompatible
)
||
*
pLine
==
'_'
)
{
pLine
++
;
nCol
++
;
}
aSym
=
aLine
.
copy
(
n
,
nCol
-
n
);
}
void
SbiScanner
::
scanGoto
()
{
sal_uInt16
nTestCol
=
nCol
;
...
...
@@ -240,10 +251,8 @@ bool SbiScanner::NextSym()
{
pLine
++
;
goto
eoln
;
}
bSymbol
=
true
;
sal_uInt16
n
=
nCol
;
for
(
;
(
theBasicCharClass
::
get
().
isAlphaNumeric
(
*
pLine
,
bCompatible
)
||
(
*
pLine
==
'_'
)
);
pLine
++
)
nCol
++
;
aSym
=
aLine
.
copy
(
n
,
nCol
-
n
);
scanAlphanumeric
();
// Special handling for "go to"
if
(
bCompatible
&&
*
pLine
&&
aSym
.
equalsIgnoreAsciiCaseAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"go"
)
)
)
...
...
basic/source/inc/scanner.hxx
Dosyayı görüntüle @
40be618f
...
...
@@ -46,6 +46,7 @@ class SbiScanner
const
sal_Unicode
*
pLine
;
const
sal_Unicode
*
pSaveLine
;
void
scanAlphanumeric
();
void
scanGoto
();
protected
:
::
rtl
::
OUString
aSym
;
...
...
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