summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-04-07 12:06:47 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-04-07 14:23:11 +0200
commit1946794ae09ba732022fe6a74ea45e304ab70b84 (patch)
treee32bd7ba61fa021ecc7f8c85959df8ca837d6e81 /sax/source
parent5b08c6e7a21dda94d5b755eea0b1ed1e9c199bec (diff)
mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/expatwrap/attrlistimpl.hxx14
-rw-r--r--sax/source/expatwrap/sax_expat.cxx2
-rw-r--r--sax/source/expatwrap/saxwriter.cxx20
-rw-r--r--sax/source/expatwrap/xml2utf.cxx1
-rw-r--r--sax/source/fastparser/facreg.cxx1
-rw-r--r--sax/source/fastparser/fastparser.cxx5
-rw-r--r--sax/source/fastparser/fastparser.hxx30
-rw-r--r--sax/source/tools/converter.cxx60
-rw-r--r--sax/source/tools/fastattribs.cxx2
-rw-r--r--sax/source/tools/fastserializer.cxx6
-rw-r--r--sax/source/tools/fastserializer.hxx6
-rw-r--r--sax/source/tools/fshelper.cxx16
12 files changed, 75 insertions, 88 deletions
diff --git a/sax/source/expatwrap/attrlistimpl.hxx b/sax/source/expatwrap/attrlistimpl.hxx
index 52187f9826cd..2828651ad19a 100644
--- a/sax/source/expatwrap/attrlistimpl.hxx
+++ b/sax/source/expatwrap/attrlistimpl.hxx
@@ -42,22 +42,22 @@ public:
AttributeList( const AttributeList & );
virtual ~AttributeList();
- void addAttribute( const ::rtl::OUString &sName ,
- const ::rtl::OUString &sType , const ::rtl::OUString &sValue );
+ void addAttribute( const OUString &sName ,
+ const OUString &sType , const OUString &sValue );
void clear();
public:
// XAttributeList
virtual sal_Int16 SAL_CALL getLength(void)
throw(::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getNameByIndex(sal_Int16 i)
+ virtual OUString SAL_CALL getNameByIndex(sal_Int16 i)
throw(::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getTypeByIndex(sal_Int16 i)
+ virtual OUString SAL_CALL getTypeByIndex(sal_Int16 i)
throw(::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getTypeByName(const ::rtl::OUString& aName)
+ virtual OUString SAL_CALL getTypeByName(const OUString& aName)
throw(::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getValueByIndex(sal_Int16 i)
+ virtual OUString SAL_CALL getValueByIndex(sal_Int16 i)
throw(::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getValueByName(const ::rtl::OUString& aName)
+ virtual OUString SAL_CALL getValueByName(const OUString& aName)
throw( ::com::sun::star::uno::RuntimeException);
// XCloneable
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index 72b84e2ffae0..4661256854c4 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -199,7 +199,7 @@ Reference< XInterface > SAL_CALL SaxExpatParser_CreateInstance(
Sequence< OUString > SaxExpatParser::getSupportedServiceNames_Static(void) throw ()
{
Sequence<OUString> aRet(1);
- aRet.getArray()[0] = ::rtl::OUString( SERVICE_NAME );
+ aRet.getArray()[0] = OUString( SERVICE_NAME );
return aRet;
}
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index cfdf61982adb..20660eb150d8 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -118,7 +118,7 @@ public:
// returns whether it works correct or invalid characters were in the string
// If there are invalid characters in the string it returns sal_False.
// Than the calling method has to throw the needed Exception.
- inline sal_Bool writeString(const rtl::OUString& rWriteOutString,
+ inline sal_Bool writeString(const OUString& rWriteOutString,
sal_Bool bDoNormalization,
sal_Bool bNormalizeWhitespace) throw( SAXException );
@@ -130,26 +130,26 @@ public:
// returns whether it works correct or invalid characters were in the strings
// If there are invalid characters in one of the strings it returns sal_False.
// Than the calling method has to throw the needed Exception.
- inline SaxInvalidCharacterError startElement(const rtl::OUString& rName, const Reference< XAttributeList >& xAttribs) throw( SAXException );
+ inline SaxInvalidCharacterError startElement(const OUString& rName, const Reference< XAttributeList >& xAttribs) throw( SAXException );
inline sal_Bool FinishEmptyElement() throw( SAXException );
// returns whether it works correct or invalid characters were in the string
// If there are invalid characters in the string it returns sal_False.
// Than the calling method has to throw the needed Exception.
- inline sal_Bool endElement(const rtl::OUString& rName) throw( SAXException );
+ inline sal_Bool endElement(const OUString& rName) throw( SAXException );
inline void endDocument() throw( SAXException );
// returns whether it works correct or invalid characters were in the strings
// If there are invalid characters in the string it returns sal_False.
// Than the calling method has to throw the needed Exception.
- inline sal_Bool processingInstruction(const rtl::OUString& rTarget, const rtl::OUString& rData) throw( SAXException );
+ inline sal_Bool processingInstruction(const OUString& rTarget, const OUString& rData) throw( SAXException );
inline void startCDATA() throw( SAXException );
inline void endCDATA() throw( SAXException );
// returns whether it works correct or invalid characters were in the strings
// If there are invalid characters in the string it returns sal_False.
// Than the calling method has to throw the needed Exception.
- inline sal_Bool comment(const rtl::OUString& rComment) throw( SAXException );
+ inline sal_Bool comment(const OUString& rComment) throw( SAXException );
inline void clearBuffer() throw( SAXException );
};
@@ -503,7 +503,7 @@ inline void SaxWriterHelper::insertIndentation(sal_uInt32 m_nLevel) throw( SAXEx
}
}
-inline sal_Bool SaxWriterHelper::writeString( const rtl::OUString& rWriteOutString,
+inline sal_Bool SaxWriterHelper::writeString( const OUString& rWriteOutString,
sal_Bool bDoNormalization,
sal_Bool bNormalizeWhitespace ) throw( SAXException )
{
@@ -538,7 +538,7 @@ inline void SaxWriterHelper::startDocument() throw( SAXException )
nCurrentPos = writeSequence();
}
-inline SaxInvalidCharacterError SaxWriterHelper::startElement(const rtl::OUString& rName, const Reference< XAttributeList >& xAttribs) throw( SAXException )
+inline SaxInvalidCharacterError SaxWriterHelper::startElement(const OUString& rName, const Reference< XAttributeList >& xAttribs) throw( SAXException )
{
FinishStartElement();
mp_Sequence[nCurrentPos] = '<';
@@ -605,7 +605,7 @@ inline sal_Bool SaxWriterHelper::FinishEmptyElement() throw( SAXException )
return sal_True;
}
-inline sal_Bool SaxWriterHelper::endElement(const rtl::OUString& rName) throw( SAXException )
+inline sal_Bool SaxWriterHelper::endElement(const OUString& rName) throw( SAXException )
{
FinishStartElement();
mp_Sequence[nCurrentPos] = '<';
@@ -650,7 +650,7 @@ inline void SaxWriterHelper::clearBuffer() throw( SAXException )
}
}
-inline sal_Bool SaxWriterHelper::processingInstruction(const rtl::OUString& rTarget, const rtl::OUString& rData) throw( SAXException )
+inline sal_Bool SaxWriterHelper::processingInstruction(const OUString& rTarget, const OUString& rData) throw( SAXException )
{
FinishStartElement();
mp_Sequence[nCurrentPos] = '<';
@@ -712,7 +712,7 @@ inline void SaxWriterHelper::endCDATA() throw( SAXException )
nCurrentPos = writeSequence();
}
-inline sal_Bool SaxWriterHelper::comment(const rtl::OUString& rComment) throw( SAXException )
+inline sal_Bool SaxWriterHelper::comment(const OUString& rComment) throw( SAXException )
{
FinishStartElement();
mp_Sequence[nCurrentPos] = '<';
diff --git a/sax/source/expatwrap/xml2utf.cxx b/sax/source/expatwrap/xml2utf.cxx
index 69065c64720e..76713d99ef84 100644
--- a/sax/source/expatwrap/xml2utf.cxx
+++ b/sax/source/expatwrap/xml2utf.cxx
@@ -30,7 +30,6 @@
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
-using ::rtl::OString;
#include "xml2utf.hxx"
diff --git a/sax/source/fastparser/facreg.cxx b/sax/source/fastparser/facreg.cxx
index b0b5848544b4..fbf746f680fd 100644
--- a/sax/source/fastparser/facreg.cxx
+++ b/sax/source/fastparser/facreg.cxx
@@ -27,7 +27,6 @@ using namespace sax_fastparser;
using namespace ::cppu;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::registry;
-using ::rtl::OUString;
using namespace ::com::sun::star::lang;
namespace sax_fastparser
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 601905b80e26..1a80ed1ab65a 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -31,9 +31,6 @@
#include <string.h>
-using ::rtl::OString;
-using ::rtl::OUString;
-using ::rtl::OUStringBuffer;
using namespace ::std;
using namespace ::osl;
using namespace ::cppu;
@@ -557,7 +554,7 @@ void FastSaxParser::setLocale( const Locale & Locale ) throw (RuntimeException)
Sequence< OUString > FastSaxParser::getSupportedServiceNames_Static(void)
{
Sequence<OUString> aRet(1);
- aRet.getArray()[0] = ::rtl::OUString( PARSER_SERVICE_NAME );
+ aRet.getArray()[0] = OUString( PARSER_SERVICE_NAME );
return aRet;
}
diff --git a/sax/source/fastparser/fastparser.hxx b/sax/source/fastparser/fastparser.hxx
index d72b7ffd6095..dab438f81422 100644
--- a/sax/source/fastparser/fastparser.hxx
+++ b/sax/source/fastparser/fastparser.hxx
@@ -48,8 +48,8 @@ struct SaxContextImpl;
typedef ::boost::shared_ptr< SaxContextImpl > SaxContextImplPtr;
typedef ::boost::shared_ptr< NamespaceDefine > NamespaceDefineRef;
-typedef ::boost::unordered_map< ::rtl::OUString, sal_Int32,
- ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > NamespaceMap;
+typedef ::boost::unordered_map< OUString, sal_Int32,
+ OUStringHash, ::std::equal_to< OUString > > NamespaceMap;
// --------------------------------------------------------------------
@@ -96,22 +96,22 @@ public:
virtual ~FastSaxParser();
// The implementation details
- static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void);
+ static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static(void);
// XFastParser
virtual void SAL_CALL parseStream( const ::com::sun::star::xml::sax::InputSource& aInputSource ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setFastDocumentHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastDocumentHandler >& Handler ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setTokenHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastTokenHandler >& Handler ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL registerNamespace( const ::rtl::OUString& NamespaceURL, sal_Int32 NamespaceToken ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getNamespaceURL( const ::rtl::OUString& rPrefix ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL registerNamespace( const OUString& NamespaceURL, sal_Int32 NamespaceToken ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
+ virtual OUString SAL_CALL getNamespaceURL( const OUString& rPrefix ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setErrorHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XErrorHandler >& Handler ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setEntityResolver( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XEntityResolver >& Resolver ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setLocale( const ::com::sun::star::lang::Locale& rLocale ) throw (::com::sun::star::uno::RuntimeException);
// XServiceInfo
- virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
+ virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
// called by the C callbacks of the expat parser
void callbackStartElement( const XML_Char* name, const XML_Char** atts );
@@ -130,15 +130,15 @@ public:
private:
void parse();
- sal_Int32 GetToken( const ::rtl::OString& rToken );
+ sal_Int32 GetToken( const OString& rToken );
sal_Int32 GetToken( const sal_Char* pToken, sal_Int32 nTokenLen = 0 );
- sal_Int32 GetTokenWithPrefix( const ::rtl::OString& rPrefix, const ::rtl::OString& rName ) throw (::com::sun::star::xml::sax::SAXException);
+ sal_Int32 GetTokenWithPrefix( const OString& rPrefix, const OString& rName ) throw (::com::sun::star::xml::sax::SAXException);
sal_Int32 GetTokenWithPrefix( const sal_Char*pPrefix, int nPrefixLen, const sal_Char* pName, int nNameLen ) throw (::com::sun::star::xml::sax::SAXException);
- ::rtl::OUString GetNamespaceURL( const ::rtl::OString& rPrefix ) throw (::com::sun::star::xml::sax::SAXException);
- ::rtl::OUString GetNamespaceURL( const sal_Char*pPrefix, int nPrefixLen ) throw (::com::sun::star::xml::sax::SAXException);
- sal_Int32 GetNamespaceToken( const ::rtl::OUString& rNamespaceURL );
- sal_Int32 GetTokenWithNamespaceURL( const ::rtl::OUString& rNamespaceURL, const sal_Char* pName, int nNameLen );
- void DefineNamespace( const ::rtl::OString& rPrefix, const sal_Char* pNamespaceURL );
+ OUString GetNamespaceURL( const OString& rPrefix ) throw (::com::sun::star::xml::sax::SAXException);
+ OUString GetNamespaceURL( const sal_Char*pPrefix, int nPrefixLen ) throw (::com::sun::star::xml::sax::SAXException);
+ sal_Int32 GetNamespaceToken( const OUString& rNamespaceURL );
+ sal_Int32 GetTokenWithNamespaceURL( const OUString& rNamespaceURL, const sal_Char* pName, int nNameLen );
+ void DefineNamespace( const OString& rPrefix, const sal_Char* pNamespaceURL );
sal_Int32 CreateCustomToken( const sal_Char* pToken, int len = 0 );
void pushContext();
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index af36a027f5fb..22fa9060b154 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -34,8 +34,6 @@ using namespace com::sun::star::uno;
using namespace com::sun::star::util;
using namespace ::com::sun::star::i18n;
-using ::rtl::OUString;
-using ::rtl::OUStringBuffer;
namespace sax {
@@ -603,14 +601,14 @@ void Converter::convertDouble( OUStringBuffer& rBuffer,
}
/** convert double number to string (using ::rtl::math) */
-void Converter::convertDouble( ::rtl::OUStringBuffer& rBuffer, double fNumber)
+void Converter::convertDouble( OUStringBuffer& rBuffer, double fNumber)
{
::rtl::math::doubleToUStringBuffer( rBuffer, fNumber, rtl_math_StringFormat_Automatic, rtl_math_DecimalPlaces_Max, '.', true);
}
/** convert string to double number (using ::rtl::math) */
bool Converter::convertDouble(double& rValue,
- const ::rtl::OUString& rString, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit)
+ const OUString& rString, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit)
{
rtl_math_ConversionStatus eStatus;
rValue = ::rtl::math::stringToDouble( rString, (sal_Unicode)('.'), (sal_Unicode)(','), &eStatus, NULL );
@@ -629,7 +627,7 @@ bool Converter::convertDouble(double& rValue,
}
/** convert string to double number (using ::rtl::math) */
-bool Converter::convertDouble(double& rValue, const ::rtl::OUString& rString)
+bool Converter::convertDouble(double& rValue, const OUString& rString)
{
rtl_math_ConversionStatus eStatus;
rValue = ::rtl::math::stringToDouble( rString, (sal_Unicode)('.'), (sal_Unicode)(','), &eStatus, NULL );
@@ -637,7 +635,7 @@ bool Converter::convertDouble(double& rValue, const ::rtl::OUString& rString)
}
/** convert double to ISO "duration" string; negative durations allowed */
-void Converter::convertDuration(::rtl::OUStringBuffer& rBuffer,
+void Converter::convertDuration(OUStringBuffer& rBuffer,
const double fTime)
{
double fValue = fTime;
@@ -695,7 +693,7 @@ void Converter::convertDuration(::rtl::OUStringBuffer& rBuffer,
rBuffer.append( sal_Int32( fSecsValue));
if (f100SecsValue > 0.0)
{
- ::rtl::OUString a100th( ::rtl::math::doubleToUString( fValue,
+ OUString a100th( ::rtl::math::doubleToUString( fValue,
rtl_math_StringFormat_F, XML_MAXDIGITSCOUNT_TIME - 5, '.',
true));
if ( a100th.getLength() > 2 )
@@ -709,9 +707,9 @@ void Converter::convertDuration(::rtl::OUStringBuffer& rBuffer,
/** convert ISO "duration" string to double; negative durations allowed */
bool Converter::convertDuration(double& rfTime,
- const ::rtl::OUString& rString)
+ const OUString& rString)
{
- rtl::OUString aTrimmed = rString.trim().toAsciiUpperCase();
+ OUString aTrimmed = rString.trim().toAsciiUpperCase();
const sal_Unicode* pStr = aTrimmed.getStr();
// negative time duration?
@@ -725,7 +723,7 @@ bool Converter::convertDuration(double& rfTime,
if ( *(pStr++) != sal_Unicode('P') ) // duration must start with "P"
return false;
- rtl::OUString sDoubleStr;
+ OUString sDoubleStr;
bool bSuccess = true;
bool bDone = false;
bool bTimePart = false;
@@ -838,7 +836,7 @@ bool Converter::convertDuration(double& rfTime,
}
/** convert util::Duration to ISO "duration" string */
-void Converter::convertDuration(::rtl::OUStringBuffer& rBuffer,
+void Converter::convertDuration(OUStringBuffer& rBuffer,
const ::util::Duration& rDuration)
{
if (rDuration.Negative)
@@ -926,7 +924,7 @@ void Converter::convertDuration(::rtl::OUStringBuffer& rBuffer,
enum Result { R_NOTHING, R_OVERFLOW, R_SUCCESS };
static Result
-readUnsignedNumber(const ::rtl::OUString & rString,
+readUnsignedNumber(const OUString & rString,
sal_Int32 & io_rnPos, sal_Int32 & o_rNumber)
{
bool bOverflow(false);
@@ -964,7 +962,7 @@ readUnsignedNumber(const ::rtl::OUString & rString,
}
static bool
-readDurationT(const ::rtl::OUString & rString, sal_Int32 & io_rnPos)
+readDurationT(const OUString & rString, sal_Int32 & io_rnPos)
{
if ((io_rnPos < rString.getLength()) &&
(rString[io_rnPos] == sal_Unicode('T')))
@@ -976,7 +974,7 @@ readDurationT(const ::rtl::OUString & rString, sal_Int32 & io_rnPos)
}
static bool
-readDurationComponent(const ::rtl::OUString & rString,
+readDurationComponent(const OUString & rString,
sal_Int32 & io_rnPos, sal_Int32 & io_rnTemp, bool & io_rbTimePart,
sal_Int32 & o_rnTarget, const sal_Unicode c)
{
@@ -1007,9 +1005,9 @@ readDurationComponent(const ::rtl::OUString & rString,
/** convert ISO "duration" string to util::Duration */
bool Converter::convertDuration(util::Duration& rDuration,
- const ::rtl::OUString& rString)
+ const OUString& rString)
{
- const ::rtl::OUString string = rString.trim().toAsciiUpperCase();
+ const OUString string = rString.trim().toAsciiUpperCase();
sal_Int32 nPos(0);
bool bIsNegativeDuration(false);
@@ -1175,7 +1173,7 @@ bool Converter::convertDuration(util::Duration& rDuration,
/** convert util::Date to ISO "date" string */
void Converter::convertDate(
- ::rtl::OUStringBuffer& i_rBuffer,
+ OUStringBuffer& i_rBuffer,
const util::Date& i_rDate)
{
const util::DateTime dt(
@@ -1185,7 +1183,7 @@ void Converter::convertDate(
/** convert util::DateTime to ISO "date" or "dateTime" string */
void Converter::convertDateTime(
- ::rtl::OUStringBuffer& i_rBuffer,
+ OUStringBuffer& i_rBuffer,
const com::sun::star::util::DateTime& i_rDateTime,
bool i_bAddTimeIf0AM )
{
@@ -1247,7 +1245,7 @@ void Converter::convertDateTime(
/** convert ISO "date" or "dateTime" string to util::DateTime */
bool Converter::convertDateTime( util::DateTime& rDateTime,
- const ::rtl::OUString& rString )
+ const OUString& rString )
{
bool isDateTime;
util::Date date;
@@ -1272,7 +1270,7 @@ bool Converter::convertDateTime( util::DateTime& rDateTime,
}
static bool
-readDateTimeComponent(const ::rtl::OUString & rString,
+readDateTimeComponent(const OUString & rString,
sal_Int32 & io_rnPos, sal_Int32 & o_rnTarget,
const sal_Int32 nMinLength, const bool bExactLength)
{
@@ -1314,11 +1312,11 @@ lcl_MaxDaysPerMonth(const sal_Int32 nMonth, const sal_Int32 nYear)
/** convert ISO "date" or "dateTime" string to util::DateTime or util::Date */
bool Converter::convertDateOrDateTime(
util::Date & rDate, util::DateTime & rDateTime,
- bool & rbDateTime, const ::rtl::OUString & rString )
+ bool & rbDateTime, const OUString & rString )
{
bool bSuccess = true;
- const ::rtl::OUString string = rString.trim().toAsciiUpperCase();
+ const OUString string = rString.trim().toAsciiUpperCase();
sal_Int32 nPos(0);
if (string.getLength() > nPos)
{
@@ -1618,7 +1616,7 @@ const
-void ThreeByteToFourByte (const sal_Int8* pBuffer, const sal_Int32 nStart, const sal_Int32 nFullLen, rtl::OUStringBuffer& sBuffer)
+void ThreeByteToFourByte (const sal_Int8* pBuffer, const sal_Int32 nStart, const sal_Int32 nFullLen, OUStringBuffer& sBuffer)
{
sal_Int32 nLen(nFullLen - nStart);
if (nLen > 3)
@@ -1671,7 +1669,7 @@ void ThreeByteToFourByte (const sal_Int8* pBuffer, const sal_Int32 nStart, const
sBuffer.append(buf, SAL_N_ELEMENTS(buf));
}
-void Converter::encodeBase64(rtl::OUStringBuffer& aStrBuffer, const uno::Sequence<sal_Int8>& aPass)
+void Converter::encodeBase64(OUStringBuffer& aStrBuffer, const uno::Sequence<sal_Int8>& aPass)
{
sal_Int32 i(0);
sal_Int32 nBufferLength(aPass.getLength());
@@ -1683,7 +1681,7 @@ void Converter::encodeBase64(rtl::OUStringBuffer& aStrBuffer, const uno::Sequenc
}
}
-void Converter::decodeBase64(uno::Sequence<sal_Int8>& aBuffer, const rtl::OUString& sBuffer)
+void Converter::decodeBase64(uno::Sequence<sal_Int8>& aBuffer, const OUString& sBuffer)
{
#if OSL_DEBUG_LEVEL > 0
sal_Int32 nCharsDecoded =
@@ -1694,7 +1692,7 @@ void Converter::decodeBase64(uno::Sequence<sal_Int8>& aBuffer, const rtl::OUStri
sal_Int32 Converter::decodeBase64SomeChars(
uno::Sequence<sal_Int8>& rOutBuffer,
- const rtl::OUString& rInBuffer)
+ const OUString& rInBuffer)
{
sal_Int32 nInBufferLen = rInBuffer.getLength();
sal_Int32 nMinOutBufferLen = (nInBufferLen / 4) * 3;
@@ -1762,7 +1760,7 @@ sal_Int32 Converter::decodeBase64SomeChars(
return nCharsDecoded;
}
-double Converter::GetConversionFactor(::rtl::OUStringBuffer& rUnit, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit)
+double Converter::GetConversionFactor(OUStringBuffer& rUnit, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit)
{
double fRetval(1.0);
rUnit.setLength(0L);
@@ -2117,7 +2115,7 @@ double Converter::GetConversionFactor(::rtl::OUStringBuffer& rUnit, sal_Int16 nS
return fRetval;
}
-sal_Int16 Converter::GetUnitFromString(const ::rtl::OUString& rString, sal_Int16 nDefaultUnit)
+sal_Int16 Converter::GetUnitFromString(const OUString& rString, sal_Int16 nDefaultUnit)
{
sal_Int32 nPos = 0L;
sal_Int32 nLen = rString.getLength();
@@ -2203,8 +2201,8 @@ sal_Int16 Converter::GetUnitFromString(const ::rtl::OUString& rString, sal_Int16
}
-bool Converter::convertAny(::rtl::OUStringBuffer& rsValue,
- ::rtl::OUStringBuffer& rsType ,
+bool Converter::convertAny(OUStringBuffer& rsValue,
+ OUStringBuffer& rsType ,
const com::sun::star::uno::Any& rValue)
{
bool bConverted = false;
@@ -2257,7 +2255,7 @@ bool Converter::convertAny(::rtl::OUStringBuffer& rsValue,
case com::sun::star::uno::TypeClass_STRING :
{
- ::rtl::OUString sTempValue;
+ OUString sTempValue;
if (rValue >>= sTempValue)
{
rsType.appendAscii("string");
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx
index fdf9066ab3f4..bb348a4cc61c 100644
--- a/sax/source/tools/fastattribs.cxx
+++ b/sax/source/tools/fastattribs.cxx
@@ -21,8 +21,6 @@
#include <sax/fastattribs.hxx>
-using ::rtl::OUString;
-using ::rtl::OString;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::xml;
using namespace ::com::sun::star::xml::sax;
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx
index 9966b856265e..eba4548ee6c5 100644
--- a/sax/source/tools/fastserializer.cxx
+++ b/sax/source/tools/fastserializer.cxx
@@ -33,10 +33,6 @@
#endif
using ::comphelper::SequenceAsVector;
-using ::rtl::OString;
-using ::rtl::OUString;
-using ::rtl::OUStringBuffer;
-using ::rtl::OUStringToOString;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::RuntimeException;
using ::com::sun::star::uno::Sequence;
@@ -82,7 +78,7 @@ namespace sax_fastparser {
OUString FastSaxSerializer::escapeXml( const OUString& s )
{
- ::rtl::OUStringBuffer sBuf( s.getLength() );
+ OUStringBuffer sBuf( s.getLength() );
const sal_Unicode* pStr = s.getStr();
sal_Int32 nLen = s.getLength();
for( sal_Int32 i = 0; i < nLen; ++i)
diff --git a/sax/source/tools/fastserializer.hxx b/sax/source/tools/fastserializer.hxx
index 4e9f87115e6d..38c8e89f4e59 100644
--- a/sax/source/tools/fastserializer.hxx
+++ b/sax/source/tools/fastserializer.hxx
@@ -100,7 +100,7 @@ public:
throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException);
/// receives notification of character data.
- void SAL_CALL characters( const ::rtl::OUString& aChars )
+ void SAL_CALL characters( const OUString& aChars )
throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException);
void SAL_CALL setOutputStream( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& xOutputStream )
@@ -112,7 +112,7 @@ public:
// C++ helpers
void SAL_CALL writeId( ::sal_Int32 Element );
- static ::rtl::OUString escapeXml( const ::rtl::OUString& s );
+ static OUString escapeXml( const OUString& s );
public:
/** From now on, don't write directly to the stream, but to top of a stack.
@@ -208,7 +208,7 @@ private:
::std::stack< boost::shared_ptr< ForMerge > > maSavedMarkStack;
void writeFastAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& Attribs );
- void write( const ::rtl::OUString& s );
+ void write( const OUString& s );
protected:
rtl::ByteSequence maClosingBracket;
diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx
index 314e60b007d8..888ed7df52a7 100644
--- a/sax/source/tools/fshelper.cxx
+++ b/sax/source/tools/fshelper.cxx
@@ -33,7 +33,7 @@ FastSerializerHelper::FastSerializerHelper(const Reference< io::XOutputStream >&
{
Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext(), UNO_SET_THROW );
Reference< lang::XMultiComponentFactory > xFactory( xContext->getServiceManager(), UNO_SET_THROW );
- mxTokenHandler.set( xFactory->createInstanceWithContext( rtl::OUString( "com.sun.star.xml.sax.FastTokenHandler"), xContext ), UNO_QUERY_THROW );
+ mxTokenHandler.set( xFactory->createInstanceWithContext( OUString( "com.sun.star.xml.sax.FastTokenHandler"), xContext ), UNO_QUERY_THROW );
mpSerializer->setFastTokenHandler( mxTokenHandler );
mpSerializer->setOutputStream( xOutputStream );
@@ -107,10 +107,10 @@ void FastSerializerHelper::singleElement(sal_Int32 elementTokenId, XFastAttribut
FastSerializerHelper* FastSerializerHelper::write(const char* value)
{
- return write(rtl::OUString::createFromAscii(value));
+ return write(OUString::createFromAscii(value));
}
-FastSerializerHelper* FastSerializerHelper::write(const rtl::OUString& value)
+FastSerializerHelper* FastSerializerHelper::write(const OUString& value)
{
mpSerializer->characters(value);
return this;
@@ -118,25 +118,25 @@ FastSerializerHelper* FastSerializerHelper::write(const rtl::OUString& value)
FastSerializerHelper* FastSerializerHelper::write(sal_Int32 value)
{
- return write(::rtl::OUString::valueOf(value));
+ return write(OUString::valueOf(value));
}
FastSerializerHelper* FastSerializerHelper::write(sal_Int64 value)
{
- return write(::rtl::OUString::valueOf(value));
+ return write(OUString::valueOf(value));
}
FastSerializerHelper* FastSerializerHelper::write(double value)
{
- return write(::rtl::OUString::valueOf(value));
+ return write(OUString::valueOf(value));
}
FastSerializerHelper* FastSerializerHelper::writeEscaped(const char* value)
{
- return writeEscaped(::rtl::OUString::createFromAscii(value));
+ return writeEscaped(OUString::createFromAscii(value));
}
-FastSerializerHelper* FastSerializerHelper::writeEscaped(const ::rtl::OUString& value)
+FastSerializerHelper* FastSerializerHelper::writeEscaped(const OUString& value)
{
return write(FastSaxSerializer::escapeXml(value));
}