summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-11-18 07:16:51 +0000
committerRüdiger Timm <rt@openoffice.org>2004-11-18 07:16:51 +0000
commite48156a9d4efe24b264edf6e06ad89555c10469d (patch)
tree23d9566f863296a0fba7f971c9b0f00b1d57c362 /transex3
parent4b093c6b8421d0fc914e4ff26fedc718b0c70371 (diff)
INTEGRATION: CWS babelfish04 (1.27.10); FILE MERGED
2004/11/17 18:07:09 ihi 1.27.10.1: #i35471# #i36441# Sort order / speed fix
Diffstat (limited to 'transex3')
-rw-r--r--transex3/source/export2.cxx48
1 files changed, 45 insertions, 3 deletions
diff --git a/transex3/source/export2.cxx b/transex3/source/export2.cxx
index a232feadba82..6f620bfb8cc0 100644
--- a/transex3/source/export2.cxx
+++ b/transex3/source/export2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: export2.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: pjunck $ $Date: 2004-11-02 16:04:16 $
+ * last change: $Author: rt $ $Date: 2004-11-18 08:16:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -139,6 +139,41 @@ CharSet Export::GetCharSet( USHORT nLangId )
return 0;
}
+void Export::DumpExportList( ByteString& sListName , ExportList& aList ){
+ printf( "%s\n", sListName.GetBuffer() );
+ ByteString l("");
+ ExportListEntry* aEntry;
+ for( int x = 0; x < aList.Count() ; x++ ){
+ aEntry = (ExportListEntry*) aList.GetObject( x );
+ Export::DumpMap( l , *aEntry );
+ }
+ printf("\n");
+}
+ByteString Export::DumpMap( ByteString& sMapName , ByteStringHashMap& aMap ){
+ ByteStringHashMap::const_iterator idbg;
+ ByteString sReturn;
+
+ if( sMapName.Len() )
+ printf("MapName %s\n", sMapName.GetBuffer());
+// sReturn+= ByteString("MapName ") ;
+// sReturn+= sMapName ;
+// sReturn+= ByteString("\n") ;
+ if( aMap.size() < 1 ) return ByteString();
+ for( idbg = aMap.begin() ; idbg != aMap.end(); ++idbg ){
+ ByteString a( idbg->first );
+ ByteString b( idbg->second );
+ printf("[%s]= %s",a.GetBuffer(),b.GetBuffer());
+/* sReturn+= ByteString("[") ;
+ sReturn+= a ;
+ sReturn+= ByteString("]= ") ;
+ sReturn+= b ;
+ sReturn+= ByteString("\n") ;*/
+ printf("\n");
+ }
+ printf("\n");
+ //sReturn+= "\n" ;
+ return sReturn;
+}
/*****************************************************************************/
USHORT Export::GetLangByIsoLang( const ByteString &rIsoLang )
/*****************************************************************************/
@@ -398,6 +433,10 @@ void Export::FillInFallbacks( ResData *pResData )
FillInListFallbacks(
pResData->pStringList, sCur, nFallbackIndex );
+ if ( pResData->pPairedList )
+ FillInListFallbacks(
+ pResData->pPairedList, sCur, nFallbackIndex );
+
if ( pResData->pFilterList )
FillInListFallbacks(
pResData->pFilterList, sCur, nFallbackIndex );
@@ -422,8 +461,11 @@ void Export::FillInListFallbacks(
for ( ULONG i = 0; i < pList->Count(); i++ ) {
ExportListEntry *pEntry = pList->GetObject( i );
- if ( !( *pEntry )[ nSource ].Len())
+ if ( !( *pEntry )[ nSource ].Len()){
( *pEntry )[ nSource ] = ( *pEntry )[ nFallback ];
+ ByteString x = ( *pEntry )[ nSource ];
+ ByteString y = ( *pEntry )[ nFallback ];
+ }
}
}