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
76531b80
Kaydet (Commit)
76531b80
authored
May 20, 2014
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
take a shortcut on common separating ASCII characters
Change-Id: I991801b9a0b7be6024612c8f29262f2ebd8e6a64
üst
43624d93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
zforfind.cxx
svl/source/numbers/zforfind.cxx
+17
-3
No files found.
svl/source/numbers/zforfind.cxx
Dosyayı görüntüle @
76531b80
...
@@ -459,14 +459,28 @@ bool ImpSvNumberInputScan::StringContainsWord( const OUString& rWhat,
...
@@ -459,14 +459,28 @@ bool ImpSvNumberInputScan::StringContainsWord( const OUString& rWhat,
* form? */
* form? */
// Check simple ASCII first before invoking i18n or anything else.
// Check simple ASCII first before invoking i18n or anything else.
if
(
rtl
::
isAsciiAlphanumeric
(
rString
[
nPos
]
))
const
sal_Unicode
c
=
rString
[
nPos
];
// Common separating ASCII characters in date context.
switch
(
c
)
{
case
' '
:
case
'-'
:
case
'.'
:
case
'/'
:
return
true
;
default
:
;
// nothing
}
if
(
rtl
::
isAsciiAlphanumeric
(
c
))
return
false
;
// Alpha or numeric is not word gap.
return
false
;
// Alpha or numeric is not word gap.
sal_Int32
nIndex
=
nPos
;
sal_Int32
nIndex
=
nPos
;
const
sal_uInt32
c
=
rString
.
iterateCodePoints
(
&
nIndex
);
const
sal_uInt32
u
c
=
rString
.
iterateCodePoints
(
&
nIndex
);
if
(
nPos
+
1
<
nIndex
)
if
(
nPos
+
1
<
nIndex
)
return
true
;
// Surrogate, assume these to be new words.
return
true
;
// Surrogate, assume these to be new words.
(
void
)
c
;
(
void
)
u
c
;
const
sal_Int32
nType
=
pFormatter
->
GetCharClass
()
->
getCharacterType
(
rString
,
nPos
);
const
sal_Int32
nType
=
pFormatter
->
GetCharClass
()
->
getCharacterType
(
rString
,
nPos
);
using
namespace
::
com
::
sun
::
star
::
i18n
;
using
namespace
::
com
::
sun
::
star
::
i18n
;
...
...
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