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
9be876cd
Kaydet (Commit)
9be876cd
authored
Eki 20, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#38838 remove non OUString ::Append
Change-Id: I084ce5c4833964018849617632a1308dc74adda3
üst
09809487
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
39 deletions
+2
-39
string.hxx
include/tools/string.hxx
+2
-16
strimp.cxx
tools/source/string/strimp.cxx
+0
-11
tustring.cxx
tools/source/string/tustring.cxx
+0
-12
No files found.
include/tools/string.hxx
Dosyayı görüntüle @
9be876cd
...
@@ -106,11 +106,11 @@ private:
...
@@ -106,11 +106,11 @@ private:
StringCompare
CompareTo
(
const
UniString
&
rStr
,
StringCompare
CompareTo
(
const
UniString
&
rStr
,
xub_StrLen
nLen
=
STRING_LEN
)
const
;
xub_StrLen
nLen
=
STRING_LEN
)
const
;
UniString
&
Assign
(
const
OUString
&
rStr
);
UniString
(
const
int
*
pDummy
);
// not implemented: to prevent UniString( NULL )
UniString
(
const
int
*
pDummy
);
// not implemented: to prevent UniString( NULL )
UniString
(
int
);
// not implemented; to detect misuses of
UniString
(
int
);
// not implemented; to detect misuses of
// UniString(sal_Unicode)
// UniString(sal_Unicode)
void
Assign
(
int
);
// not implemented; to detect misuses of
// Assign(sal_Unicode)
void
operator
=
(
int
);
// not implemented; to detect misuses
void
operator
=
(
int
);
// not implemented; to detect misuses
// of operator =(sal_Unicode)
// of operator =(sal_Unicode)
void
Append
(
int
);
// not implemented; to detect misuses of
void
Append
(
int
);
// not implemented; to detect misuses of
...
@@ -133,8 +133,6 @@ private:
...
@@ -133,8 +133,6 @@ private:
TOOLS_DLLPRIVATE
UniString
(
const
sal_Unicode
*
pCharStr
);
TOOLS_DLLPRIVATE
UniString
(
const
sal_Unicode
*
pCharStr
);
TOOLS_DLLPRIVATE
UniString
(
const
sal_Unicode
*
pCharStr
,
xub_StrLen
nLen
);
TOOLS_DLLPRIVATE
UniString
(
const
sal_Unicode
*
pCharStr
,
xub_StrLen
nLen
);
TOOLS_DLLPRIVATE
UniString
(
sal_Unicode
c
);
TOOLS_DLLPRIVATE
UniString
(
sal_Unicode
c
);
TOOLS_DLLPRIVATE
UniString
&
Assign
(
const
sal_Unicode
*
pCharStr
);
TOOLS_DLLPRIVATE
UniString
&
Assign
(
const
sal_Unicode
*
pCharStr
,
xub_StrLen
nLen
);
TOOLS_DLLPRIVATE
UniString
&
Append
(
const
sal_Unicode
*
pCharStr
);
TOOLS_DLLPRIVATE
UniString
&
Append
(
const
sal_Unicode
*
pCharStr
);
TOOLS_DLLPRIVATE
UniString
&
Append
(
const
sal_Unicode
*
pCharStr
,
xub_StrLen
nLen
);
TOOLS_DLLPRIVATE
UniString
&
Append
(
const
sal_Unicode
*
pCharStr
,
xub_StrLen
nLen
);
TOOLS_DLLPRIVATE
UniString
&
Expand
(
xub_StrLen
nCount
,
sal_Unicode
cExpandChar
);
TOOLS_DLLPRIVATE
UniString
&
Expand
(
xub_StrLen
nCount
,
sal_Unicode
cExpandChar
);
...
@@ -178,20 +176,8 @@ public:
...
@@ -178,20 +176,8 @@ public:
sal_Int32
ToInt32
()
const
;
sal_Int32
ToInt32
()
const
;
UniString
&
Assign
(
const
UniString
&
rStr
);
UniString
&
Assign
(
const
OUString
&
rStr
);
UniString
&
Assign
(
sal_Unicode
c
);
inline
UniString
&
Assign
(
char
c
)
// ...but allow "Assign('a')"
{
return
Assign
(
static_cast
<
sal_Unicode
>
(
c
));
}
UniString
&
operator
=
(
const
UniString
&
rStr
)
{
return
Assign
(
rStr
);
}
UniString
&
operator
=
(
const
OUString
&
rStr
)
UniString
&
operator
=
(
const
OUString
&
rStr
)
{
return
Assign
(
rStr
);
}
{
return
Assign
(
rStr
);
}
UniString
&
operator
=
(
sal_Unicode
c
)
{
return
Assign
(
c
);
}
inline
UniString
&
operator
=
(
char
c
)
// ...but allow "= 'a'"
{
return
operator
=
(
static_cast
<
sal_Unicode
>
(
c
));
}
UniString
&
Append
(
const
UniString
&
rStr
);
UniString
&
Append
(
const
UniString
&
rStr
);
UniString
&
Append
(
sal_Unicode
c
);
UniString
&
Append
(
sal_Unicode
c
);
...
...
tools/source/string/strimp.cxx
Dosyayı görüntüle @
9be876cd
...
@@ -156,17 +156,6 @@ STRING::~STRING()
...
@@ -156,17 +156,6 @@ STRING::~STRING()
STRING_RELEASE
((
STRING_TYPE
*
)
mpData
);
STRING_RELEASE
((
STRING_TYPE
*
)
mpData
);
}
}
STRING
&
STRING
::
Assign
(
const
STRING
&
rStr
)
{
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
DBG_CHKOBJ
(
&
rStr
,
STRING
,
DBGCHECKSTRING
);
STRING_ACQUIRE
((
STRING_TYPE
*
)
rStr
.
mpData
);
STRING_RELEASE
((
STRING_TYPE
*
)
mpData
);
mpData
=
rStr
.
mpData
;
return
*
this
;
}
STRING
&
STRING
::
Append
(
const
STRING
&
rStr
)
STRING
&
STRING
::
Append
(
const
STRING
&
rStr
)
{
{
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
...
...
tools/source/string/tustring.cxx
Dosyayı görüntüle @
9be876cd
...
@@ -144,18 +144,6 @@ STRING& STRING::Append( STRCODE c )
...
@@ -144,18 +144,6 @@ STRING& STRING::Append( STRCODE c )
return
*
this
;
return
*
this
;
}
}
STRING
&
STRING
::
Assign
(
STRCODE
c
)
{
DBG_CHKTHIS
(
STRING
,
DBGCHECKSTRING
);
DBG_ASSERT
(
c
,
"String::Assign() - c is 0"
);
// initialize maintenance data
STRING_RELEASE
((
STRING_TYPE
*
)
mpData
);
mpData
=
ImplAllocData
(
1
);
mpData
->
maStr
[
0
]
=
c
;
return
*
this
;
}
xub_StrLen
ImplStringLen
(
const
sal_Char
*
pStr
)
xub_StrLen
ImplStringLen
(
const
sal_Char
*
pStr
)
{
{
const
sal_Char
*
pTempStr
=
pStr
;
const
sal_Char
*
pTempStr
=
pStr
;
...
...
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