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
b347e5da
Kaydet (Commit)
b347e5da
authored
Nis 20, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I3f7f71f05db09219f0de3ec14bdb56bd16fb0c8d
üst
07b4791d
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
34 additions
and
34 deletions
+34
-34
breakiteratorImpl.cxx
i18npool/source/breakiterator/breakiteratorImpl.cxx
+9
-9
calendar_gregorian.cxx
i18npool/source/calendar/calendar_gregorian.cxx
+1
-1
cclass_unicode.cxx
i18npool/source/characterclassification/cclass_unicode.cxx
+1
-1
defaultnumberingprovider.cxx
...rce/defaultnumberingprovider/defaultnumberingprovider.cxx
+2
-2
indexentrysupplier.cxx
i18npool/source/indexentry/indexentrysupplier.cxx
+1
-1
indexentrysupplier_common.cxx
i18npool/source/indexentry/indexentrysupplier_common.cxx
+1
-1
inputsequencechecker.cxx
i18npool/source/inputchecker/inputsequencechecker.cxx
+2
-2
inputsequencechecker_hi.cxx
i18npool/source/inputchecker/inputsequencechecker_hi.cxx
+2
-2
inputsequencechecker_th.cxx
i18npool/source/inputchecker/inputsequencechecker_th.cxx
+3
-3
nativenumbersupplier.cxx
i18npool/source/nativenumber/nativenumbersupplier.cxx
+3
-3
numberformatcode.cxx
i18npool/source/numberformatcode/numberformatcode.cxx
+1
-1
textsearch.cxx
i18npool/source/search/textsearch.cxx
+2
-2
textconversion_ko.cxx
i18npool/source/textconversion/textconversion_ko.cxx
+1
-1
textconversion_zh.cxx
i18npool/source/textconversion/textconversion_zh.cxx
+1
-1
textToPronounce_zh.cxx
i18npool/source/transliteration/textToPronounce_zh.cxx
+1
-1
transliterationImpl.cxx
i18npool/source/transliteration/transliterationImpl.cxx
+3
-3
No files found.
i18npool/source/breakiterator/breakiteratorImpl.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -112,7 +112,7 @@ Boundary SAL_CALL BreakIteratorImpl::nextWord( const OUString& Text, sal_Int32 n
if
(
nStartPos
>=
len
)
result
.
startPos
=
result
.
endPos
=
len
;
else
{
result
=
LBI
->
getWordBoundary
(
Text
,
nStartPos
,
rLocale
,
rWordType
,
sal_T
rue
);
result
=
LBI
->
getWordBoundary
(
Text
,
nStartPos
,
rLocale
,
rWordType
,
t
rue
);
// i88041: avoid startPos goes back to nStartPos when switching between Latin and CJK scripts
if
(
result
.
startPos
<
nStartPos
)
result
.
startPos
=
nStartPos
;
}
...
...
@@ -172,9 +172,9 @@ Boundary SAL_CALL BreakIteratorImpl::getWordBoundary( const OUString& Text, sal_
}
else
{
if
(
next
!=
prev
)
{
if
(
next
==
nPos
&&
next
!=
len
)
bDirection
=
sal_T
rue
;
bDirection
=
t
rue
;
else
if
(
prev
==
nPos
&&
prev
!=
0
)
bDirection
=
sal_F
alse
;
bDirection
=
f
alse
;
else
nPos
=
bDirection
?
next
:
prev
;
}
...
...
@@ -189,13 +189,13 @@ sal_Bool SAL_CALL BreakIteratorImpl::isBeginWord( const OUString& Text, sal_Int3
{
sal_Int32
len
=
Text
.
getLength
();
if
(
nPos
<
0
||
nPos
>=
len
)
return
sal_F
alse
;
if
(
nPos
<
0
||
nPos
>=
len
)
return
f
alse
;
sal_Int32
tmp
=
skipSpace
(
Text
,
nPos
,
len
,
rWordType
,
true
);
if
(
tmp
!=
nPos
)
return
sal_F
alse
;
if
(
tmp
!=
nPos
)
return
f
alse
;
result
=
getWordBoundary
(
Text
,
nPos
,
rLocale
,
rWordType
,
sal_T
rue
);
result
=
getWordBoundary
(
Text
,
nPos
,
rLocale
,
rWordType
,
t
rue
);
return
result
.
startPos
==
nPos
;
}
...
...
@@ -205,13 +205,13 @@ sal_Bool SAL_CALL BreakIteratorImpl::isEndWord( const OUString& Text, sal_Int32
{
sal_Int32
len
=
Text
.
getLength
();
if
(
nPos
<=
0
||
nPos
>
len
)
return
sal_F
alse
;
if
(
nPos
<=
0
||
nPos
>
len
)
return
f
alse
;
sal_Int32
tmp
=
skipSpace
(
Text
,
nPos
,
len
,
rWordType
,
false
);
if
(
tmp
!=
nPos
)
return
sal_F
alse
;
if
(
tmp
!=
nPos
)
return
f
alse
;
result
=
getWordBoundary
(
Text
,
nPos
,
rLocale
,
rWordType
,
sal_F
alse
);
result
=
getWordBoundary
(
Text
,
nPos
,
rLocale
,
rWordType
,
f
alse
);
return
result
.
endPos
==
nPos
;
}
...
...
i18npool/source/calendar/calendar_gregorian.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -827,7 +827,7 @@ Calendar_gregorian::isValid() throw(RuntimeException, std::exception)
// compare only with fields that are set and reset fieldSet[]
if
(
tmp
&
(
1
<<
fieldIndex
))
{
if
(
fieldSetValue
[
fieldIndex
]
!=
fieldValue
[
fieldIndex
])
return
sal_F
alse
;
return
f
alse
;
}
}
}
...
...
i18npool/source/characterclassification/cclass_unicode.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -94,7 +94,7 @@ cclass_Unicode::toTitle( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount,
sal_Unicode
*
out
=
pStr
->
buffer
;
Reference
<
BreakIteratorImpl
>
xBrk
(
new
BreakIteratorImpl
(
m_xContext
));
Boundary
bdy
=
xBrk
->
getWordBoundary
(
Text
,
nPos
,
rLocale
,
WordType
::
ANYWORD_IGNOREWHITESPACES
,
sal_T
rue
);
WordType
::
ANYWORD_IGNOREWHITESPACES
,
t
rue
);
for
(
sal_Int32
i
=
nPos
;
i
<
nCount
+
nPos
;
i
++
,
out
++
)
{
if
(
i
>=
bdy
.
endPos
)
bdy
=
xBrk
->
nextWord
(
Text
,
bdy
.
endPos
,
rLocale
,
...
...
i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -1034,8 +1034,8 @@ sal_Bool DefaultNumberingProvider::hasNumberingType( const OUString& rNumberingI
{
for
(
sal_Int16
i
=
0
;
i
<
nSupported_NumberingTypes
;
i
++
)
if
(
rNumberingIdentifier
.
equals
(
makeNumberingIdentifier
(
i
)))
return
sal_T
rue
;
return
sal_F
alse
;
return
t
rue
;
return
f
alse
;
}
OUString
DefaultNumberingProvider
::
getNumberingIdentifier
(
sal_Int16
nNumberingType
)
...
...
i18npool/source/indexentry/indexentrysupplier.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -51,7 +51,7 @@ sal_Bool SAL_CALL IndexEntrySupplier::loadAlgorithm( const Locale& rLocale, cons
return
xIES
->
loadAlgorithm
(
rLocale
,
SortAlgorithm
,
collatorOptions
);
}
}
return
sal_F
alse
;
return
f
alse
;
}
sal_Bool
SAL_CALL
IndexEntrySupplier
::
usePhoneticEntry
(
const
Locale
&
rLocale
)
throw
(
RuntimeException
,
std
::
exception
)
...
...
i18npool/source/indexentry/indexentrysupplier_common.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -67,7 +67,7 @@ sal_Bool SAL_CALL IndexEntrySupplier_Common::loadAlgorithm( const lang::Locale&
collator
->
loadCollatorAlgorithm
(
rAlgorithm
,
rLocale
,
collatorOptions
);
aLocale
=
rLocale
;
aAlgorithm
=
rAlgorithm
;
return
sal_T
rue
;
return
t
rue
;
}
OUString
SAL_CALL
IndexEntrySupplier_Common
::
getIndexKey
(
const
OUString
&
rIndexEntry
,
...
...
i18npool/source/inputchecker/inputsequencechecker.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -54,14 +54,14 @@ InputSequenceCheckerImpl::checkInputSequence(const OUString& Text, sal_Int32 nSt
sal_Unicode
inputChar
,
sal_Int16
inputCheckMode
)
throw
(
RuntimeException
,
std
::
exception
)
{
if
(
inputCheckMode
==
InputSequenceCheckMode
::
PASSTHROUGH
)
return
sal_T
rue
;
return
t
rue
;
sal_Char
*
language
=
getLanguageByScripType
(
Text
[
nStartPos
],
inputChar
);
if
(
language
)
return
getInputSequenceChecker
(
language
)
->
checkInputSequence
(
Text
,
nStartPos
,
inputChar
,
inputCheckMode
);
else
return
sal_T
rue
;
// not a checkable languages.
return
t
rue
;
// not a checkable languages.
}
sal_Int32
SAL_CALL
...
...
i18npool/source/inputchecker/inputsequencechecker_hi.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -100,8 +100,8 @@ static const sal_uInt16 dev_cell_check[14][14] = {
};
sal_Bool
DEV_Composible
[
2
][
2
]
=
{
/* Mode 0 */
{
sal_True
,
sal_T
rue
},
// PASSTHROUGH = 0
/* Mode 1 */
{
sal_False
,
sal_T
rue
}
// STRICT = 1
/* Mode 0 */
{
true
,
t
rue
},
// PASSTHROUGH = 0
/* Mode 1 */
{
false
,
t
rue
}
// STRICT = 1
};
#define getCharType(x) \
...
...
i18npool/source/inputchecker/inputsequencechecker_th.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -57,9 +57,9 @@ sal_Char TAC_celltype_inputcheck[17][17] = {
sal_Bool
TAC_Composible
[
3
][
5
]
=
{
/* 'A', 'C', 'S', 'R', 'X' */
/* Mode 0 */
{
sal_True
,
sal_True
,
sal_True
,
sal_True
,
sal_T
rue
},
// PASSTHROUGH = 0
/* Mode 1 */
{
sal_True
,
sal_True
,
sal_True
,
sal_False
,
sal_T
rue
},
// BASIC = 1
/* Mode 2 */
{
sal_True
,
sal_True
,
sal_False
,
sal_False
,
sal_T
rue
}
// STRICT = 2
/* Mode 0 */
{
true
,
true
,
true
,
true
,
t
rue
},
// PASSTHROUGH = 0
/* Mode 1 */
{
true
,
true
,
true
,
false
,
t
rue
},
// BASIC = 1
/* Mode 2 */
{
true
,
true
,
false
,
false
,
t
rue
}
// STRICT = 2
};
static
bool
SAL_CALL
check
(
sal_Unicode
ch1
,
sal_Unicode
ch2
,
sal_Int16
inputCheckMode
)
...
...
i18npool/source/nativenumber/nativenumbersupplier.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -663,12 +663,12 @@ sal_Bool SAL_CALL NativeNumberSupplierService::isValidNatNum( const Locale& rLoc
switch
(
nNativeNumberMode
)
{
case
NativeNumberMode
:
:
NATNUM0
:
// Ascii
case
NativeNumberMode
:
:
NATNUM3
:
// Char, FullWidth
return
sal_T
rue
;
return
t
rue
;
case
NativeNumberMode
:
:
NATNUM1
:
// Char, Lower
return
(
langnum
>=
0
);
case
NativeNumberMode
:
:
NATNUM2
:
// Char, Upper
if
(
langnum
==
4
)
// Hebrew numbering
return
sal_T
rue
;
return
t
rue
;
case
NativeNumberMode
:
:
NATNUM4
:
// Text, Lower, Long
case
NativeNumberMode
:
:
NATNUM5
:
// Text, Upper, Long
case
NativeNumberMode
:
:
NATNUM6
:
// Text, FullWidth
...
...
@@ -680,7 +680,7 @@ sal_Bool SAL_CALL NativeNumberSupplierService::isValidNatNum( const Locale& rLoc
case
NativeNumberMode
:
:
NATNUM11
:
// Text, Hangul, Short
return
(
langnum
==
3
);
// Korean numbering
}
return
sal_F
alse
;
return
f
alse
;
}
NativeNumberXmlAttributes
SAL_CALL
NativeNumberSupplierService
::
convertToXmlAttributes
(
const
Locale
&
rLocale
,
sal_Int16
nNativeNumberMode
)
throw
(
RuntimeException
,
std
::
exception
)
...
...
i18npool/source/numberformatcode/numberformatcode.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -56,7 +56,7 @@ NumberFormatCodeMapper::getDefault( sal_Int16 formatType, sal_Int16 formatUsage,
aFormatSeq
[
i
].
formatName
,
aFormatSeq
[
i
].
formatKey
,
aFormatSeq
[
i
].
formatIndex
,
sal_T
rue
);
t
rue
);
return
anumberFormatCode
;
}
}
...
...
i18npool/source/search/textsearch.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -1052,7 +1052,7 @@ SearchResult TextSearch::ApproxSrchFrwrd( const OUString& searchStr,
Boundary
aWBnd
=
xBreak
->
getWordBoundary
(
searchStr
,
startPos
,
aSrchPara
.
Locale
,
WordType
::
ANYWORD_IGNOREWHITESPACES
,
sal_T
rue
);
WordType
::
ANYWORD_IGNOREWHITESPACES
,
t
rue
);
do
{
...
...
@@ -1097,7 +1097,7 @@ SearchResult TextSearch::ApproxSrchBkwrd( const OUString& searchStr,
Boundary
aWBnd
=
xBreak
->
getWordBoundary
(
searchStr
,
startPos
,
aSrchPara
.
Locale
,
WordType
::
ANYWORD_IGNOREWHITESPACES
,
sal_T
rue
);
WordType
::
ANYWORD_IGNOREWHITESPACES
,
t
rue
);
do
{
...
...
i18npool/source/textconversion/textconversion_ko.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -352,7 +352,7 @@ sal_Bool SAL_CALL
TextConversion_ko
::
interactiveConversion
(
const
Locale
&
/*rLocale*/
,
sal_Int16
/*nTextConversionType*/
,
sal_Int32
/*nTextConversionOptions*/
)
throw
(
RuntimeException
,
IllegalArgumentException
,
NoSupportException
,
std
::
exception
)
{
return
sal_T
rue
;
return
t
rue
;
}
}
}
}
}
...
...
i18npool/source/textconversion/textconversion_zh.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -329,7 +329,7 @@ sal_Bool SAL_CALL
TextConversion_zh
::
interactiveConversion
(
const
Locale
&
/*rLocale*/
,
sal_Int16
/*nTextConversionType*/
,
sal_Int32
/*nTextConversionOptions*/
)
throw
(
RuntimeException
,
IllegalArgumentException
,
NoSupportException
,
std
::
exception
)
{
return
sal_F
alse
;
return
f
alse
;
}
}
}
}
}
...
...
i18npool/source/transliteration/textToPronounce_zh.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -109,7 +109,7 @@ TextToPronounce_zh::equals( const OUString & str1, sal_Int32 pos1, sal_Int32 nCo
const
sal_Unicode
*
pron2
=
getPronounce
(
*
s2
++
);
if
(
pron1
!=
pron2
)
{
nMatch1
=
nMatch2
=
i
;
return
sal_F
alse
;
return
f
alse
;
}
}
nMatch1
=
nMatch2
=
realCount
;
...
...
i18npool/source/transliteration/transliterationImpl.cxx
Dosyayı görüntüle @
b347e5da
...
...
@@ -479,7 +479,7 @@ TransliterationImpl::equals(
// return number of matched code points so far
nMatch1
=
(
i
<
offset1
.
getLength
())
?
offset1
[
i
]
:
i
;
nMatch2
=
(
i
<
offset2
.
getLength
())
?
offset2
[
i
]
:
i
;
return
sal_F
alse
;
return
f
alse
;
}
}
// i==nLen
...
...
@@ -487,11 +487,11 @@ TransliterationImpl::equals(
// return number of matched code points so far
nMatch1
=
(
i
<=
offset1
.
getLength
())
?
offset1
[
i
-
1
]
+
1
:
i
;
nMatch2
=
(
i
<=
offset2
.
getLength
())
?
offset2
[
i
-
1
]
+
1
:
i
;
return
sal_F
alse
;
return
f
alse
;
}
else
{
nMatch1
=
nCount1
;
nMatch2
=
nCount2
;
return
sal_T
rue
;
return
t
rue
;
}
}
...
...
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