[openoffice] branch AOO42X updated: Fixed typos, removed whitespace

2022-09-09 Thread mseidel
This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO42X by this push:
 new 3adb8b6e02 Fixed typos, removed whitespace
3adb8b6e02 is described below

commit 3adb8b6e02d65ce05eb8800f296b8697d2f749ab
Author: mseidel 
AuthorDate: Fri Sep 9 22:40:52 2022 +0200

Fixed typos, removed whitespace

(cherry picked from commit a27c115a070e5f15bedb543d2a457c4589d7776c)
---
 main/l10ntools/source/file.cxx |   25 +-
 main/l10ntools/source/gsicheck.cxx | 1334 ++--
 main/l10ntools/source/utf8conv.cxx |   16 +-
 3 files changed, 687 insertions(+), 688 deletions(-)

diff --git a/main/l10ntools/source/file.cxx b/main/l10ntools/source/file.cxx
index 4f4d778f14..243dbedbf0 100644
--- a/main/l10ntools/source/file.cxx
+++ b/main/l10ntools/source/file.cxx
@@ -1,5 +1,5 @@
 /**
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -7,45 +7,44 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  */
 
 
 
-
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_l10ntools.hxx"
 #include 
 
 namespace transex
 {
-
+
 File::File( const rtl::OUString sFile )
 {
-sFileName = sFile;
+   sFileName = sFile;
 }
 
 File::File( const rtl::OUString sFullPath , const rtl::OUString sFile )
 {
-sFileName = sFile;
-sFullName = sFullPath;
+   sFileName = sFile;
+   sFullName = sFullPath;
 }
 
 bool File::lessFile ( const File& rKey1, const File& rKey2 )
 {
-rtl::OUString sName1( ( static_cast< File >( rKey1 ) ).getFileName() ); 
-rtl::OUString sName2( ( static_cast< File >( rKey2 ) ).getFileName() ); 
-
-return sName1.compareTo( sName2 ) < 0 ;
+   rtl::OUString sName1( ( static_cast< File >( rKey1 ) ).getFileName() );
+   rtl::OUString sName2( ( static_cast< File >( rKey2 ) ).getFileName() );
+
+   return sName1.compareTo( sName2 ) < 0 ;
 }
 
 }
diff --git a/main/l10ntools/source/gsicheck.cxx 
b/main/l10ntools/source/gsicheck.cxx
index d60d5974a9..70021a7838 100644
--- a/main/l10ntools/source/gsicheck.cxx
+++ b/main/l10ntools/source/gsicheck.cxx
@@ -1,5 +1,5 @@
 /**
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -7,16 +7,16 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  */
 
 
@@ -54,29 +54,29 @@ void PrintError( ByteString aMsg, ByteString aPrefix,
ByteString aContext, sal_Bool bPrintContext, sal_uLong nLine, 
ByteString aUniqueId = ByteString() )
 /*/
 {
-PrintMessage( "Error:", aMsg, aPrefix, aContext, bPrintContext, nLine, 
aUniqueId );
+   PrintMessage( "Error:", aMsg, aPrefix, aContext, bPrintContext, nLine, 
aUniqueId );
 }
 
 sal_Bool LanguageOK( ByteString aLang )
 {
-if ( !aLang.Len() )
-return sal_False;
-
-if ( aLang.IsNumericAscii() )
-return sal_True;
-
-if ( aLang.GetTokenCount( '-' ) == 1 )
-return aLang.IsAlphaAscii() && aLang.IsLowerAscii();
-else if ( aLang.GetTokenCount( '-' ) == 2 )
-{
-ByteString aTok0( aLang.GetToken( 0, '-' ) );
-ByteString aTok1( aLang.GetToken( 1, '-' ) );
-return  aTok0.Len() && aTok0.IsAlphaAscii() && aTok0.IsLowerAscii()
- 

[openoffice] branch trunk updated: Fixed typos, removed whitespace

2022-09-09 Thread mseidel
This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/trunk by this push:
 new a27c115a07 Fixed typos, removed whitespace
a27c115a07 is described below

commit a27c115a070e5f15bedb543d2a457c4589d7776c
Author: mseidel 
AuthorDate: Fri Sep 9 22:40:52 2022 +0200

Fixed typos, removed whitespace
---
 main/l10ntools/source/file.cxx |   25 +-
 main/l10ntools/source/gsicheck.cxx | 1334 ++--
 main/l10ntools/source/utf8conv.cxx |   16 +-
 3 files changed, 687 insertions(+), 688 deletions(-)

diff --git a/main/l10ntools/source/file.cxx b/main/l10ntools/source/file.cxx
index 4f4d778f14..243dbedbf0 100644
--- a/main/l10ntools/source/file.cxx
+++ b/main/l10ntools/source/file.cxx
@@ -1,5 +1,5 @@
 /**
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -7,45 +7,44 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  */
 
 
 
-
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_l10ntools.hxx"
 #include 
 
 namespace transex
 {
-
+
 File::File( const rtl::OUString sFile )
 {
-sFileName = sFile;
+   sFileName = sFile;
 }
 
 File::File( const rtl::OUString sFullPath , const rtl::OUString sFile )
 {
-sFileName = sFile;
-sFullName = sFullPath;
+   sFileName = sFile;
+   sFullName = sFullPath;
 }
 
 bool File::lessFile ( const File& rKey1, const File& rKey2 )
 {
-rtl::OUString sName1( ( static_cast< File >( rKey1 ) ).getFileName() ); 
-rtl::OUString sName2( ( static_cast< File >( rKey2 ) ).getFileName() ); 
-
-return sName1.compareTo( sName2 ) < 0 ;
+   rtl::OUString sName1( ( static_cast< File >( rKey1 ) ).getFileName() );
+   rtl::OUString sName2( ( static_cast< File >( rKey2 ) ).getFileName() );
+
+   return sName1.compareTo( sName2 ) < 0 ;
 }
 
 }
diff --git a/main/l10ntools/source/gsicheck.cxx 
b/main/l10ntools/source/gsicheck.cxx
index d60d5974a9..70021a7838 100644
--- a/main/l10ntools/source/gsicheck.cxx
+++ b/main/l10ntools/source/gsicheck.cxx
@@ -1,5 +1,5 @@
 /**
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -7,16 +7,16 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  */
 
 
@@ -54,29 +54,29 @@ void PrintError( ByteString aMsg, ByteString aPrefix,
ByteString aContext, sal_Bool bPrintContext, sal_uLong nLine, 
ByteString aUniqueId = ByteString() )
 /*/
 {
-PrintMessage( "Error:", aMsg, aPrefix, aContext, bPrintContext, nLine, 
aUniqueId );
+   PrintMessage( "Error:", aMsg, aPrefix, aContext, bPrintContext, nLine, 
aUniqueId );
 }
 
 sal_Bool LanguageOK( ByteString aLang )
 {
-if ( !aLang.Len() )
-return sal_False;
-
-if ( aLang.IsNumericAscii() )
-return sal_True;
-
-if ( aLang.GetTokenCount( '-' ) == 1 )
-return aLang.IsAlphaAscii() && aLang.IsLowerAscii();
-else if ( aLang.GetTokenCount( '-' ) == 2 )
-{
-ByteString aTok0( aLang.GetToken( 0, '-' ) );
-ByteString aTok1( aLang.GetToken( 1, '-' ) );
-return  aTok0.Len() && aTok0.IsAlphaAscii() && aTok0.IsLowerAscii()
- && aTok1.Len() && aTok1.IsAlphaAscii() && aTok1.IsUpperAscii()
- &&