drop unused convertWhitespace
Change-Id: I2e27e498cb86d5aaeff692e62e75ee8c8200e729
This commit is contained in:
parent
9eeacd2751
commit
fae7447283
@ -469,28 +469,6 @@ Convert::Any_t Convert::toAny( const OUString& rValue,
|
|||||||
return aIter != maMap.end() ? aIter->second.second( rValue ) : Any_t();
|
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 )
|
OUString Convert::replaceWhitespace( const OUString& _rString )
|
||||||
{
|
{
|
||||||
|
@ -72,22 +72,6 @@ public:
|
|||||||
/// convert XML representation to Any of given type
|
/// convert XML representation to Any of given type
|
||||||
Any_t toAny( const OUString&, const Type_t& );
|
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
|
/** replace all occurrences 0x08, 0x0A, 0x0D with 0x20
|
||||||
*/
|
*/
|
||||||
static OUString replaceWhitespace( const OUString& _rString );
|
static OUString replaceWhitespace( const OUString& _rString );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user