summaryrefslogtreecommitdiff
path: root/rsc/source/tools/rscchar.cxx
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2013-03-26 11:10:45 +0100
committerAndras Timar <atimar@suse.com>2013-03-27 09:33:00 +0100
commit73ff49f47dda14391f0c118f62002cb42680624e (patch)
tree361fb6fecc7ce1e3466036f967614cd5afe3122d /rsc/source/tools/rscchar.cxx
parent95c586d5c034115fd252c5fb0e4637bf9dc68a4d (diff)
remove unused functionality from Resource Compiler
and remove ASCII art comments and other useless comments Change-Id: Iafa5eb5aa421b38b325bdc7cea6045b43a5c582a
Diffstat (limited to 'rsc/source/tools/rscchar.cxx')
-rw-r--r--rsc/source/tools/rscchar.cxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/rsc/source/tools/rscchar.cxx b/rsc/source/tools/rscchar.cxx
index fd37ec551ef8..526e695d6edc 100644
--- a/rsc/source/tools/rscchar.cxx
+++ b/rsc/source/tools/rscchar.cxx
@@ -17,26 +17,16 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-/****************** I N C L U D E S **************************************/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
-// Solar Definitionen
-#include <tools/solar.h>
#include <rsctools.hxx>
#include <rtl/textcvt.h>
#include <rtl/textenc.h>
#include <rtl/alloc.h>
-/*************************************************************************
-|*
-|* RscChar::MakeChar()
-|*
-|* Beschreibung Der String wird nach C-Konvention umgesetzt
-|*
-*************************************************************************/
char * RscChar::MakeUTF8( char * pStr, sal_uInt16 nTextEncoding )
{
sal_Size nMaxUniCodeBuf = strlen( pStr ) + 1;
@@ -103,7 +93,7 @@ char * RscChar::MakeUTF8( char * pStr, sal_uInt16 nTextEncoding )
}
if( nChar > 255 )
{
- // Wert zu gross, oder kein 3 Ziffern
+ // value is too big, or more than 3 digits
delete [] pOrgStr;
return( NULL );
}
@@ -160,7 +150,7 @@ char * RscChar::MakeUTF8( char * pStr, sal_uInt16 nTextEncoding )
delete[] pOrgStr, pOrgStr = 0;
hConv = rtl_createUnicodeToTextConverter( RTL_TEXTENCODING_UTF8 );
- // factor fo 6 is the maximum size of an UNICODE character as utf8
+ // factor of 6 is the maximum size of an UNICODE character as utf8
char * pUtf8 = (char *)rtl_allocateMemory( nUniSize * 6 );
rtl_convertUnicodeToText( hConv, 0,
pUniCode, nUniSize,