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
06ed06d2
Kaydet (Commit)
06ed06d2
authored
Kas 19, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
need a String::EraseAllChars-alike for OUStringBuffer
Change-Id: I189c08a4100b32b16527ae40df3a9125bf78be88
üst
c289fb1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
string.hxx
include/comphelper/string.hxx
+23
-0
No files found.
include/comphelper/string.hxx
Dosyayı görüntüle @
06ed06d2
...
@@ -85,6 +85,29 @@ inline OUString remove(const OUString &rIn,
...
@@ -85,6 +85,29 @@ inline OUString remove(const OUString &rIn,
sal_Unicode
c
)
sal_Unicode
c
)
{
return
rIn
.
replaceAll
(
OUString
(
c
),
OUString
());
}
{
return
rIn
.
replaceAll
(
OUString
(
c
),
OUString
());
}
/** Removes all occurrences of a character from within the source string
@param rIn The input OUStringBuffer
@param c The character to be removed
@return The resulting OUStringBuffer
*/
inline
OUStringBuffer
&
remove
(
OUStringBuffer
&
rIn
,
sal_Unicode
c
)
{
sal_Int32
index
=
0
;
while
(
1
)
{
if
(
index
>=
rIn
.
getLength
())
break
;
index
=
rIn
.
indexOf
(
c
,
index
);
if
(
index
==
-
1
)
break
;
rIn
.
remove
(
index
,
1
);
}
return
rIn
;
}
/** Strips occurrences of a character from the start of the source string
/** Strips occurrences of a character from the start of the source string
@param rIn The input OString
@param rIn The input OString
...
...
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