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
fae74472
Kaydet (Commit)
fae74472
authored
Tem 02, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
drop unused convertWhitespace
Change-Id: I2e27e498cb86d5aaeff692e62e75ee8c8200e729
üst
9eeacd27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
38 deletions
+0
-38
convert.cxx
forms/source/xforms/convert.cxx
+0
-22
convert.hxx
forms/source/xforms/convert.hxx
+0
-16
No files found.
forms/source/xforms/convert.cxx
Dosyayı görüntüle @
fae74472
...
...
@@ -469,28 +469,6 @@ Convert::Any_t Convert::toAny( const OUString& rValue,
return
aIter
!=
maMap
.
end
()
?
aIter
->
second
.
second
(
rValue
)
:
Any_t
();
}
//------------------------------------------------------------------------
OUString
Convert
::
convertWhitespace
(
const
OUString
&
_rString
,
sal_Int16
_nWhitespaceTreatment
)
{
OUString
sConverted
;
switch
(
_nWhitespaceTreatment
)
{
default
:
OSL_FAIL
(
"Convert::convertWhitespace: invalid whitespace treatment constant!"
);
// NO break
case
com
:
:
sun
::
star
::
xsd
::
WhiteSpaceTreatment
::
Preserve
:
sConverted
=
_rString
;
break
;
case
com
:
:
sun
::
star
::
xsd
::
WhiteSpaceTreatment
::
Replace
:
sConverted
=
replaceWhitespace
(
_rString
);
break
;
case
com
:
:
sun
::
star
::
xsd
::
WhiteSpaceTreatment
::
Collapse
:
sConverted
=
collapseWhitespace
(
_rString
);
break
;
}
return
sConverted
;
}
//------------------------------------------------------------------------
OUString
Convert
::
replaceWhitespace
(
const
OUString
&
_rString
)
{
...
...
forms/source/xforms/convert.hxx
Dosyayı görüntüle @
fae74472
...
...
@@ -72,22 +72,6 @@ public:
/// convert XML representation to Any of given type
Any_t
toAny
(
const
OUString
&
,
const
Type_t
&
);
/** translates the whitespaces in a given string, according
to a given <type scope="com::sun::star::xsd">WhiteSpaceTreatment</type>.
@param _rString
the string to convert
@param _nWhitespaceTreatment
a constant from the <type scope="com::sun::star::xsd">WhiteSpaceTreatment</type> group, specifying
how to handle whitespaces
@return
the converted string
*/
static
OUString
convertWhitespace
(
const
OUString
&
_rString
,
sal_Int16
_nWhitespaceTreatment
);
/** replace all occurrences 0x08, 0x0A, 0x0D with 0x20
*/
static
OUString
replaceWhitespace
(
const
OUString
&
_rString
);
...
...
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