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
3714051f
Kaydet (Commit)
3714051f
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 String::[G|S]etChar
Change-Id: I64711aa3e6580eff7c64a92243e3161ef2d7cb9e
üst
60ff30a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
21 deletions
+4
-21
string.hxx
include/tools/string.hxx
+4
-12
strimp.cxx
tools/source/string/strimp.cxx
+0
-9
No files found.
include/tools/string.hxx
Dosyayı görüntüle @
3714051f
...
...
@@ -181,7 +181,7 @@ public:
UniString
&
Append
(
const
UniString
&
rStr
);
UniString
&
Append
(
sal_Unicode
c
);
inline
UniString
&
Append
(
char
c
)
// ...but allow "Append('a')"
UniString
&
Append
(
char
c
)
// ...but allow "Append('a')"
{
return
Append
(
static_cast
<
sal_Unicode
>
(
c
));
}
UniString
&
operator
+=
(
const
UniString
&
rStr
)
{
return
Append
(
rStr
);
}
...
...
@@ -189,18 +189,15 @@ public:
{
return
Append
(
UniString
(
rStr
)
);
}
UniString
&
operator
+=
(
sal_Unicode
c
)
{
return
Append
(
c
);
}
inline
UniString
&
operator
+=
(
char
c
)
// ...but allow "+= 'a'"
UniString
&
operator
+=
(
char
c
)
// ...but allow "+= 'a'"
{
return
operator
+=
(
static_cast
<
sal_Unicode
>
(
c
));
}
void
SetChar
(
xub_StrLen
nIndex
,
sal_Unicode
c
);
sal_Unicode
GetChar
(
xub_StrLen
nIndex
)
const
{
return
mpData
->
maStr
[
nIndex
];
}
xub_StrLen
Len
()
const
{
return
(
xub_StrLen
)
mpData
->
mnLen
;
}
UniString
&
Insert
(
const
UniString
&
rStr
,
xub_StrLen
nIndex
=
STRING_LEN
);
UniString
&
Insert
(
sal_Unicode
c
,
xub_StrLen
nIndex
=
STRING_LEN
);
UniString
Copy
(
xub_StrLen
nIndex
=
0
,
xub_StrLen
nCount
=
STRING_LEN
)
const
;
UniString
Copy
(
xub_StrLen
nIndex
=
0
,
xub_StrLen
nCount
=
STRING_LEN
)
const
{
return
UniString
(
*
this
,
nIndex
,
nCount
);
}
const
sal_Unicode
*
GetBuffer
()
const
{
return
mpData
->
maStr
;
}
...
...
@@ -217,11 +214,6 @@ public:
{
return
!
(
operator
<
(
rStr1
,
rStr2
));
}
};
inline
UniString
UniString
::
Copy
(
xub_StrLen
nIndex
,
xub_StrLen
nCount
)
const
{
return
UniString
(
*
this
,
nIndex
,
nCount
);
}
template
<
typename
charT
,
typename
traits
>
std
::
basic_ostream
<
charT
,
traits
>
&
operator
<<
(
std
::
basic_ostream
<
charT
,
traits
>
&
stream
,
UniString
const
&
string
)
...
...
tools/source/string/strimp.cxx
Dosyayı görüntüle @
3714051f
...
...
@@ -167,15 +167,6 @@ STRING& STRING::Append( const STRING& rStr )
return
*
this
;
}
void
STRING
::
SetChar
(
xub_StrLen
nIndex
,
STRCODE
c
)
{
DBG_ASSERT
(
nIndex
<
mpData
->
mnLen
,
"String::SetChar() - nIndex > String.Len()"
);
// copy data if necessary
ImplCopyData
();
mpData
->
maStr
[
nIndex
]
=
c
;
}
STRING
&
STRING
::
Insert
(
const
STRING
&
rStr
,
xub_StrLen
nIndex
)
{
// detect overflow
...
...
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