summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgelem.cxx
diff options
context:
space:
mode:
authormm <mm@openoffice.org>2000-10-24 07:16:02 +0000
committermm <mm@openoffice.org>2000-10-24 07:16:02 +0000
commit86bd02bd67460221f0a1bc705c9c0bf38d7e6e6c (patch)
tree5f38f588455c72318c62b2fb50bd2eedf4f45d6e /sot/source/sdstor/stgelem.cxx
parentc2036a87860dfa6a968fa82fa1462a1fbac9979e (diff)
ToUpper
Diffstat (limited to 'sot/source/sdstor/stgelem.cxx')
-rw-r--r--sot/source/sdstor/stgelem.cxx22
1 files changed, 7 insertions, 15 deletions
diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx
index 4a43cb207147..87c31460e156 100644
--- a/sot/source/sdstor/stgelem.cxx
+++ b/sot/source/sdstor/stgelem.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: stgelem.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mba $ $Date: 2000-10-16 14:08:34 $
+ * last change: $Author: mm $ $Date: 2000-10-24 08:16:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -60,7 +60,7 @@
************************************************************************/
#include <string.h> // memset(), memcpy()
-#include <tools/intn.hxx>
+#include <rtl/ustring.hxx>
#include "stg.hxx"
#include "stgelem.hxx"
#include "stgcache.hxx"
@@ -288,21 +288,12 @@ BOOL StgEntry::Init()
return TRUE;
}
-static International* pInter = 0;
-
-inline International& GetInternational()
-{
- return pInter ? *pInter : *(pInter = new International);
-}
-
BOOL StgEntry::SetName( const String& rName )
{
- const International& aInter = GetInternational();
// make upper case character in current language
aName = rName;
+ aName = rtl::OUString( aName ).toUpperCase();
aName.Erase( 31 );
- aInter.ToUpper( aName );
- //ToUnicode_Impl( aNameStr );
int i;
for( i = 0; i < aName.Len() && i < 32; i++ )
@@ -410,8 +401,9 @@ BOOL StgEntry::Load( const void* pFrom )
return FALSE;
aName = String( nName, n );
- const International& aInter = GetInternational();
- aInter.ToUpper( aName );
+ // make upper case character in current language
+ aName = rtl::OUString( aName ).toUpperCase();
+ aName.Erase( 31 );
return TRUE;
}