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
ae716b07
Kaydet (Commit)
ae716b07
authored
May 01, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#49208 optimize common case
Change-Id: Ieec379b08cb9096b1c8187c2eda5053f093c612d
üst
ccc47b3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
breakit.cxx
sw/source/core/bastyp/breakit.cxx
+10
-3
No files found.
sw/source/core/bastyp/breakit.cxx
Dosyayı görüntüle @
ae716b07
...
...
@@ -172,9 +172,16 @@ sal_Int32 SwBreakIt::getGraphemeCount(const rtl::OUString& rText, sal_Int32 nSta
sal_Int32
nCurPos
=
nStart
;
while
(
nCurPos
<
nEnd
)
{
sal_Int32
nCount2
=
1
;
nCurPos
=
xBreak
->
nextCharacters
(
rText
,
nCurPos
,
lang
::
Locale
(),
i18n
::
CharacterIteratorMode
::
SKIPCELL
,
nCount2
,
nCount2
);
//fdo#49208 cheat and assume that nothing can combine with a space
//to form a single grapheme
if
(
rText
[
nCurPos
]
==
' '
)
++
nCurPos
;
else
{
sal_Int32
nCount2
=
1
;
nCurPos
=
xBreak
->
nextCharacters
(
rText
,
nCurPos
,
lang
::
Locale
(),
i18n
::
CharacterIteratorMode
::
SKIPCELL
,
nCount2
,
nCount2
);
}
++
nGraphemeCount
;
}
...
...
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