summaryrefslogtreecommitdiff
path: root/transex3/source/export2.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 16:21:42 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 16:21:42 +0000
commit4376a1e9ef06cf8869c0110ee6c12fed439c7cc5 (patch)
tree2a870d211391470f9a557fda2c6ef30fdb74c3ce /transex3/source/export2.cxx
parent33786b7501fcf390db3e811cc7835c3b5c7fb0de (diff)
INTEGRATION: CWS warnings01 (1.31.8); FILE MERGED
2006/04/07 18:35:45 sb 1.31.8.6: RESYNC: (1.32-1.33); FILE MERGED 2006/03/09 19:26:52 ihi 1.31.8.5: #i57362# Warning free wntmsci10 2005/11/10 12:06:09 pl 1.31.8.4: #i53898# removed warnings 2005/11/07 17:22:28 pl 1.31.8.3: RESYNC: (1.31-1.32); FILE MERGED 2005/11/07 12:46:41 ihi 1.31.8.2: #i57362# Remove warnings 2005/10/21 12:56:02 pl 1.31.8.1: #i55991# removed warnings for linux platform
Diffstat (limited to 'transex3/source/export2.cxx')
-rw-r--r--transex3/source/export2.cxx54
1 files changed, 13 insertions, 41 deletions
diff --git a/transex3/source/export2.cxx b/transex3/source/export2.cxx
index fc68b15b34da..87ac3150f6c2 100644
--- a/transex3/source/export2.cxx
+++ b/transex3/source/export2.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: export2.cxx,v $
*
- * $Revision: 1.33 $
+ * $Revision: 1.34 $
*
- * last change: $Author: obo $ $Date: 2006-03-29 13:26:35 $
+ * last change: $Author: hr $ $Date: 2006-06-19 17:21:42 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -99,27 +99,11 @@ ByteString Export::sForcedLanguages;
ByteString Export::sIsoCode99;
/*****************************************************************************/
-
-/*****************************************************************************/
-USHORT Export::GetLangIndex( USHORT nLangId )
-/*****************************************************************************/
-{
- // removeme
- return 0xFFFF;
-}
-
-/*****************************************************************************/
-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++ ){
+ for( unsigned int x = 0; x < aList.Count() ; x++ ){
aEntry = (ExportListEntry*) aList.GetObject( x );
Export::DumpMap( l , *aEntry );
}
@@ -142,15 +126,6 @@ ByteString Export::DumpMap( ByteString& sMapName , ByteStringHashMap& aMap ){
return sReturn;
}
/*****************************************************************************/
-USHORT Export::GetLangByIsoLang( const ByteString &rIsoLang )
-/*****************************************************************************/
-{
- // removeme
- ByteString sLang( rIsoLang );
- sLang.ToUpperAscii();
- return 0xFFFF;
-}
-/*****************************************************************************/
void Export::SetLanguages( std::vector<ByteString> val ){
/*****************************************************************************/
aLanguages = val;
@@ -169,20 +144,12 @@ std::vector<ByteString> Export::GetForcedLanguages(){
std::vector<ByteString> Export::aLanguages = std::vector<ByteString>();
std::vector<ByteString> Export::aForcedLanguages = std::vector<ByteString>();
-/*****************************************************************************/
-ByteString Export::GetIsoLangByIndex( USHORT nIndex )
-/*****************************************************************************/
-{
-// remove me
- return "";
-}
/*****************************************************************************/
void Export::QuotHTML( ByteString &rString )
/*****************************************************************************/
{
ByteString sReturn;
- BOOL bBreak = FALSE;
for ( USHORT i = 0; i < rString.Len(); i++ ) {
ByteString sTemp = rString.Copy( i );
if ( sTemp.Search( "<Arg n=" ) == 0 ) {
@@ -237,7 +204,12 @@ void Export::RemoveUTF8ByteOrderMarker( ByteString &rString ){
bool Export::hasUTF8ByteOrderMarker( const ByteString &rString ){
// Byte order marker signature
- const char bom[ 3 ] = { 0xEF , 0xBB , 0xBF };
+
+ const unsigned char c1 = 0xEF;
+ const unsigned char c2 = 0xBB;
+ const unsigned char c3 = 0xBF;
+
+ const char bom[ 3 ] = { c1 , c2 , c3 };
return rString.Len() >= 3 &&
rString.GetChar( 0 ) == bom[ 0 ] &&
@@ -340,7 +312,7 @@ void Export::UnquotHTML( ByteString &rString )
}
rString = sReturn;
}
-bool Export::isAllowed( ByteString &sLanguage ){
+bool Export::isAllowed( const ByteString &sLanguage ){
// CAREFUL, ONLY MERGE SOURCE LANGUAGES IF YOUR KNOW WHAT YOU DO!!!
#ifdef MERGE_SOURCE_LANGUAGES
return true;
@@ -405,7 +377,7 @@ void Export::FillInFallbacks( ResData *pResData )
/*****************************************************************************/
{
ByteString sCur;
- for( long int n = 0; n < aLanguages.size(); n++ ){
+ for( unsigned int n = 0; n < aLanguages.size(); n++ ){
sCur = aLanguages[ n ];
if( isAllowed( sCur ) ){
//if( !sCur.EqualsIgnoreCaseAscii("de") && !sCur.EqualsIgnoreCaseAscii("en-US") ){
@@ -475,8 +447,8 @@ ByteString Export::GetTimeStamp()
char buf[20];
Time aTime;
- snprintf(buf, sizeof(buf), "%8d %02d:%02d:%02d", Date().GetDate(),
- aTime.GetHour(), aTime.GetMin(), aTime.GetSec());
+ snprintf(buf, sizeof(buf), "%8d %02d:%02d:%02d", int(Date().GetDate()),
+ int(aTime.GetHour()), int(aTime.GetMin()), int(aTime.GetSec()));
return ByteString(buf);
}