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
4c24f23d
Kaydet (Commit)
4c24f23d
authored
Tem 10, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: [Byte|UniString]::SearchCharBackward unused
üst
583166b5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
93 deletions
+0
-93
impstrg.hxx
tools/inc/impstrg.hxx
+0
-6
string.hxx
tools/inc/tools/string.hxx
+0
-2
strcvt.cxx
tools/source/string/strcvt.cxx
+0
-55
strimp.cxx
tools/source/string/strimp.cxx
+0
-30
No files found.
tools/inc/impstrg.hxx
Dosyayı görüntüle @
4c24f23d
...
...
@@ -46,12 +46,6 @@ const char* DbgCheckUniString( const void* pString );
xub_StrLen
ImplStringLen
(
const
sal_Char
*
pStr
);
xub_StrLen
ImplStringLen
(
const
sal_Unicode
*
pStr
);
// ------------------------------------
// - Zugriff fuer International class -
// ------------------------------------
sal_Unicode
*
ImplGet1ByteUnicodeTab
(
rtl_TextEncoding
eTextEncoding
);
#endif // _IMPSTRG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
tools/inc/tools/string.hxx
Dosyayı görüntüle @
4c24f23d
...
...
@@ -315,7 +315,6 @@ public:
xub_StrLen
Search
(
const
sal_Char
*
pCharStr
,
xub_StrLen
nIndex
=
0
)
const
;
xub_StrLen
SearchBackward
(
sal_Char
c
,
xub_StrLen
nIndex
=
STRING_LEN
)
const
;
xub_StrLen
SearchChar
(
const
sal_Char
*
pChars
,
xub_StrLen
nIndex
=
0
)
const
;
xub_StrLen
SearchCharBackward
(
const
sal_Char
*
pChars
,
xub_StrLen
nIndex
=
STRING_LEN
)
const
;
xub_StrLen
SearchAndReplace
(
sal_Char
c
,
sal_Char
cRep
,
xub_StrLen
nIndex
=
0
);
xub_StrLen
SearchAndReplace
(
const
ByteString
&
rStr
,
const
ByteString
&
rRepStr
,
...
...
@@ -608,7 +607,6 @@ public:
xub_StrLen
SearchAscii
(
const
sal_Char
*
pAsciiStr
,
xub_StrLen
nIndex
=
0
)
const
;
xub_StrLen
SearchBackward
(
sal_Unicode
c
,
xub_StrLen
nIndex
=
STRING_LEN
)
const
;
xub_StrLen
SearchChar
(
const
sal_Unicode
*
pChars
,
xub_StrLen
nIndex
=
0
)
const
;
xub_StrLen
SearchCharBackward
(
const
sal_Unicode
*
pChars
,
xub_StrLen
nIndex
=
STRING_LEN
)
const
;
xub_StrLen
SearchAndReplace
(
sal_Unicode
c
,
sal_Unicode
cRep
,
xub_StrLen
nIndex
=
0
);
...
...
tools/source/string/strcvt.cxx
Dosyayı görüntüle @
4c24f23d
...
...
@@ -169,61 +169,6 @@ struct Impl1ByteConvertTabData
Impl1ByteConvertTabData
*
mpNext
;
};
// =======================================================================
sal_Unicode
*
ImplGet1ByteUnicodeTab
(
rtl_TextEncoding
eTextEncoding
)
{
#ifndef BOOTSTRAP
TOOLSINDATA
*
pToolsData
=
ImplGetToolsInData
();
#else
TOOLSINDATA
*
pToolsData
=
0x0
;
#endif
Impl1ByteUnicodeTabData
*
pTab
=
pToolsData
->
mpFirstUniTabData
;
while
(
pTab
)
{
if
(
pTab
->
meTextEncoding
==
eTextEncoding
)
return
pTab
->
maUniTab
;
pTab
=
pTab
->
mpNext
;
}
// get TextEncodingInfo
rtl_TextEncodingInfo
aTextEncInfo
;
aTextEncInfo
.
StructSize
=
sizeof
(
aTextEncInfo
);
rtl_getTextEncodingInfo
(
eTextEncoding
,
&
aTextEncInfo
);
if
(
aTextEncInfo
.
MaximumCharSize
==
1
)
{
pTab
=
new
Impl1ByteUnicodeTabData
;
pTab
->
meTextEncoding
=
eTextEncoding
;
pTab
->
mpNext
=
pToolsData
->
mpFirstUniTabData
;
rtl_TextToUnicodeConverter
hConverter
;
sal_uInt32
nInfo
;
sal_Size
nSrcBytes
;
sal_Size
nDestChars
;
hConverter
=
rtl_createTextToUnicodeConverter
(
eTextEncoding
);
nDestChars
=
rtl_convertTextToUnicode
(
hConverter
,
0
,
(
const
sal_Char
*
)
aImplByteTab
,
256
,
pTab
->
maUniTab
,
256
,
RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MAPTOPRIVATE
|
RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_DEFAULT
|
RTL_TEXTTOUNICODE_FLAGS_INVALID_DEFAULT
,
&
nInfo
,
&
nSrcBytes
);
rtl_destroyTextToUnicodeConverter
(
hConverter
);
if
(
(
nSrcBytes
!=
256
)
||
(
nDestChars
!=
256
)
)
delete
pTab
;
else
{
pToolsData
->
mpFirstUniTabData
=
pTab
;
return
pTab
->
maUniTab
;
}
}
return
NULL
;
}
// -----------------------------------------------------------------------
static
sal_uChar
*
ImplGet1ByteConvertTab
(
rtl_TextEncoding
eSrcTextEncoding
,
...
...
tools/source/string/strimp.cxx
Dosyayı görüntüle @
4c24f23d
...
...
@@ -1668,36 +1668,6 @@ xub_StrLen STRING::SearchChar( const STRCODE* pChars, xub_StrLen nIndex ) const
// -----------------------------------------------------------------------
xub_StrLen
STRING
::
SearchCharBackward
(
const
STRCODE
*
pChars
,
xub_StrLen
nIndex
)
const
{
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
if
(
nIndex
>
mpData
->
mnLen
)
nIndex
=
(
xub_StrLen
)
mpData
->
mnLen
;
const
STRCODE
*
pStr
=
mpData
->
maStr
;
pStr
+=
nIndex
;
while
(
nIndex
)
{
nIndex
--
;
pStr
--
;
STRCODE
c
=*
pStr
;
const
STRCODE
*
pCompStr
=
pChars
;
while
(
*
pCompStr
)
{
if
(
*
pCompStr
==
c
)
return
nIndex
;
++
pCompStr
;
}
}
return
STRING_NOTFOUND
;
}
// -----------------------------------------------------------------------
xub_StrLen
STRING
::
SearchAndReplace
(
STRCODE
c
,
STRCODE
cRep
,
xub_StrLen
nIndex
)
{
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
...
...
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