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
736b3970
Kaydet (Commit)
736b3970
authored
Şub 18, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i18nutil: sal_Bool -> bool
Change-Id: Ic4a198d737692734ae3fbc096f370a3aa0667c5b
üst
8bcb8b18
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
19 deletions
+19
-19
casefolding.cxx
i18nutil/source/utility/casefolding.cxx
+1
-1
unicode.cxx
i18nutil/source/utility/unicode.cxx
+2
-2
widthfolding.cxx
i18nutil/source/utility/widthfolding.cxx
+5
-5
unicode.hxx
include/i18nutil/unicode.hxx
+9
-9
widthfolding.hxx
include/i18nutil/widthfolding.hxx
+2
-2
No files found.
i18nutil/source/utility/casefolding.cxx
Dosyayı görüntüle @
736b3970
...
...
@@ -108,7 +108,7 @@ Mapping& casefolding::getValue(const sal_Unicode* str, sal_Int32 pos, sal_Int32
return
dummy
;
}
inline
sal_B
ool
SAL_CALL
inline
b
ool
SAL_CALL
is_ja_voice_sound_mark
(
sal_Unicode
&
current
,
sal_Unicode
next
)
{
sal_Unicode
c
=
0
;
...
...
i18nutil/source/utility/unicode.cxx
Dosyayı görüntüle @
736b3970
...
...
@@ -378,7 +378,7 @@ unicode::getUnicodeDirection( const sal_Unicode ch ) {
bit(UnicodeType::PARAGRAPH_SEPARATOR)
#define IsType(func, mask) \
sal_B
ool SAL_CALL func( const sal_Unicode ch) {\
b
ool SAL_CALL func( const sal_Unicode ch) {\
return (bit(getUnicodeType(ch)) & (mask)) != 0;\
}
...
...
@@ -389,7 +389,7 @@ IsType(unicode::isSpace, SPACEMASK)
#define CONTROLSPACE bit(0x09)|bit(0x0a)|bit(0x0b)|bit(0x0c)|bit(0x0d)|\
bit(0x1c)|bit(0x1d)|bit(0x1e)|bit(0x1f)
sal_B
ool
SAL_CALL
unicode
::
isWhiteSpace
(
const
sal_Unicode
ch
)
{
b
ool
SAL_CALL
unicode
::
isWhiteSpace
(
const
sal_Unicode
ch
)
{
return
(
ch
!=
0xa0
&&
isSpace
(
ch
))
||
(
ch
<=
0x1F
&&
(
bit
(
ch
)
&
(
CONTROLSPACE
)));
}
...
...
i18nutil/source/utility/widthfolding.cxx
Dosyayı görüntüle @
736b3970
...
...
@@ -41,7 +41,7 @@ sal_Unicode widthfolding::decompose_ja_voiced_sound_marksChar2Char (sal_Unicode
/**
* Decompose Japanese specific voiced and semi-voiced sound marks.
*/
OUString
widthfolding
::
decompose_ja_voiced_sound_marks
(
const
OUString
&
inStr
,
sal_Int32
startPos
,
sal_Int32
nCount
,
Sequence
<
sal_Int32
>&
offset
,
sal_B
ool
useOffset
)
OUString
widthfolding
::
decompose_ja_voiced_sound_marks
(
const
OUString
&
inStr
,
sal_Int32
startPos
,
sal_Int32
nCount
,
Sequence
<
sal_Int32
>&
offset
,
b
ool
useOffset
)
{
// Create a string buffer which can hold nCount * 2 + 1 characters.
// Its size may become double of nCount.
...
...
@@ -103,7 +103,7 @@ oneToOneMapping& widthfolding::getfull2halfTable(void)
/**
* Compose Japanese specific voiced and semi-voiced sound marks.
*/
OUString
widthfolding
::
compose_ja_voiced_sound_marks
(
const
OUString
&
inStr
,
sal_Int32
startPos
,
sal_Int32
nCount
,
Sequence
<
sal_Int32
>&
offset
,
sal_B
ool
useOffset
,
sal_Int32
nFlags
)
OUString
widthfolding
::
compose_ja_voiced_sound_marks
(
const
OUString
&
inStr
,
sal_Int32
startPos
,
sal_Int32
nCount
,
Sequence
<
sal_Int32
>&
offset
,
b
ool
useOffset
,
sal_Int32
nFlags
)
{
// Create a string buffer which can hold nCount + 1 characters.
// Its size may become equal to nCount or smaller.
...
...
@@ -157,14 +157,14 @@ OUString widthfolding::compose_ja_voiced_sound_marks (const OUString& inStr, sal
// 0 addresses a code point regarding 0x3099 or 0x309b (voiced sound mark),
// 1 is 0x309a or 0x309c (semi-voiced sound mark)
int
i
=
int
(
previousChar
-
0x3040
);
// i acts as an index of array
sal_Bool
bCompose
=
sal_F
alse
;
bool
bCompose
=
f
alse
;
if
(
0
<=
i
&&
i
<=
(
0x30ff
-
0x3040
)
&&
composition_table
[
i
][
j
])
bCompose
=
sal_T
rue
;
bCompose
=
t
rue
;
// not to use combined KATAKANA LETTER VU
if
(
previousChar
==
0x30a6
&&
(
nFlags
&
WIDTHFOLDNIG_DONT_USE_COMBINED_VU
)
)
bCompose
=
sal_F
alse
;
bCompose
=
f
alse
;
if
(
bCompose
){
if
(
useOffset
)
{
...
...
include/i18nutil/unicode.hxx
Dosyayı görüntüle @
736b3970
...
...
@@ -41,15 +41,15 @@ public:
static
sal_Unicode
SAL_CALL
getUnicodeScriptStart
(
com
::
sun
::
star
::
i18n
::
UnicodeScript
type
);
static
sal_Unicode
SAL_CALL
getUnicodeScriptEnd
(
com
::
sun
::
star
::
i18n
::
UnicodeScript
type
);
static
sal_uInt8
SAL_CALL
getUnicodeDirection
(
const
sal_Unicode
ch
);
static
sal_B
ool
SAL_CALL
isUpper
(
const
sal_Unicode
ch
);
static
sal_B
ool
SAL_CALL
isLower
(
const
sal_Unicode
ch
);
static
sal_B
ool
SAL_CALL
isDigit
(
const
sal_Unicode
ch
);
static
sal_B
ool
SAL_CALL
isControl
(
const
sal_Unicode
ch
);
static
sal_B
ool
SAL_CALL
isPrint
(
const
sal_Unicode
ch
);
static
sal_B
ool
SAL_CALL
isAlpha
(
const
sal_Unicode
ch
);
static
sal_B
ool
SAL_CALL
isSpace
(
const
sal_Unicode
ch
);
static
sal_B
ool
SAL_CALL
isWhiteSpace
(
const
sal_Unicode
ch
);
static
sal_B
ool
SAL_CALL
isAlphaDigit
(
const
sal_Unicode
ch
);
static
b
ool
SAL_CALL
isUpper
(
const
sal_Unicode
ch
);
static
b
ool
SAL_CALL
isLower
(
const
sal_Unicode
ch
);
static
b
ool
SAL_CALL
isDigit
(
const
sal_Unicode
ch
);
static
b
ool
SAL_CALL
isControl
(
const
sal_Unicode
ch
);
static
b
ool
SAL_CALL
isPrint
(
const
sal_Unicode
ch
);
static
b
ool
SAL_CALL
isAlpha
(
const
sal_Unicode
ch
);
static
b
ool
SAL_CALL
isSpace
(
const
sal_Unicode
ch
);
static
b
ool
SAL_CALL
isWhiteSpace
(
const
sal_Unicode
ch
);
static
b
ool
SAL_CALL
isAlphaDigit
(
const
sal_Unicode
ch
);
//Map an ISO 15924 script code to Latin/Asian/Complex/Weak
static
sal_Int16
SAL_CALL
getScriptClassFromUScriptCode
(
UScriptCode
eScript
);
...
...
include/i18nutil/widthfolding.hxx
Dosyayı görüntüle @
736b3970
...
...
@@ -40,9 +40,9 @@ public:
static
oneToOneMapping
&
getfullKana2halfKanaTable
();
static
oneToOneMapping
&
gethalfKana2fullKanaTable
();
static
OUString
decompose_ja_voiced_sound_marks
(
const
OUString
&
inStr
,
sal_Int32
startPos
,
sal_Int32
nCount
,
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>&
offset
,
sal_B
ool
useOffset
);
static
OUString
decompose_ja_voiced_sound_marks
(
const
OUString
&
inStr
,
sal_Int32
startPos
,
sal_Int32
nCount
,
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>&
offset
,
b
ool
useOffset
);
static
sal_Unicode
decompose_ja_voiced_sound_marksChar2Char
(
sal_Unicode
inChar
);
static
OUString
compose_ja_voiced_sound_marks
(
const
OUString
&
inStr
,
sal_Int32
startPos
,
sal_Int32
nCount
,
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>&
offset
,
sal_B
ool
useOffset
,
sal_Int32
nFlags
=
0
);
static
OUString
compose_ja_voiced_sound_marks
(
const
OUString
&
inStr
,
sal_Int32
startPos
,
sal_Int32
nCount
,
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>&
offset
,
b
ool
useOffset
,
sal_Int32
nFlags
=
0
);
static
sal_Unicode
getCompositionChar
(
sal_Unicode
c1
,
sal_Unicode
c2
);
};
...
...
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