Kaydet (Commit) cd44be24 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS xmlencl10n_SRC680 (1.39.26); FILE MERGED

2008/02/01 16:29:59 ihi 1.39.26.1: #i85797# wrong encoding from xrb to property files
üst 107112d1
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: export2.cxx,v $ * $RCSfile: export2.cxx,v $
* *
* $Revision: 1.40 $ * $Revision: 1.41 $
* *
* last change: $Author: ihi $ $Date: 2008-02-05 12:55:28 $ * last change: $Author: vg $ $Date: 2008-02-12 13:10:06 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -485,6 +485,29 @@ ByteString Export::GetFallbackLanguage( const ByteString nLanguage ) ...@@ -485,6 +485,29 @@ ByteString Export::GetFallbackLanguage( const ByteString nLanguage )
return sFallback; return sFallback;
} }
void Export::replaceEncoding( ByteString& rString )
{
// ™ -> \u2122
for( int idx = 0; idx <= rString.Len()-8 ; idx++ )
{
if( rString.GetChar( idx ) == '&' &&
rString.GetChar( idx+1 ) == '#' &&
rString.GetChar( idx+2 ) == 'x' &&
rString.GetChar( idx+7 ) == ';' )
{
ByteString sTmp = rString.Copy( 0 , idx );
sTmp.Append( "\\u" );
sTmp.Append( rString.GetChar( idx+3 ) );
sTmp.Append( rString.GetChar( idx+4 ) );
sTmp.Append( rString.GetChar( idx+5 ) );
sTmp.Append( rString.GetChar( idx+6 ) );
sTmp.Append( rString.Copy( idx+8 , rString.Len() ) );
rString = sTmp;
}
}
}
/*****************************************************************************/ /*****************************************************************************/
void Export::FillInFallbacks( ResData *pResData ) void Export::FillInFallbacks( ResData *pResData )
/*****************************************************************************/ /*****************************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment