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
9e1d98fe
Kaydet (Commit)
9e1d98fe
authored
Agu 12, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin: defaultparams
Change-Id: I320eb6149793689c496b14090e8e0243397d01ba
üst
371a535a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
24 deletions
+20
-24
breakiteratorImpl.cxx
i18npool/source/breakiterator/breakiteratorImpl.cxx
+3
-3
breakiterator_cjk.cxx
i18npool/source/breakiterator/breakiterator_cjk.cxx
+1
-1
breakiterator_unicode.cxx
i18npool/source/breakiterator/breakiterator_unicode.cxx
+3
-3
xdictionary.cxx
i18npool/source/breakiterator/xdictionary.cxx
+8
-8
indexentrysupplier_asian.cxx
i18npool/source/indexentry/indexentrysupplier_asian.cxx
+1
-1
acc_pipe.cxx
io/source/acceptor/acc_pipe.cxx
+1
-2
acc_socket.cxx
io/source/acceptor/acc_socket.cxx
+1
-2
ctr_pipe.cxx
io/source/connector/ctr_pipe.cxx
+1
-2
ctr_socket.cxx
io/source/connector/ctr_socket.cxx
+1
-2
No files found.
i18npool/source/breakiterator/breakiteratorImpl.cxx
Dosyayı görüntüle @
9e1d98fe
...
...
@@ -73,13 +73,13 @@ static sal_Int32 skipSpace(const OUString& Text, sal_Int32 nPos, sal_Int32 len,
switch
(
rWordType
)
{
case
WordType
:
:
ANYWORD_IGNOREWHITESPACES
:
if
(
bDirection
)
while
(
nPos
<
len
&&
(
u_isWhitespace
(
ch
=
Text
.
iterateCodePoints
(
&
pos
,
1
))
||
isZWSP
(
ch
)))
nPos
=
pos
;
while
(
nPos
<
len
&&
(
u_isWhitespace
(
ch
=
Text
.
iterateCodePoints
(
&
pos
))
||
isZWSP
(
ch
)))
nPos
=
pos
;
else
while
(
nPos
>
0
&&
(
u_isWhitespace
(
ch
=
Text
.
iterateCodePoints
(
&
pos
,
-
1
))
||
isZWSP
(
ch
)))
nPos
=
pos
;
break
;
case
WordType
:
:
DICTIONARY_WORD
:
if
(
bDirection
)
while
(
nPos
<
len
&&
(
u_isWhitespace
(
ch
=
Text
.
iterateCodePoints
(
&
pos
,
1
))
||
isZWSP
(
ch
)
||
while
(
nPos
<
len
&&
(
u_isWhitespace
(
ch
=
Text
.
iterateCodePoints
(
&
pos
))
||
isZWSP
(
ch
)
||
!
(
ch
==
0x002E
||
u_isalnum
(
ch
))))
nPos
=
pos
;
else
while
(
nPos
>
0
&&
(
u_isWhitespace
(
ch
=
Text
.
iterateCodePoints
(
&
pos
,
-
1
))
||
isZWSP
(
ch
)
||
...
...
@@ -87,7 +87,7 @@ static sal_Int32 skipSpace(const OUString& Text, sal_Int32 nPos, sal_Int32 len,
break
;
case
WordType
:
:
WORD_COUNT
:
if
(
bDirection
)
while
(
nPos
<
len
&&
(
u_isUWhiteSpace
(
ch
=
Text
.
iterateCodePoints
(
&
pos
,
1
))
||
isZWSP
(
ch
)))
nPos
=
pos
;
while
(
nPos
<
len
&&
(
u_isUWhiteSpace
(
ch
=
Text
.
iterateCodePoints
(
&
pos
))
||
isZWSP
(
ch
)))
nPos
=
pos
;
else
while
(
nPos
>
0
&&
(
u_isUWhiteSpace
(
ch
=
Text
.
iterateCodePoints
(
&
pos
,
-
1
))
||
isZWSP
(
ch
)))
nPos
=
pos
;
break
;
...
...
i18npool/source/breakiterator/breakiterator_cjk.cxx
Dosyayı görüntüle @
9e1d98fe
...
...
@@ -96,7 +96,7 @@ LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak(
if
(
bOptions
.
allowPunctuationOutsideMargin
&&
hangingCharacters
.
indexOf
(
Text
[
nStartPos
])
!=
-
1
&&
(
Text
.
iterateCodePoints
(
&
nStartPos
,
1
),
nStartPos
==
Text
.
getLength
()))
{
(
Text
.
iterateCodePoints
(
&
nStartPos
),
nStartPos
==
Text
.
getLength
()))
{
;
// do nothing
}
else
if
(
bOptions
.
applyForbiddenRules
&&
0
<
nStartPos
&&
nStartPos
<
Text
.
getLength
())
{
while
(
nStartPos
>
0
&&
...
...
i18npool/source/breakiterator/breakiterator_unicode.cxx
Dosyayı görüntüle @
9e1d98fe
...
...
@@ -217,7 +217,7 @@ sal_Int32 SAL_CALL BreakIterator_Unicode::nextCharacters( const OUString& Text,
}
}
else
{
// for CHARACTER mode
for
(
nDone
=
0
;
nDone
<
nCount
&&
nStartPos
<
Text
.
getLength
();
nDone
++
)
Text
.
iterateCodePoints
(
&
nStartPos
,
1
);
Text
.
iterateCodePoints
(
&
nStartPos
);
}
return
nStartPos
;
}
...
...
@@ -331,8 +331,8 @@ sal_Int32 SAL_CALL BreakIterator_Unicode::beginOfSentence( const OUString& Text,
nStartPos
=
sentence
.
aBreakIterator
->
preceding
(
nStartPos
);
// skip preceding space.
sal_uInt32
ch
=
Text
.
iterateCodePoints
(
&
nStartPos
,
1
);
while
(
nStartPos
<
len
&&
u_isWhitespace
(
ch
))
ch
=
Text
.
iterateCodePoints
(
&
nStartPos
,
1
);
sal_uInt32
ch
=
Text
.
iterateCodePoints
(
&
nStartPos
);
while
(
nStartPos
<
len
&&
u_isWhitespace
(
ch
))
ch
=
Text
.
iterateCodePoints
(
&
nStartPos
);
Text
.
iterateCodePoints
(
&
nStartPos
,
-
1
);
return
nStartPos
;
...
...
i18npool/source/breakiterator/xdictionary.cxx
Dosyayı görüntüle @
9e1d98fe
...
...
@@ -283,7 +283,7 @@ bool xdictionary::seekSegment(const OUString &rText, sal_Int32 pos,
segBoundary
.
startPos
=
segmentCachedBoundary
.
startPos
;
segBoundary
.
endPos
=
segmentCachedBoundary
.
endPos
;
indexUtf16
=
segmentCachedBoundary
.
startPos
;
rText
.
iterateCodePoints
(
&
indexUtf16
,
1
);
rText
.
iterateCodePoints
(
&
indexUtf16
);
return
segmentCachedBoundary
.
endPos
>
indexUtf16
;
}
}
...
...
@@ -303,7 +303,7 @@ bool xdictionary::seekSegment(const OUString &rText, sal_Int32 pos,
indexUtf16
=
pos
;
while
(
indexUtf16
<
rText
.
getLength
())
{
sal_uInt32
ch
=
rText
.
iterateCodePoints
(
&
indexUtf16
,
1
);
sal_uInt32
ch
=
rText
.
iterateCodePoints
(
&
indexUtf16
);
if
(
u_isWhitespace
(
ch
)
||
exists
(
ch
))
segBoundary
.
endPos
=
indexUtf16
;
else
...
...
@@ -315,7 +315,7 @@ bool xdictionary::seekSegment(const OUString &rText, sal_Int32 pos,
segmentCachedBoundary
.
endPos
=
segBoundary
.
endPos
;
indexUtf16
=
segBoundary
.
startPos
;
rText
.
iterateCodePoints
(
&
indexUtf16
,
1
);
rText
.
iterateCodePoints
(
&
indexUtf16
);
return
segBoundary
.
endPos
>
indexUtf16
;
}
...
...
@@ -419,8 +419,8 @@ Boundary xdictionary::nextWord(const OUString& rText, sal_Int32 anyPos, sal_Int1
const
sal_Int32
nLen
=
rText
.
getLength
();
if
(
anyPos
<
nLen
)
{
// looknig for the first non-whitespace character from anyPos
sal_uInt32
ch
=
rText
.
iterateCodePoints
(
&
anyPos
,
1
);
while
(
u_isWhitespace
(
ch
)
&&
(
anyPos
<
nLen
))
ch
=
rText
.
iterateCodePoints
(
&
anyPos
,
1
);
sal_uInt32
ch
=
rText
.
iterateCodePoints
(
&
anyPos
);
while
(
u_isWhitespace
(
ch
)
&&
(
anyPos
<
nLen
))
ch
=
rText
.
iterateCodePoints
(
&
anyPos
);
if
(
anyPos
>
0
)
rText
.
iterateCodePoints
(
&
anyPos
,
-
1
);
}
...
...
@@ -445,7 +445,7 @@ Boundary xdictionary::getWordBoundary(const OUString& rText, sal_Int32 anyPos, s
if
(
!
bDirection
&&
startPos
>
0
&&
startPos
==
(
anyPos
-
boundary
.
startPos
))
{
sal_Int32
indexUtf16
=
anyPos
-
1
;
sal_uInt32
ch
=
rText
.
iterateCodePoints
(
&
indexUtf16
,
1
);
sal_uInt32
ch
=
rText
.
iterateCodePoints
(
&
indexUtf16
);
if
(
u_isWhitespace
(
ch
))
i
--
;
}
...
...
@@ -456,7 +456,7 @@ Boundary xdictionary::getWordBoundary(const OUString& rText, sal_Int32 anyPos, s
}
else
{
boundary
.
startPos
=
anyPos
;
if
(
anyPos
<
len
)
rText
.
iterateCodePoints
(
&
anyPos
,
1
);
if
(
anyPos
<
len
)
rText
.
iterateCodePoints
(
&
anyPos
);
boundary
.
endPos
=
anyPos
<
len
?
anyPos
:
len
;
}
if
(
wordType
==
WordType
::
WORD_COUNT
)
{
...
...
@@ -464,7 +464,7 @@ Boundary xdictionary::getWordBoundary(const OUString& rText, sal_Int32 anyPos, s
while
(
boundary
.
endPos
<
len
)
{
sal_Int32
indexUtf16
=
boundary
.
endPos
;
if
(
u_ispunct
(
rText
.
iterateCodePoints
(
&
indexUtf16
,
1
)))
if
(
u_ispunct
(
rText
.
iterateCodePoints
(
&
indexUtf16
)))
boundary
.
endPos
=
indexUtf16
;
else
break
;
...
...
i18npool/source/indexentry/indexentrysupplier_asian.cxx
Dosyayı görüntüle @
9e1d98fe
...
...
@@ -182,7 +182,7 @@ IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry,
sal_Int16
max_index
;
sal_uInt16
**
idx
=
func
(
&
max_index
);
for
(
sal_Int32
i
=
0
,
j
=
0
;
i
<
rIndexEntry
.
getLength
();
i
=
j
)
{
sal_uInt32
ch
=
rIndexEntry
.
iterateCodePoints
(
&
j
,
1
);
sal_uInt32
ch
=
rIndexEntry
.
iterateCodePoints
(
&
j
);
if
(((
sal_Int16
)(
ch
>>
8
))
<=
max_index
)
{
sal_uInt16
address
=
idx
[
0
][
ch
>>
8
];
if
(
address
!=
0xFFFF
)
{
...
...
io/source/acceptor/acc_pipe.cxx
Dosyayı görüntüle @
9e1d98fe
...
...
@@ -75,8 +75,7 @@ namespace io_acceptor
m_sDescription
+=
",uniqueValue="
;
m_sDescription
+=
OUString
::
number
(
sal
::
static_int_cast
<
sal_Int64
>
(
reinterpret_cast
<
sal_IntPtr
>
(
&
m_pipe
)),
10
);
reinterpret_cast
<
sal_IntPtr
>
(
&
m_pipe
))
);
}
PipeConnection
::~
PipeConnection
()
...
...
io/source/acceptor/acc_socket.cxx
Dosyayı görüntüle @
9e1d98fe
...
...
@@ -166,8 +166,7 @@ namespace io_acceptor {
m_sDescription
+=
",uniqueValue="
;
m_sDescription
+=
OUString
::
number
(
sal
::
static_int_cast
<
sal_Int64
>
(
reinterpret_cast
<
sal_IntPtr
>
(
&
m_socket
)),
10
);
reinterpret_cast
<
sal_IntPtr
>
(
&
m_socket
))
);
}
SocketConnection
::~
SocketConnection
()
...
...
io/source/connector/ctr_pipe.cxx
Dosyayı görüntüle @
9e1d98fe
...
...
@@ -36,8 +36,7 @@ namespace stoc_connector {
m_sDescription
+=
",uniqueValue="
;
m_sDescription
+=
OUString
::
number
(
sal
::
static_int_cast
<
sal_Int64
>
(
reinterpret_cast
<
sal_IntPtr
>
(
&
m_pipe
)),
10
);
reinterpret_cast
<
sal_IntPtr
>
(
&
m_pipe
))
);
}
PipeConnection
::~
PipeConnection
()
...
...
io/source/connector/ctr_socket.cxx
Dosyayı görüntüle @
9e1d98fe
...
...
@@ -87,8 +87,7 @@ namespace stoc_connector {
m_sDescription
+=
",uniqueValue="
;
m_sDescription
+=
OUString
::
number
(
sal
::
static_int_cast
<
sal_Int64
>
(
reinterpret_cast
<
sal_IntPtr
>
(
&
m_socket
)),
10
);
reinterpret_cast
<
sal_IntPtr
>
(
&
m_socket
))
);
}
SocketConnection
::~
SocketConnection
()
...
...
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