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
3052cf36
Kaydet (Commit)
3052cf36
authored
Eyl 28, 2001
tarafından
jp
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #85610#: new method GetAllScriptsOfText
üst
0bcd5a0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
4 deletions
+36
-4
breakit.hxx
sw/inc/breakit.hxx
+3
-2
breakit.cxx
sw/source/core/bastyp/breakit.cxx
+33
-2
No files found.
sw/inc/breakit.hxx
Dosyayı görüntüle @
3052cf36
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: breakit.hxx,v $
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
* last change: $Author: jp $ $Date: 2001-09-2
4 15:05:35
$
* last change: $Author: jp $ $Date: 2001-09-2
8 16:54:37
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -116,6 +116,7 @@ public:
}
USHORT
GetRealScriptOfText
(
const
String
&
rTxt
,
xub_StrLen
nPos
)
const
;
USHORT
GetAllScriptsOfText
(
const
String
&
rTxt
)
const
;
};
extern
SwBreakIt
*
pBreakIt
;
...
...
sw/source/core/bastyp/breakit.cxx
Dosyayı görüntüle @
3052cf36
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: breakit.cxx,v $
*
* $Revision: 1.
8
$
* $Revision: 1.
9
$
*
* last change: $Author: jp $ $Date: 2001-09-2
4 15:05:13
$
* last change: $Author: jp $ $Date: 2001-09-2
8 16:56:26
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -149,3 +149,34 @@ USHORT SwBreakIt::GetRealScriptOfText( const String& rTxt,
nScript
=
GetScriptTypeOfLanguage
(
GetAppLanguage
()
);
return
nScript
;
}
USHORT
SwBreakIt
::
GetAllScriptsOfText
(
const
String
&
rTxt
)
const
{
const
USHORT
coAllScripts
=
(
SCRIPTTYPE_LATIN
|
SCRIPTTYPE_ASIAN
|
SCRIPTTYPE_COMPLEX
);
USHORT
nRet
=
0
,
nScript
;
if
(
!
xBreak
.
is
()
)
nRet
=
coAllScripts
;
else
if
(
rTxt
.
Len
()
)
{
for
(
xub_StrLen
n
=
0
,
nEnd
=
rTxt
.
Len
();
n
<
nEnd
;
n
=
xBreak
->
endOfScript
(
rTxt
,
n
,
nScript
)
)
{
switch
(
nScript
=
xBreak
->
getScriptType
(
rTxt
,
n
)
)
{
case
ScriptType
:
:
LATIN
:
nRet
|=
SCRIPTTYPE_LATIN
;
break
;
case
ScriptType
:
:
ASIAN
:
nRet
|=
SCRIPTTYPE_ASIAN
;
break
;
case
ScriptType
:
:
COMPLEX
:
nRet
|=
SCRIPTTYPE_COMPLEX
;
break
;
case
ScriptType
:
:
WEAK
:
if
(
!
nRet
)
nRet
|=
coAllScripts
;
break
;
}
if
(
coAllScripts
==
nRet
)
break
;
}
}
return
nRet
;
}
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