diff options
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/convert.cxx | 17 | ||||
-rw-r--r-- | forms/source/xforms/convert.hxx | 4 |
2 files changed, 0 insertions, 21 deletions
diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx index b1bda6ead3e1..a89ef2bedf7d 100644 --- a/forms/source/xforms/convert.cxx +++ b/forms/source/xforms/convert.cxx @@ -470,23 +470,6 @@ Convert::Any_t Convert::toAny( const OUString& rValue, } //------------------------------------------------------------------------ -OUString Convert::replaceWhitespace( const OUString& _rString ) -{ - OUStringBuffer aBuffer( _rString ); - sal_Int32 nLength = aBuffer.getLength(); - const sal_Unicode* pBuffer = aBuffer.getStr(); - for( sal_Int32 i = 0; i < nLength; i++ ) - { - sal_Unicode c = pBuffer[i]; - if( c == sal_Unicode(0x08) || - c == sal_Unicode(0x0A) || - c == sal_Unicode(0x0D) ) - aBuffer[i] = sal_Unicode(0x20); - } - return aBuffer.makeStringAndClear(); -} - -//------------------------------------------------------------------------ OUString Convert::collapseWhitespace( const OUString& _rString ) { sal_Int32 nLength = _rString.getLength(); diff --git a/forms/source/xforms/convert.hxx b/forms/source/xforms/convert.hxx index f3fa5243c9d5..3e19e3c61a78 100644 --- a/forms/source/xforms/convert.hxx +++ b/forms/source/xforms/convert.hxx @@ -72,10 +72,6 @@ public: /// convert XML representation to Any of given type Any_t toAny( const OUString&, const Type_t& ); - /** replace all occurrences 0x08, 0x0A, 0x0D with 0x20 - */ - static OUString replaceWhitespace( const OUString& _rString ); - /** replace all sequences of 0x08, 0x0A, 0x0D, 0x20 with a single 0x20. also strip leading/trailing whitespace. */ |