[Libreoffice-commits] core.git: compilerplugins/clang i18npool/inc i18npool/source i18nutil/source include/i18nutil

Noel Grandin noel.grandin at collabora.co.uk
Wed Oct 4 06:39:39 UTC 2017


 compilerplugins/clang/fpcomparison.cxx                                  |    3 +
 i18npool/inc/breakiteratorImpl.hxx                                      |   22 +++----
 i18npool/inc/breakiterator_cjk.hxx                                      |   15 ++---
 i18npool/inc/breakiterator_ctl.hxx                                      |   13 ++--
 i18npool/inc/breakiterator_th.hxx                                       |    4 -
 i18npool/inc/breakiterator_unicode.hxx                                  |   15 ++---
 i18npool/inc/bullet.h                                                   |    4 -
 i18npool/inc/calendarImpl.hxx                                           |   20 +++---
 i18npool/inc/calendar_gregorian.hxx                                     |   24 ++++----
 i18npool/inc/calendar_hijri.hxx                                         |    4 -
 i18npool/inc/calendar_jewish.hxx                                        |    4 -
 i18npool/inc/cclass_unicode.hxx                                         |   14 ++--
 i18npool/inc/chaptercollator.hxx                                        |    6 +-
 i18npool/inc/characterclassificationImpl.hxx                            |   10 +--
 i18npool/inc/chartonum.hxx                                              |    4 -
 i18npool/inc/collatorImpl.hxx                                           |   29 +++++-----
 i18npool/inc/collator_unicode.hxx                                       |   14 ++--
 i18npool/inc/defaultnumberingprovider.hxx                               |    6 +-
 i18npool/inc/indexentrysupplier.hxx                                     |    4 -
 i18npool/inc/indexentrysupplier_asian.hxx                               |    4 -
 i18npool/inc/indexentrysupplier_common.hxx                              |    4 -
 i18npool/inc/indexentrysupplier_default.hxx                             |    4 -
 i18npool/inc/indexentrysupplier_ja_phonetic.hxx                         |    4 -
 i18npool/inc/inputsequencechecker.hxx                                   |    4 -
 i18npool/inc/inputsequencechecker_hi.hxx                                |    7 --
 i18npool/inc/inputsequencechecker_th.hxx                                |    4 -
 i18npool/inc/localedata.hxx                                             |   28 ++++-----
 i18npool/inc/nativenumbersupplier.hxx                                   |    4 -
 i18npool/inc/numtochar.hxx                                              |    4 -
 i18npool/inc/numtotext_cjk.hxx                                          |    4 -
 i18npool/inc/ordinalsuffix.hxx                                          |    8 +-
 i18npool/inc/textToPronounce_zh.hxx                                     |    4 -
 i18npool/inc/textconversion.hxx                                         |    7 --
 i18npool/inc/textconversionImpl.hxx                                     |    7 --
 i18npool/inc/texttonum.hxx                                              |    4 -
 i18npool/inc/transliterationImpl.hxx                                    |   10 +--
 i18npool/inc/transliteration_Ignore.hxx                                 |    6 +-
 i18npool/inc/transliteration_Numeric.hxx                                |    4 -
 i18npool/inc/transliteration_OneToOne.hxx                               |    6 +-
 i18npool/inc/transliteration_body.hxx                                   |    4 -
 i18npool/inc/transliteration_caseignore.hxx                             |    6 +-
 i18npool/inc/transliteration_commonclass.hxx                            |    8 +-
 i18npool/inc/wtt.h                                                      |    4 -
 i18npool/inc/xdictionary.hxx                                            |   22 +++----
 i18npool/source/breakiterator/breakiteratorImpl.cxx                     |    8 +-
 i18npool/source/breakiterator/breakiterator_cjk.cxx                     |   15 ++---
 i18npool/source/breakiterator/breakiterator_ctl.cxx                     |    6 +-
 i18npool/source/breakiterator/breakiterator_th.cxx                      |    4 -
 i18npool/source/breakiterator/breakiterator_unicode.cxx                 |    7 +-
 i18npool/source/breakiterator/xdictionary.cxx                           |    8 +-
 i18npool/source/calendar/calendarImpl.cxx                               |    5 +
 i18npool/source/calendar/calendar_gregorian.cxx                         |    5 +
 i18npool/source/calendar/calendar_hijri.cxx                             |    5 +
 i18npool/source/calendar/calendar_jewish.cxx                            |    5 +
 i18npool/source/characterclassification/cclass_unicode.cxx              |    8 +-
 i18npool/source/characterclassification/cclass_unicode_parser.cxx       |    7 +-
 i18npool/source/characterclassification/characterclassificationImpl.cxx |    9 +--
 i18npool/source/collator/chaptercollator.cxx                            |    3 +
 i18npool/source/collator/collatorImpl.cxx                               |    7 +-
 i18npool/source/collator/collator_unicode.cxx                           |    5 +
 i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx   |    7 +-
 i18npool/source/indexentry/indexentrysupplier.cxx                       |    4 -
 i18npool/source/indexentry/indexentrysupplier_asian.cxx                 |    6 +-
 i18npool/source/indexentry/indexentrysupplier_common.cxx                |    4 -
 i18npool/source/indexentry/indexentrysupplier_default.cxx               |    6 +-
 i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx           |   14 ++--
 i18npool/source/inputchecker/inputsequencechecker.cxx                   |   11 ++-
 i18npool/source/inputchecker/inputsequencechecker_hi.cxx                |    7 --
 i18npool/source/inputchecker/inputsequencechecker_th.cxx                |    4 -
 i18npool/source/localedata/localedata.cxx                               |    5 +
 i18npool/source/nativenumber/data/numberchar.h                          |    4 -
 i18npool/source/nativenumber/nativenumbersupplier.cxx                   |    7 +-
 i18npool/source/ordinalsuffix/ordinalsuffix.cxx                         |    6 +-
 i18npool/source/registerservices/registerservices.cxx                   |    4 -
 i18npool/source/textconversion/genconv_dict.cxx                         |    6 +-
 i18npool/source/textconversion/textconversion.cxx                       |    4 -
 i18npool/source/textconversion/textconversionImpl.cxx                   |    7 +-
 i18npool/source/textconversion/textconversion_ko.cxx                    |    4 -
 i18npool/source/textconversion/textconversion_zh.cxx                    |    4 -
 i18npool/source/transliteration/chartonum.cxx                           |    4 -
 i18npool/source/transliteration/fullwidthToHalfwidth.cxx                |   23 ++++---
 i18npool/source/transliteration/halfwidthToFullwidth.cxx                |   16 ++---
 i18npool/source/transliteration/hiraganaToKatakana.cxx                  |    4 -
 i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx                    |    4 -
 i18npool/source/transliteration/ignoreDiacritics_CTL.cxx                |    4 -
 i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx                  |    4 -
 i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx       |    8 +-
 i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx           |    8 +-
 i18npool/source/transliteration/ignoreKana.cxx                          |    6 +-
 i18npool/source/transliteration/ignoreKashida_CTL.cxx                   |    4 -
 i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx        |    4 -
 i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx               |    4 -
 i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx               |    4 -
 i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx      |    4 -
 i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx                    |    4 -
 i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx               |    8 +-
 i18npool/source/transliteration/ignoreSize_ja_JP.cxx                    |    4 -
 i18npool/source/transliteration/ignoreSpace_ja_JP.cxx                   |    8 +-
 i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx                    |    4 -
 i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx         |    4 -
 i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx        |    8 +-
 i18npool/source/transliteration/ignoreWidth.cxx                         |    6 +-
 i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx                    |    4 -
 i18npool/source/transliteration/katakanaToHiragana.cxx                  |    4 -
 i18npool/source/transliteration/largeToSmall_ja_JP.cxx                  |    8 +-
 i18npool/source/transliteration/numtochar.cxx                           |    4 -
 i18npool/source/transliteration/numtotext_cjk.cxx                       |    4 -
 i18npool/source/transliteration/smallToLarge_ja_JP.cxx                  |    8 +-
 i18npool/source/transliteration/textToPronounce_zh.cxx                  |    5 +
 i18npool/source/transliteration/texttonum.cxx                           |    4 -
 i18npool/source/transliteration/transliterationImpl.cxx                 |    7 +-
 i18npool/source/transliteration/transliteration_Ignore.cxx              |    5 +
 i18npool/source/transliteration/transliteration_Numeric.cxx             |    5 +
 i18npool/source/transliteration/transliteration_OneToOne.cxx            |    5 +
 i18npool/source/transliteration/transliteration_body.cxx                |   15 ++---
 i18npool/source/transliteration/transliteration_caseignore.cxx          |   13 ++--
 i18npool/source/transliteration/transliteration_commonclass.cxx         |    5 +
 i18nutil/source/utility/casefolding.cxx                                 |    4 -
 i18nutil/source/utility/casefolding_data.h                              |    4 -
 i18nutil/source/utility/oneToOneMapping.cxx                             |    4 -
 i18nutil/source/utility/widthfolding.cxx                                |    4 -
 i18nutil/source/utility/widthfolding_data.h                             |    4 -
 include/i18nutil/casefolding.hxx                                        |    4 -
 include/i18nutil/oneToOneMapping.hxx                                    |    4 -
 include/i18nutil/widthfolding.hxx                                       |    4 -
 125 files changed, 459 insertions(+), 423 deletions(-)

New commits:
commit 6ce77cac03123f2bf5c9b6698a3f80e32d7fbe85
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Tue Oct 3 14:16:24 2017 +0200

    move stuff in i18npool/i18nutil in own namespace
    
    instead of trying to share the css::i18n namespace, which is just very
    confusing and should be left to actual UNO artifacts
    
    Change-Id: I2f5c36bf1af9a2a98c4f997dd450d015e75ed3f6
    Reviewed-on: https://gerrit.libreoffice.org/43079
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/compilerplugins/clang/fpcomparison.cxx b/compilerplugins/clang/fpcomparison.cxx
index f1b833659c43..844116a9ccf5 100644
--- a/compilerplugins/clang/fpcomparison.cxx
+++ b/compilerplugins/clang/fpcomparison.cxx
@@ -119,6 +119,9 @@ bool FpComparison::ignore(FunctionDecl* function)
         || (dc.Function("lcl_getNANInsteadDBL_MIN").AnonymousNamespace()
             .GlobalNamespace())
             // chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
+        || dc.Function("compareSubstring").Class("ChapterCollator").Namespace("i18npool").GlobalNamespace()
+        || dc.Function("setDateTime").Class("Calendar_gregorian").Namespace("i18npool").GlobalNamespace()
+        || dc.Function("setLocalDateTime").Class("Calendar_gregorian").Namespace("i18npool").GlobalNamespace()
         //TODO:
         || dc.Function("ImpCheckCondition").Class("SvNumberformat").GlobalNamespace()
         || dc.Function("GetTimeFormat").Class("SvNumberFormatter").GlobalNamespace()
diff --git a/i18npool/inc/breakiteratorImpl.hxx b/i18npool/inc/breakiteratorImpl.hxx
index 8ae8d254d9b7..a357db248712 100644
--- a/i18npool/inc/breakiteratorImpl.hxx
+++ b/i18npool/inc/breakiteratorImpl.hxx
@@ -34,14 +34,14 @@
 
 #include <vector>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class BreakIterator
 
 class BreakIteratorImpl : public cppu::WeakImplHelper
 <
-    XBreakIterator,
+    css::i18n::XBreakIterator,
     css::lang::XServiceInfo
 >
 {
@@ -57,11 +57,11 @@ public:
         const css::lang::Locale& nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount,
         sal_Int32& nDone ) override;
 
-    virtual Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos,
+    virtual css::i18n::Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos,
         const css::lang::Locale& nLocale, sal_Int16 WordType) override;
-    virtual Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos,
+    virtual css::i18n::Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos,
         const css::lang::Locale& nLocale, sal_Int16 WordType) override;
-    virtual Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos,
+    virtual css::i18n::Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos,
         const css::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection ) override;
 
     virtual sal_Bool SAL_CALL isBeginWord( const OUString& Text, sal_Int32 nPos,
@@ -76,9 +76,10 @@ public:
     virtual sal_Int32 SAL_CALL endOfSentence( const OUString& Text, sal_Int32 nStartPos,
         const css::lang::Locale& nLocale ) override;
 
-    virtual LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos,
+    virtual css::i18n::LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos,
         const css::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
-        const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions ) override;
+        const css::i18n::LineBreakHyphenationOptions& hOptions,
+        const css::i18n::LineBreakUserOptions& bOptions ) override;
 
     virtual sal_Int16 SAL_CALL getScriptType( const OUString& Text, sal_Int32 nPos ) override;
     virtual sal_Int32 SAL_CALL beginOfScript( const OUString& Text, sal_Int32 nStartPos,
@@ -106,7 +107,7 @@ public:
 
     static sal_Int16 SAL_CALL getScriptClass(sal_uInt32 currentChar);
 protected:
-    Boundary result; // for word break iterator
+    css::i18n::Boundary result; // for word break iterator
 
 private:
 
@@ -127,10 +128,7 @@ private:
 
 };
 
-} // i18n
-} // star
-} // sun
-} // com
+} // i18npool
 
 
 #endif // INCLUDED_I18NPOOL_INC_BREAKITERATORIMPL_HXX
diff --git a/i18npool/inc/breakiterator_cjk.hxx b/i18npool/inc/breakiterator_cjk.hxx
index 1ec97dc7fae8..61f3f5424f14 100644
--- a/i18npool/inc/breakiterator_cjk.hxx
+++ b/i18npool/inc/breakiterator_cjk.hxx
@@ -24,7 +24,7 @@
 
 #include <memory>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 //  class BreakIterator_CJK
 
@@ -33,15 +33,16 @@ class BreakIterator_CJK : public BreakIterator_Unicode
 public:
     BreakIterator_CJK();
 
-    Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos,
+    css::i18n::Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos,
             const css::lang::Locale& nLocale, sal_Int16 WordType) override;
-    Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos,
+    css::i18n::Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos,
             const css::lang::Locale& nLocale, sal_Int16 WordType) override;
-    Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos,
+    css::i18n::Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos,
             const css::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection ) override;
-    LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos,
+    css::i18n::LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos,
         const css::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
-        const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions ) override;
+        const css::i18n::LineBreakHyphenationOptions& hOptions,
+        const css::i18n::LineBreakUserOptions& bOptions ) override;
 
 protected:
     std::unique_ptr<xdictionary> m_xDict;
@@ -61,7 +62,7 @@ BREAKITERATOR_CJK( ko )
 
 #undef BREAKITERATOR__CJK
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_BREAKITERATOR_CJK_HXX
 
diff --git a/i18npool/inc/breakiterator_ctl.hxx b/i18npool/inc/breakiterator_ctl.hxx
index 24fec512af72..747de34c64e7 100644
--- a/i18npool/inc/breakiterator_ctl.hxx
+++ b/i18npool/inc/breakiterator_ctl.hxx
@@ -22,7 +22,7 @@
 #include <breakiterator_unicode.hxx>
 #include <xdictionary.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class BreakIterator_CTL
@@ -33,14 +33,15 @@ public:
     BreakIterator_CTL();
     virtual ~BreakIterator_CTL() override;
     virtual sal_Int32 SAL_CALL previousCharacters(const OUString& text, sal_Int32 start,
-        const lang::Locale& nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count,
+        const css::lang::Locale& nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count,
         sal_Int32& nDone) override;
     virtual sal_Int32 SAL_CALL nextCharacters(const OUString& text, sal_Int32 start,
-        const lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count,
+        const css::lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count,
         sal_Int32& nDone) override;
-    virtual LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos,
+    virtual css::i18n::LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos,
         const css::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
-        const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions ) override;
+        const css::i18n::LineBreakHyphenationOptions& hOptions,
+        const css::i18n::LineBreakUserOptions& bOptions ) override;
 protected:
     OUString cachedText; // for cell index
     sal_Int32* nextCellIndex;
@@ -51,7 +52,7 @@ protected:
     virtual void SAL_CALL makeIndex(const OUString& text, sal_Int32 pos);
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/breakiterator_th.hxx b/i18npool/inc/breakiterator_th.hxx
index 5e2eddca019c..b43c6d9fd958 100644
--- a/i18npool/inc/breakiterator_th.hxx
+++ b/i18npool/inc/breakiterator_th.hxx
@@ -20,7 +20,7 @@
 #define INCLUDED_I18NPOOL_INC_BREAKITERATOR_TH_HXX
 #include <breakiterator_ctl.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class BreakIterator_th
@@ -35,7 +35,7 @@ protected:
     void SAL_CALL makeIndex(const OUString& text, sal_Int32 pos) override;
 };
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_BREAKITERATOR_TH_HXX
 
diff --git a/i18npool/inc/breakiterator_unicode.hxx b/i18npool/inc/breakiterator_unicode.hxx
index c9e644e31f42..1dc60cafbe69 100644
--- a/i18npool/inc/breakiterator_unicode.hxx
+++ b/i18npool/inc/breakiterator_unicode.hxx
@@ -25,7 +25,7 @@
 #include <memory>
 #include <unordered_map>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #define LOAD_CHARACTER_BREAKITERATOR    0
 #define LOAD_WORD_BREAKITERATOR         1
@@ -48,11 +48,11 @@ public:
         const css::lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount,
         sal_Int32& nDone ) override;
 
-    virtual Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos,
+    virtual css::i18n::Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos,
         const css::lang::Locale& nLocale, sal_Int16 WordType) override;
-    virtual Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos,
+    virtual css::i18n::Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos,
         const css::lang::Locale& nLocale, sal_Int16 WordType) override;
-    virtual Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos,
+    virtual css::i18n::Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos,
         const css::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection ) override;
 
     virtual sal_Int32 SAL_CALL beginOfSentence( const OUString& Text, sal_Int32 nStartPos,
@@ -60,9 +60,10 @@ public:
     virtual sal_Int32 SAL_CALL endOfSentence( const OUString& Text, sal_Int32 nStartPos,
         const css::lang::Locale& nLocale ) override;
 
-    virtual LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos,
+    virtual css::i18n::LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos,
         const css::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
-        const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions ) override;
+        const css::i18n::LineBreakHyphenationOptions& hOptions,
+        const css::i18n::LineBreakUserOptions& bOptions ) override;
 
     //XServiceInfo
     virtual OUString SAL_CALL getImplementationName() override;
@@ -103,7 +104,7 @@ public:
     typedef std::unordered_map< OString, std::shared_ptr< BI_ValueData >, OStringHash > BIMap;
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/bullet.h b/i18npool/inc/bullet.h
index c1f144326df5..9852625b09c0 100644
--- a/i18npool/inc/bullet.h
+++ b/i18npool/inc/bullet.h
@@ -17,7 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 static const sal_Unicode table_AIUFullWidth_ja_JP[] = {
     0x30A2, // KATAKANA LETTER A
@@ -320,6 +320,6 @@ static const sal_Unicode table_DiZi_zh[] = {
     0x5b50,0x4e11,0x5bc5,0x536f,0x8fb0,0x5df3,0x5348,0x672a,0x7533,0x9149,0x620c,0x4ea5
 };
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/inc/calendarImpl.hxx b/i18npool/inc/calendarImpl.hxx
index ce0b9f66d2b0..aec643dcd59e 100644
--- a/i18npool/inc/calendarImpl.hxx
+++ b/i18npool/inc/calendarImpl.hxx
@@ -32,7 +32,7 @@
 //  class CalendarImpl
 
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class CalendarImpl : public cppu::WeakImplHelper
 <
@@ -55,7 +55,7 @@ public:
     // Methods
     virtual void SAL_CALL loadDefaultCalendar(const css::lang::Locale& rLocale) override;
     virtual void SAL_CALL loadCalendar(const OUString& uniqueID, const css::lang::Locale& rLocale) override;
-    virtual Calendar SAL_CALL getLoadedCalendar() override;
+    virtual css::i18n::Calendar SAL_CALL getLoadedCalendar() override;
     virtual css::uno::Sequence < OUString > SAL_CALL getAllCalendars(const css::lang::Locale& rLocale) override;
     virtual OUString SAL_CALL getUniqueID() override;
     virtual void SAL_CALL setDateTime(double fTimeInDays) override;
@@ -70,19 +70,19 @@ public:
     virtual sal_Int16 SAL_CALL getMinimumNumberOfDaysForFirstWeek() override;
     virtual sal_Int16 SAL_CALL getNumberOfMonthsInYear() override;
     virtual sal_Int16 SAL_CALL getNumberOfDaysInWeek() override;
-    virtual css::uno::Sequence < CalendarItem > SAL_CALL getMonths() override;
-    virtual css::uno::Sequence < CalendarItem > SAL_CALL getDays() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL getMonths() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL getDays() override;
     virtual OUString SAL_CALL getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType) override;
 
     // Methods in XExtendedCalendar
     virtual OUString SAL_CALL getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode ) override;
 
     // XCalendar3
-    virtual Calendar2 SAL_CALL getLoadedCalendar2() override;
-    virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getDays2() override;
-    virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getMonths2() override;
-    virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getGenitiveMonths2() override;
-    virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getPartitiveMonths2() override;
+    virtual css::i18n::Calendar2 SAL_CALL getLoadedCalendar2() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getDays2() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getMonths2() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getGenitiveMonths2() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getPartitiveMonths2() override;
 
     // XCalendar4
     virtual void SAL_CALL setLocalDateTime(double TimeInDays) override;
@@ -105,7 +105,7 @@ private:
     css::uno::Reference < css::i18n::XCalendar4 >       xCalendar;
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/calendar_gregorian.hxx b/i18npool/inc/calendar_gregorian.hxx
index a62f93da542b..15a591f37429 100644
--- a/i18npool/inc/calendar_gregorian.hxx
+++ b/i18npool/inc/calendar_gregorian.hxx
@@ -31,7 +31,7 @@
 //  class Calendar_gregorian
 
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 const sal_uInt8 kDisplayEraForcedLongYear = 0x01;
 
@@ -42,7 +42,7 @@ struct Era {
     sal_uInt8 flags;
 };
 
-const sal_Int16 FIELD_INDEX_COUNT = CalendarFieldIndex::FIELD_COUNT2;
+const sal_Int16 FIELD_INDEX_COUNT = css::i18n::CalendarFieldIndex::FIELD_COUNT2;
 
 class Calendar_gregorian : public CalendarImpl
 {
@@ -66,7 +66,7 @@ public:
     virtual sal_Int16 SAL_CALL getValue(sal_Int16 nFieldIndex) override;
     virtual void SAL_CALL addValue(sal_Int16 nFieldIndex, sal_Int32 nAmount) override;
     virtual sal_Bool SAL_CALL isValid() override;
-    virtual Calendar SAL_CALL getLoadedCalendar() override;
+    virtual css::i18n:: Calendar SAL_CALL getLoadedCalendar() override;
     virtual OUString SAL_CALL getUniqueID() override;
     virtual sal_Int16 SAL_CALL getFirstDayOfWeek() override;
     virtual void SAL_CALL setFirstDayOfWeek(sal_Int16 nDay) override;
@@ -74,19 +74,19 @@ public:
     virtual sal_Int16 SAL_CALL getMinimumNumberOfDaysForFirstWeek() override;
     virtual sal_Int16 SAL_CALL getNumberOfMonthsInYear() override;
     virtual sal_Int16 SAL_CALL getNumberOfDaysInWeek() override;
-    virtual css::uno::Sequence < CalendarItem > SAL_CALL getMonths() override;
-    virtual css::uno::Sequence < CalendarItem > SAL_CALL getDays() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL getMonths() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL getDays() override;
     virtual OUString SAL_CALL getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType) override;
 
     // Methods in XExtendedCalendar
     virtual OUString SAL_CALL getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode ) override;
 
     // XCalendar3
-    virtual Calendar2 SAL_CALL getLoadedCalendar2() override;
-    virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getDays2() override;
-    virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getMonths2() override;
-    virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getGenitiveMonths2() override;
-    virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getPartitiveMonths2() override;
+    virtual css::i18n::Calendar2 SAL_CALL getLoadedCalendar2() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getDays2() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getMonths2() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getGenitiveMonths2() override;
+    virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getPartitiveMonths2() override;
 
     // XCalendar4
     virtual void SAL_CALL setLocalDateTime(double TimeInDays) override;
@@ -118,7 +118,7 @@ protected:
     OUString getDisplayStringImpl( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode, bool bEraMode );
 
 private:
-    Calendar2 aCalendar;
+    css::i18n::Calendar2 aCalendar;
 
     /** Submit fieldSetValue array according to fieldSet.
 
@@ -187,7 +187,7 @@ public:
     virtual OUString SAL_CALL getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode ) override;
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/calendar_hijri.hxx b/i18npool/inc/calendar_hijri.hxx
index 71f96767c089..31e2fc6d6bfc 100644
--- a/i18npool/inc/calendar_hijri.hxx
+++ b/i18npool/inc/calendar_hijri.hxx
@@ -25,7 +25,7 @@
 //  class Calendar_hijri
 
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class Calendar_hijri : public Calendar_gregorian
 {
@@ -70,7 +70,7 @@ private:
     static double getJulianDay(sal_Int32 day, sal_Int32 month, sal_Int32 year);
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/calendar_jewish.hxx b/i18npool/inc/calendar_jewish.hxx
index db2ec2b1a8aa..91343e3ebb57 100644
--- a/i18npool/inc/calendar_jewish.hxx
+++ b/i18npool/inc/calendar_jewish.hxx
@@ -25,7 +25,7 @@
 //  class Calendar_jewish
 
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class Calendar_jewish : public Calendar_gregorian
 {
@@ -41,7 +41,7 @@ protected:
     void mapFromGregorian() override;
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/cclass_unicode.hxx b/i18npool/inc/cclass_unicode.hxx
index 287df8e69170..bfa80c169ee0 100644
--- a/i18npool/inc/cclass_unicode.hxx
+++ b/i18npool/inc/cclass_unicode.hxx
@@ -60,9 +60,9 @@ namespace o3tl {
 }
 
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
-class cclass_Unicode : public cppu::WeakImplHelper < XCharacterClassification, css::lang::XServiceInfo >
+class cclass_Unicode : public cppu::WeakImplHelper < css::i18n::XCharacterClassification, css::lang::XServiceInfo >
 {
 public:
     cclass_Unicode(const css::uno::Reference < css::uno::XComponentContext >& rxContext );
@@ -81,10 +81,10 @@ public:
         const css::lang::Locale& rLocale ) override;
     virtual sal_Int32 SAL_CALL getStringType( const OUString& text, sal_Int32 nPos, sal_Int32 nCount,
         const css::lang::Locale& rLocale ) override;
-    virtual ParseResult SAL_CALL parseAnyToken( const OUString& Text, sal_Int32 nPos,
+    virtual css::i18n::ParseResult SAL_CALL parseAnyToken( const OUString& Text, sal_Int32 nPos,
         const css::lang::Locale& rLocale, sal_Int32 nStartCharFlags, const OUString& userDefinedCharactersStart,
         sal_Int32 nContCharFlags, const OUString& userDefinedCharactersCont ) override;
-    virtual ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType, const OUString& Text,
+    virtual css::i18n::ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType, const OUString& Text,
         sal_Int32 nPos, const css::lang::Locale& rLocale, sal_Int32 nStartCharFlags,
         const OUString& userDefinedCharactersStart, sal_Int32 nContCharFlags,
         const OUString& userDefinedCharactersCont ) override;
@@ -126,7 +126,7 @@ private:
 
     /// used for parser only
     css::lang::Locale    aParserLocale;
-    css::uno::Reference < XLocaleData4 > mxLocaleData;
+    css::uno::Reference < css::i18n::XLocaleData4 > mxLocaleData;
     css::uno::Reference < css::i18n::XNativeNumberSupplier > xNatNumSup;
     OUString             aStartChars;
     OUString             aContChars;
@@ -168,7 +168,7 @@ private:
     void destroyParserTable();
 
     /// Parse a text.
-    void parseText( ParseResult& r, const OUString& rText, sal_Int32 nPos,
+    void parseText( css::i18n::ParseResult& r, const OUString& rText, sal_Int32 nPos,
         sal_Int32 nTokenType = 0xffffffff );
 
     /// Setup International class, new'ed only if different from existing.
@@ -179,7 +179,7 @@ private:
 
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/chaptercollator.hxx b/i18npool/inc/chaptercollator.hxx
index ba890d5d3b6a..0f75860137d0 100644
--- a/i18npool/inc/chaptercollator.hxx
+++ b/i18npool/inc/chaptercollator.hxx
@@ -22,7 +22,7 @@
 #include <collatorImpl.hxx>
 #include <com/sun/star/i18n/XCharacterClassification.hpp>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 //      ----------------------------------------------------
 //      class ChapterCollator
@@ -46,10 +46,10 @@ public:
 
 private:
     // CharacterClassification Implementation
-    css::uno::Reference< XCharacterClassification > cclass;
+    css::uno::Reference< css::i18n::XCharacterClassification > cclass;
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/characterclassificationImpl.hxx b/i18npool/inc/characterclassificationImpl.hxx
index 659b34210f9c..290418152622 100644
--- a/i18npool/inc/characterclassificationImpl.hxx
+++ b/i18npool/inc/characterclassificationImpl.hxx
@@ -26,11 +26,11 @@
 #include <com/sun/star/lang/XServiceInfo.hpp>
 #include <com/sun/star/uno/XComponentContext.hpp>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class CharacterClassificationImpl : public cppu::WeakImplHelper
 <
-    XCharacterClassification,
+    css::i18n::XCharacterClassification,
     css::lang::XServiceInfo
 >
 {
@@ -52,11 +52,11 @@ public:
         const css::lang::Locale& rLocale ) override;
     virtual sal_Int32 SAL_CALL getStringType( const OUString& text, sal_Int32 nPos,
         sal_Int32 nCount, const css::lang::Locale& rLocale ) override;
-    virtual ParseResult SAL_CALL parseAnyToken( const OUString& Text, sal_Int32 nPos,
+    virtual css::i18n::ParseResult SAL_CALL parseAnyToken( const OUString& Text, sal_Int32 nPos,
         const css::lang::Locale& rLocale, sal_Int32 nStartCharFlags,
         const OUString& userDefinedCharactersStart, sal_Int32 nContCharFlags,
         const OUString& userDefinedCharactersCont ) override;
-    virtual ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType,
+    virtual css::i18n::ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType,
         const OUString& Text, sal_Int32 nPos, const css::lang::Locale& rLocale,
         sal_Int32 nStartCharFlags, const OUString& userDefinedCharactersStart,
         sal_Int32 nContCharFlags, const OUString& userDefinedCharactersCont ) override;
@@ -92,7 +92,7 @@ private:
 
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/chartonum.hxx b/i18npool/inc/chartonum.hxx
index 27107fda50c9..4824c1e505a3 100644
--- a/i18npool/inc/chartonum.hxx
+++ b/i18npool/inc/chartonum.hxx
@@ -22,7 +22,7 @@
 
 #include <transliteration_Numeric.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #define TRANSLITERATION_CHARTONUM( name ) \
 class CharToNum##name : public transliteration_Numeric \
@@ -48,7 +48,7 @@ TRANSLITERATION_CHARTONUM(_th)
 
 #undef TRANSLITERATION_CHARTONUM
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_CHARTONUM_HXX
 
diff --git a/i18npool/inc/collatorImpl.hxx b/i18npool/inc/collatorImpl.hxx
index 62f1e0a430dd..b6f9dd25f791 100644
--- a/i18npool/inc/collatorImpl.hxx
+++ b/i18npool/inc/collatorImpl.hxx
@@ -30,13 +30,14 @@
 
 #include <vector>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
+
 //      ----------------------------------------------------
 //      class CollatorImpl
 //      ----------------------------------------------------
 class CollatorImpl : public cppu::WeakImplHelper
 <
-    XCollator,
+    css::i18n::XCollator,
     css::lang::XServiceInfo
 >
 {
@@ -53,15 +54,15 @@ public:
     virtual sal_Int32 SAL_CALL compareString( const OUString& s1,
         const OUString& s2) override;
 
-    virtual sal_Int32 SAL_CALL loadDefaultCollator( const lang::Locale& rLocale,  sal_Int32 collatorOptions) override;
+    virtual sal_Int32 SAL_CALL loadDefaultCollator( const css::lang::Locale& rLocale,  sal_Int32 collatorOptions) override;
 
-    virtual sal_Int32 SAL_CALL loadCollatorAlgorithm(  const OUString& impl, const lang::Locale& rLocale,
+    virtual sal_Int32 SAL_CALL loadCollatorAlgorithm(  const OUString& impl, const css::lang::Locale& rLocale,
         sal_Int32 collatorOptions) override;
 
-    virtual void SAL_CALL loadCollatorAlgorithmWithEndUserOption( const OUString& impl, const lang::Locale& rLocale,
+    virtual void SAL_CALL loadCollatorAlgorithmWithEndUserOption( const OUString& impl, const css::lang::Locale& rLocale,
         const css::uno::Sequence< sal_Int32 >& collatorOptions) override;
 
-    virtual css::uno::Sequence< OUString > SAL_CALL listCollatorAlgorithms( const lang::Locale& rLocale ) override;
+    virtual css::uno::Sequence< OUString > SAL_CALL listCollatorAlgorithms( const css::lang::Locale& rLocale ) override;
 
     virtual css::uno::Sequence< sal_Int32 > SAL_CALL listCollatorOptions( const OUString& collatorAlgorithmName ) override;
 
@@ -71,16 +72,16 @@ public:
     virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
 
 protected:
-    lang::Locale nLocale;
+    css::lang::Locale nLocale;
 private:
     struct lookupTableItem {
-        lang::Locale aLocale;
+        css::lang::Locale aLocale;
         OUString algorithm;
         OUString service;
         css::uno::Reference < XCollator > xC;
-        lookupTableItem(const lang::Locale& rLocale, const OUString& _algorithm, const OUString& _service,
+        lookupTableItem(const css::lang::Locale& rLocale, const OUString& _algorithm, const OUString& _service,
                         css::uno::Reference < XCollator > const & _xC) : aLocale(rLocale), algorithm(_algorithm), service(_service), xC(_xC) {}
-        bool SAL_CALL equals(const lang::Locale& rLocale, const OUString& _algorithm) {
+        bool SAL_CALL equals(const css::lang::Locale& rLocale, const OUString& _algorithm) {
         return aLocale.Language == rLocale.Language &&
             aLocale.Country == rLocale.Country &&
             aLocale.Variant == rLocale.Variant &&
@@ -93,16 +94,16 @@ private:
     // Service Factory
     css::uno::Reference < css::uno::XComponentContext > m_xContext;
     // lang::Locale Data
-    css::uno::Reference < XLocaleData4 >                mxLocaleData;
+    css::uno::Reference < css::i18n::XLocaleData4 >     mxLocaleData;
 
     /// @throws css::uno::RuntimeException
-    bool SAL_CALL createCollator(const lang::Locale& rLocale, const OUString& serviceName,
+    bool SAL_CALL createCollator(const css::lang::Locale& rLocale, const OUString& serviceName,
         const OUString& rSortAlgorithm);
     /// @throws css::uno::RuntimeException
-    void SAL_CALL loadCachedCollator(const lang::Locale& rLocale, const OUString& rSortAlgorithm);
+    void SAL_CALL loadCachedCollator(const css::lang::Locale& rLocale, const OUString& rSortAlgorithm);
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/collator_unicode.hxx b/i18npool/inc/collator_unicode.hxx
index 3487b44b7600..1ec407517a56 100644
--- a/i18npool/inc/collator_unicode.hxx
+++ b/i18npool/inc/collator_unicode.hxx
@@ -30,9 +30,9 @@
 //      class Collator_Unicode
 //      ----------------------------------------------------
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
-class Collator_Unicode : public cppu::WeakImplHelper < XCollator, css::lang::XServiceInfo >
+class Collator_Unicode : public cppu::WeakImplHelper < css::i18n::XCollator, css::lang::XServiceInfo >
 {
 public:
     // Constructors
@@ -45,15 +45,15 @@ public:
 
     sal_Int32 SAL_CALL compareString( const OUString& s1, const OUString& s2) override;
 
-    sal_Int32 SAL_CALL loadCollatorAlgorithm( const OUString& impl, const lang::Locale& rLocale,
+    sal_Int32 SAL_CALL loadCollatorAlgorithm( const OUString& impl, const css::lang::Locale& rLocale,
         sal_Int32 collatorOptions) override;
 
 
     // following 4 methods are implemented in collatorImpl.
-    sal_Int32 SAL_CALL loadDefaultCollator( const lang::Locale&,  sal_Int32) override {throw css::uno::RuntimeException();}
-    void SAL_CALL loadCollatorAlgorithmWithEndUserOption( const OUString&, const lang::Locale&,
+    sal_Int32 SAL_CALL loadDefaultCollator( const css::lang::Locale&,  sal_Int32) override {throw css::uno::RuntimeException();}
+    void SAL_CALL loadCollatorAlgorithmWithEndUserOption( const OUString&, const css::lang::Locale&,
         const css::uno::Sequence< sal_Int32 >&) override {throw css::uno::RuntimeException();}
-    css::uno::Sequence< OUString > SAL_CALL listCollatorAlgorithms( const lang::Locale&) override {throw css::uno::RuntimeException();}
+    css::uno::Sequence< OUString > SAL_CALL listCollatorAlgorithms( const css::lang::Locale&) override {throw css::uno::RuntimeException();}
     css::uno::Sequence< sal_Int32 > SAL_CALL listCollatorOptions( const OUString& ) override {throw css::uno::RuntimeException();}
 
     //XServiceInfo
@@ -70,7 +70,7 @@ private:
 #endif
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/defaultnumberingprovider.hxx b/i18npool/inc/defaultnumberingprovider.hxx
index d487ec1c4914..966db83233a5 100644
--- a/i18npool/inc/defaultnumberingprovider.hxx
+++ b/i18npool/inc/defaultnumberingprovider.hxx
@@ -32,7 +32,7 @@
 
 #include <memory>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class DefaultNumberingProvider : public cppu::WeakImplHelper
 <
@@ -81,7 +81,9 @@ private:
     /// @throws css::uno::RuntimeException
     bool SAL_CALL isScriptFlagEnabled(const OUString& aName );
 };
-} } } }
+
+}
+
 
 #endif
 
diff --git a/i18npool/inc/indexentrysupplier.hxx b/i18npool/inc/indexentrysupplier.hxx
index 006b9fa47e87..4d8e33b76358 100644
--- a/i18npool/inc/indexentrysupplier.hxx
+++ b/i18npool/inc/indexentrysupplier.hxx
@@ -24,7 +24,7 @@
 #include <com/sun/star/lang/XServiceInfo.hpp>
 #include <com/sun/star/uno/XComponentContext.hpp>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class IndexEntrySupplier
@@ -87,7 +87,7 @@ protected:
     OUString          aSortAlgorithm;
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/indexentrysupplier_asian.hxx b/i18npool/inc/indexentrysupplier_asian.hxx
index 15194ac7a62c..fc2b52dcd82a 100644
--- a/i18npool/inc/indexentrysupplier_asian.hxx
+++ b/i18npool/inc/indexentrysupplier_asian.hxx
@@ -23,7 +23,7 @@
 #include <indexentrysupplier_common.hxx>
 #include <osl/module.h>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class IndexEntrySupplier_asian
@@ -51,7 +51,7 @@ private:
 #endif
 };
 
-} } } }
+}
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/inc/indexentrysupplier_common.hxx b/i18npool/inc/indexentrysupplier_common.hxx
index bdd042fe779b..65ae1b62f200 100644
--- a/i18npool/inc/indexentrysupplier_common.hxx
+++ b/i18npool/inc/indexentrysupplier_common.hxx
@@ -28,7 +28,7 @@
 
 #include <memory>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class IndexEntrySupplier_Common
@@ -91,7 +91,7 @@ protected:
         const OUString& PhoneticEntry, const css::lang::Locale& rLocale );
 };
 
-} } } }
+}
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/inc/indexentrysupplier_default.hxx b/i18npool/inc/indexentrysupplier_default.hxx
index 0de94706ac2f..c1c48bf3daf1 100644
--- a/i18npool/inc/indexentrysupplier_default.hxx
+++ b/i18npool/inc/indexentrysupplier_default.hxx
@@ -23,7 +23,7 @@
 
 #include <memory>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class Index;
 
@@ -101,7 +101,7 @@ public:
     sal_Int16 compare(sal_Unicode c1, sal_Unicode c2);
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/indexentrysupplier_ja_phonetic.hxx b/i18npool/inc/indexentrysupplier_ja_phonetic.hxx
index 7749c867253f..48ce3183da7d 100644
--- a/i18npool/inc/indexentrysupplier_ja_phonetic.hxx
+++ b/i18npool/inc/indexentrysupplier_ja_phonetic.hxx
@@ -22,7 +22,7 @@
 
 #include <indexentrysupplier_common.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class IndexEntrySupplier_ja_phonetic
@@ -59,7 +59,7 @@ INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_first_by_consonant )
 INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_last_by_syllable )
 INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_last_by_consonant )
 
-} } } }
+}
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/inc/inputsequencechecker.hxx b/i18npool/inc/inputsequencechecker.hxx
index b0ed20a14bd9..094113a8ca74 100644
--- a/i18npool/inc/inputsequencechecker.hxx
+++ b/i18npool/inc/inputsequencechecker.hxx
@@ -27,7 +27,7 @@
 
 #include <vector>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class InputSequenceCheckerImpl
@@ -73,7 +73,7 @@ private:
     static sal_Char* SAL_CALL getLanguageByScripType(sal_Unicode cChar, sal_Unicode nChar);
 };
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_INPUTSEQUENCECHECKER_HXX
 
diff --git a/i18npool/inc/inputsequencechecker_hi.hxx b/i18npool/inc/inputsequencechecker_hi.hxx
index 19918857498b..d87eaea5ebf1 100644
--- a/i18npool/inc/inputsequencechecker_hi.hxx
+++ b/i18npool/inc/inputsequencechecker_hi.hxx
@@ -21,10 +21,7 @@
 
 #include <inputsequencechecker.hxx>
 
-namespace com {
-namespace sun {
-namespace star {
-namespace i18n {
+namespace i18npool {
 
 
 //  class InputSequenceChecker_hi
@@ -42,7 +39,7 @@ public:
         sal_Unicode inputChar, sal_Int16 inputCheckMode) override;
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/inputsequencechecker_th.hxx b/i18npool/inc/inputsequencechecker_th.hxx
index e0ae2a9d689c..5b612f11ad07 100644
--- a/i18npool/inc/inputsequencechecker_th.hxx
+++ b/i18npool/inc/inputsequencechecker_th.hxx
@@ -21,7 +21,7 @@
 
 #include <inputsequencechecker.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class InputSequenceChecker_th
@@ -39,7 +39,7 @@ public:
         sal_Unicode inputChar, sal_Int16 inputCheckMode) override;
 };
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_INPUTSEQUENCECHECKER_TH_HXX
 
diff --git a/i18npool/inc/localedata.hxx b/i18npool/inc/localedata.hxx
index c89710cc49b3..503722f96c03 100644
--- a/i18npool/inc/localedata.hxx
+++ b/i18npool/inc/localedata.hxx
@@ -57,7 +57,7 @@
 
 struct LocaleDataLookupTableItem;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class LocaleDataImpl : public cppu::WeakImplHelper
 <
@@ -81,18 +81,18 @@ public:
         excluding the one obtained via getFirstLocaleServiceName() */
     static ::std::vector< OUString > getFallbackLocaleServiceNames( const css::lang::Locale & rLocale );
 
-    virtual LanguageCountryInfo SAL_CALL getLanguageCountryInfo( const css::lang::Locale& rLocale ) override;
-    virtual LocaleDataItem SAL_CALL getLocaleItem( const css::lang::Locale& rLocale ) override;
-    virtual css::uno::Sequence< Calendar2 > SAL_CALL getAllCalendars2( const css::lang::Locale& rLocale ) override;
-    virtual css::uno::Sequence< Calendar > SAL_CALL getAllCalendars( const css::lang::Locale& rLocale ) override;
-    virtual css::uno::Sequence< Currency > SAL_CALL getAllCurrencies( const css::lang::Locale& rLocale ) override;
-    virtual css::uno::Sequence< Currency2 > SAL_CALL getAllCurrencies2( const css::lang::Locale& rLocale ) override;
-    virtual css::uno::Sequence< FormatElement > SAL_CALL getAllFormats( const css::lang::Locale& rLocale ) override;
-    virtual css::uno::Sequence< Implementation > SAL_CALL getCollatorImplementations( const css::lang::Locale& rLocale ) override;
+    virtual css::i18n::LanguageCountryInfo SAL_CALL getLanguageCountryInfo( const css::lang::Locale& rLocale ) override;
+    virtual css::i18n::LocaleDataItem SAL_CALL getLocaleItem( const css::lang::Locale& rLocale ) override;
+    virtual css::uno::Sequence< css::i18n::Calendar2 > SAL_CALL getAllCalendars2( const css::lang::Locale& rLocale ) override;
+    virtual css::uno::Sequence< css::i18n::Calendar > SAL_CALL getAllCalendars( const css::lang::Locale& rLocale ) override;
+    virtual css::uno::Sequence< css::i18n::Currency > SAL_CALL getAllCurrencies( const css::lang::Locale& rLocale ) override;
+    virtual css::uno::Sequence< css::i18n::Currency2 > SAL_CALL getAllCurrencies2( const css::lang::Locale& rLocale ) override;
+    virtual css::uno::Sequence< css::i18n::FormatElement > SAL_CALL getAllFormats( const css::lang::Locale& rLocale ) override;
+    virtual css::uno::Sequence< css::i18n::Implementation > SAL_CALL getCollatorImplementations( const css::lang::Locale& rLocale ) override;
     /// @throws css::uno::RuntimeException
     OUString SAL_CALL getCollatorRuleByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm );
     virtual css::uno::Sequence< OUString > SAL_CALL getTransliterations( const css::lang::Locale& rLocale ) override;
-    virtual ForbiddenCharacters SAL_CALL getForbiddenCharacters( const css::lang::Locale& rLocale ) override;
+    virtual css::i18n::ForbiddenCharacters SAL_CALL getForbiddenCharacters( const css::lang::Locale& rLocale ) override;
     virtual css::uno::Sequence< OUString > SAL_CALL getReservedWord( const css::lang::Locale& rLocale ) override ;
     /// @throws css::uno::RuntimeException
     css::uno::Sequence< OUString > SAL_CALL getBreakIteratorRules( const css::lang::Locale& rLocale ) ;
@@ -101,9 +101,9 @@ public:
     virtual css::uno::Sequence< OUString > SAL_CALL getSearchOptions( const css::lang::Locale& rLocale ) override;
     virtual css::uno::Sequence< OUString > SAL_CALL getCollationOptions( const css::lang::Locale& rLocale ) override;
     /// @throws css::uno::RuntimeException
-    css::uno::Sequence< css::uno::Sequence< beans::PropertyValue > > SAL_CALL getContinuousNumberingLevels( const css::lang::Locale& rLocale );
+    css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > SAL_CALL getContinuousNumberingLevels( const css::lang::Locale& rLocale );
     /// @throws css::uno::RuntimeException
-    css::uno::Sequence< css::uno::Reference< container::XIndexAccess > > SAL_CALL getOutlineNumberingLevels( const css::lang::Locale& rLocale );
+    css::uno::Sequence< css::uno::Reference< css::container::XIndexAccess > > SAL_CALL getOutlineNumberingLevels( const css::lang::Locale& rLocale );
 
     // XLocaleData4
     virtual css::uno::Sequence< OUString > SAL_CALL getDateAcceptancePatterns( const css::lang::Locale& rLocale ) override;
@@ -118,7 +118,7 @@ public:
     /// @throws css::uno::RuntimeException
     OUString SAL_CALL getIndexModuleByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm );
     /// @throws css::uno::RuntimeException
-    css::uno::Sequence< UnicodeScript > SAL_CALL getUnicodeScripts( const css::lang::Locale& rLocale );
+    css::uno::Sequence< css::i18n::UnicodeScript > SAL_CALL getUnicodeScripts( const css::lang::Locale& rLocale );
     /// @throws css::uno::RuntimeException
     css::uno::Sequence< OUString > SAL_CALL getFollowPageWords( const css::lang::Locale& rLocale );
     /// @throws css::uno::RuntimeException
@@ -162,7 +162,7 @@ private:
 
 };
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_LOCALEDATA_HXX
 
diff --git a/i18npool/inc/nativenumbersupplier.hxx b/i18npool/inc/nativenumbersupplier.hxx
index b162c284bb0c..0fe10c4218d1 100644
--- a/i18npool/inc/nativenumbersupplier.hxx
+++ b/i18npool/inc/nativenumbersupplier.hxx
@@ -25,7 +25,7 @@
 #include <cppuhelper/implbase.hxx>
 #include <com/sun/star/lang/XServiceInfo.hpp>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 //      ----------------------------------------------------
 //      class NativeNumberSupplierService
@@ -71,7 +71,7 @@ private:
         bool useOffset;
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/numtochar.hxx b/i18npool/inc/numtochar.hxx
index f7dbd9207743..f53a5af713f8 100644
--- a/i18npool/inc/numtochar.hxx
+++ b/i18npool/inc/numtochar.hxx
@@ -22,7 +22,7 @@
 
 #include <transliteration_Numeric.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #define TRANSLITERATION_NUMTOCHAR( name ) \
 class NumToChar##name : public transliteration_Numeric \
@@ -49,7 +49,7 @@ TRANSLITERATION_NUMTOCHAR(Halfwidth)
 
 #undef TRANSLITERATION_NUMTOCHAR
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_NUMTOCHAR_HXX
 
diff --git a/i18npool/inc/numtotext_cjk.hxx b/i18npool/inc/numtotext_cjk.hxx
index 56aeebed4aac..dc4918adc32e 100644
--- a/i18npool/inc/numtotext_cjk.hxx
+++ b/i18npool/inc/numtotext_cjk.hxx
@@ -22,7 +22,7 @@
 
 #include <transliteration_Numeric.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #define TRANSLITERATION_NUMTOTEXT_CJK( name ) \
 class NumToText##name : public transliteration_Numeric \
@@ -64,7 +64,7 @@ TRANSLITERATION_NUMTOTEXT_CJK ( HangulCircledSyllable_ko )
 
 #undef TRANSLITERATION_NUMTOTEXT
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_NUMTOTEXT_CJK_HXX
 
diff --git a/i18npool/inc/ordinalsuffix.hxx b/i18npool/inc/ordinalsuffix.hxx
index a7758911c375..61dd4128a59f 100644
--- a/i18npool/inc/ordinalsuffix.hxx
+++ b/i18npool/inc/ordinalsuffix.hxx
@@ -25,12 +25,11 @@
 #include <com/sun/star/lang/XServiceInfo.hpp>
 #include <com/sun/star/lang/Locale.hpp>
 
-
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class OrdinalSuffixService : public cppu::WeakImplHelper
 <
-    XOrdinalSuffix,
+    css::i18n::XOrdinalSuffix,
     css::lang::XServiceInfo
 >
 {
@@ -47,7 +46,8 @@ class OrdinalSuffixService : public cppu::WeakImplHelper
         virtual css::uno::Sequence < OUString > SAL_CALL getSupportedServiceNames() override;
 
 };
-} } } }
+
+}
 
 #endif // INCLUDED_I18NPOOL_INC_ORDINALSUFFIX_HXX
 
diff --git a/i18npool/inc/textToPronounce_zh.hxx b/i18npool/inc/textToPronounce_zh.hxx
index fd880bc6e8d3..1a794fe7bbf6 100644
--- a/i18npool/inc/textToPronounce_zh.hxx
+++ b/i18npool/inc/textToPronounce_zh.hxx
@@ -22,7 +22,7 @@
 #include <transliteration_Ignore.hxx>
 #include <indexentrysupplier_asian.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class TextToPronounce_zh : public transliteration_Ignore
 {
@@ -68,7 +68,7 @@ TRANSLITERATION_TextToPronounce_zh( TextToChuyin_zh_TW)
 
 #undef TRANSLITERATION_TextToPronounce_zh
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/textconversion.hxx b/i18npool/inc/textconversion.hxx
index cca19aec5ca3..8b5c9fa9a20e 100644
--- a/i18npool/inc/textconversion.hxx
+++ b/i18npool/inc/textconversion.hxx
@@ -28,7 +28,7 @@
 #include <cppuhelper/implbase.hxx>
 #include <osl/module.h>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class TextConversionService
@@ -159,10 +159,7 @@ private:
         css::lang::Locale aLocale;
 };
 
-} // i18n
-} // star
-} // sun
-} // com
+} // i18npool
 
 #endif
 
diff --git a/i18npool/inc/textconversionImpl.hxx b/i18npool/inc/textconversionImpl.hxx
index b34429d6c253..43642ef97452 100644
--- a/i18npool/inc/textconversionImpl.hxx
+++ b/i18npool/inc/textconversionImpl.hxx
@@ -25,7 +25,7 @@
 #include <com/sun/star/uno/XComponentContext.hpp>
 #include <cppuhelper/implbase.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class TextConversion
@@ -72,10 +72,7 @@ private:
     void SAL_CALL getLocaleSpecificTextConversion( const css::lang::Locale& rLocale );
 };
 
-} // i18n
-} // star
-} // sun
-} // com
+} // i18npool
 
 
 #endif
diff --git a/i18npool/inc/texttonum.hxx b/i18npool/inc/texttonum.hxx
index ab570ec0b67e..b4980fdea848 100644
--- a/i18npool/inc/texttonum.hxx
+++ b/i18npool/inc/texttonum.hxx
@@ -22,7 +22,7 @@
 
 #include <transliteration_Numeric.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #define TRANSLITERATION_TEXTTONUM( name ) \
 class TextToNum##name : public transliteration_Numeric \
@@ -46,7 +46,7 @@ TRANSLITERATION_TEXTTONUM(KanjiLongTraditional_ja_JP)
 
 #undef TRANSLITERATION_TEXTTONUM
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_TEXTTONUM_HXX
 
diff --git a/i18npool/inc/transliterationImpl.hxx b/i18npool/inc/transliterationImpl.hxx
index 35c048efc951..c5e83b254885 100644
--- a/i18npool/inc/transliterationImpl.hxx
+++ b/i18npool/inc/transliterationImpl.hxx
@@ -26,7 +26,7 @@
 #include <com/sun/star/lang/XServiceInfo.hpp>
 #include <sal/types.h>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class TransliterationImpl : public cppu::WeakImplHelper
 <
@@ -44,8 +44,8 @@ public:
     virtual OUString SAL_CALL getName(  ) override ;
     virtual sal_Int16 SAL_CALL getType(  ) override ;
 
-    virtual void SAL_CALL loadModule( TransliterationModules modName, const css::lang::Locale& rLocale ) override ;
-    virtual void SAL_CALL loadModuleNew( const css::uno::Sequence< TransliterationModulesNew >& modName,
+    virtual void SAL_CALL loadModule( css::i18n::TransliterationModules modName, const css::lang::Locale& rLocale ) override ;
+    virtual void SAL_CALL loadModuleNew( const css::uno::Sequence< css::i18n::TransliterationModulesNew >& modName,
         const css::lang::Locale& rLocale ) override ;
     virtual void SAL_CALL loadModuleByImplName( const OUString& implName,
         const css::lang::Locale& rLocale ) override;
@@ -87,7 +87,7 @@ private:
     sal_Int16 numCascade;
     bool caseignoreOnly;
     css::uno::Reference< css::uno::XComponentContext > mxContext;
-    css::uno::Reference< XLocaleData4 > mxLocaledata;
+    css::uno::Reference< css::i18n::XLocaleData4 > mxLocaledata;
     css::uno::Reference< css::i18n::XExtendedTransliteration > caseignore;
 
     /// @throws css::uno::RuntimeException
@@ -106,7 +106,7 @@ private:
         sal_Int32 length, const sal_Int16 _nCascade);
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/transliteration_Ignore.hxx b/i18npool/inc/transliteration_Ignore.hxx
index 28929c746c06..b7179abae810 100644
--- a/i18npool/inc/transliteration_Ignore.hxx
+++ b/i18npool/inc/transliteration_Ignore.hxx
@@ -25,7 +25,7 @@
 
 typedef sal_Unicode (*TransFunc)(const sal_Unicode);
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class transliteration_Ignore : public transliteration_commonclass
 {
@@ -65,7 +65,7 @@ public:
 
 protected:
         TransFunc func;
-        oneToOneMapping *table;
+        i18nutil::oneToOneMapping *table;
         const Mapping *map;
 };
 
@@ -151,7 +151,7 @@ TRANSLITERATION_IGNORE(Size_ja_JP)
 
 #undef TRANSLITERATION_IGNORE
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_TRANSLITERATION_IGNORE_HXX
 
diff --git a/i18npool/inc/transliteration_Numeric.hxx b/i18npool/inc/transliteration_Numeric.hxx
index d8ae49cb3a7c..0a88f1c39d52 100644
--- a/i18npool/inc/transliteration_Numeric.hxx
+++ b/i18npool/inc/transliteration_Numeric.hxx
@@ -21,7 +21,7 @@
 
 #include <transliteration_commonclass.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class transliteration_Numeric : public transliteration_commonclass {
 public:
@@ -54,7 +54,7 @@ private:
                              css::uno::Sequence< sal_Int32 >& offset );
 };
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_TRANSLITERATION_NUMERIC_HXX
 
diff --git a/i18npool/inc/transliteration_OneToOne.hxx b/i18npool/inc/transliteration_OneToOne.hxx
index dce55fb6ef8d..db797be4fe7d 100644
--- a/i18npool/inc/transliteration_OneToOne.hxx
+++ b/i18npool/inc/transliteration_OneToOne.hxx
@@ -22,7 +22,7 @@
 #include <transliteration_commonclass.hxx>
 #include <i18nutil/oneToOneMapping.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 typedef sal_Unicode (*TransFunc)(const sal_Unicode);
 
@@ -50,7 +50,7 @@ public:
 
 protected:
         TransFunc func;
-        oneToOneMapping *table;
+        i18nutil::oneToOneMapping *table;
 };
 
 #define TRANSLITERATION_ONETOONE( name ) \
@@ -108,7 +108,7 @@ TRANSLITERATION_ONETOONE(smallToLarge_ja_JP)
 
 #undef TRANSLITERATION_ONETOONE
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_TRANSLITERATION_ONETOONE_HXX
 
diff --git a/i18npool/inc/transliteration_body.hxx b/i18npool/inc/transliteration_body.hxx
index c39ff58db308..851d7cf65ebf 100644
--- a/i18npool/inc/transliteration_body.hxx
+++ b/i18npool/inc/transliteration_body.hxx
@@ -22,7 +22,7 @@
 #include <transliteration_commonclass.hxx>
 #include <i18nutil/casefolding.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class Transliteration_body : public transliteration_commonclass
 {
@@ -96,7 +96,7 @@ public:
     virtual OUString SAL_CALL transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 >& offset  ) override;
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/transliteration_caseignore.hxx b/i18npool/inc/transliteration_caseignore.hxx
index dff9a94b7f63..4c028f40b528 100644
--- a/i18npool/inc/transliteration_caseignore.hxx
+++ b/i18npool/inc/transliteration_caseignore.hxx
@@ -21,7 +21,7 @@
 
 #include "transliteration_body.hxx"
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class Transliteration_caseignore: public Transliteration_body
 {
@@ -31,7 +31,7 @@ public:
     // Methods which are shared.
     sal_Int16 SAL_CALL getType() override;
 
-    void SAL_CALL loadModule( TransliterationModules modName, const css::lang::Locale& rLocale ) override;
+    void SAL_CALL loadModule( css::i18n::TransliterationModules modName, const css::lang::Locale& rLocale ) override;
 
     css::uno::Sequence< OUString > SAL_CALL transliterateRange(
         const OUString& str1, const OUString& str2 ) override;
@@ -57,7 +57,7 @@ private:
         const OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2);
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/inc/transliteration_commonclass.hxx b/i18npool/inc/transliteration_commonclass.hxx
index 0a6249b33714..ebf3dc4b60a4 100644
--- a/i18npool/inc/transliteration_commonclass.hxx
+++ b/i18npool/inc/transliteration_commonclass.hxx
@@ -26,7 +26,7 @@
 #include <rtl/ustrbuf.h>
 #include <rtl/ustring.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 class transliteration_commonclass : public cppu::WeakImplHelper<
                                                                   css::i18n::XExtendedTransliteration,
@@ -38,10 +38,10 @@ public:
 
         // Methods which are shared.
         void SAL_CALL
-        loadModule( TransliterationModules modName, const css::lang::Locale& rLocale ) override;
+        loadModule( css::i18n::TransliterationModules modName, const css::lang::Locale& rLocale ) override;
 
         void SAL_CALL
-        loadModuleNew( const css::uno::Sequence< TransliterationModulesNew >& modName, const css::lang::Locale& rLocale ) override;
+        loadModuleNew( const css::uno::Sequence< css::i18n::TransliterationModulesNew >& modName, const css::lang::Locale& rLocale ) override;
 
         void SAL_CALL
         loadModuleByImplName( const OUString& implName, const css::lang::Locale& rLocale ) override;
@@ -94,7 +94,7 @@ protected:
         bool useOffset;
 };
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_TRANSLITERATION_COMMONCLASS_HXX
 
diff --git a/i18npool/inc/wtt.h b/i18npool/inc/wtt.h
index d09c3d03a5e9..2e248f04b75b 100644
--- a/i18npool/inc/wtt.h
+++ b/i18npool/inc/wtt.h
@@ -19,7 +19,7 @@
 #ifndef INCLUDED_I18NPOOL_INC_WTT_H
 #define INCLUDED_I18NPOOL_INC_WTT_H
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 /*
  * Thai character type definition.
@@ -61,7 +61,7 @@ static const sal_uInt16 thaiCT[128] = {     // Thai character type
 
 #define getCharType(x) ((x >= 0x0E00 && x < 0x0E60) ? thaiCT[x - 0x0E00] : CT_NON)
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_INC_WTT_H
 
diff --git a/i18npool/inc/xdictionary.hxx b/i18npool/inc/xdictionary.hxx
index 552117ebe980..ef279ae051b5 100644
--- a/i18npool/inc/xdictionary.hxx
+++ b/i18npool/inc/xdictionary.hxx
@@ -24,7 +24,7 @@
 
 #include <com/sun/star/i18n/Boundary.hpp>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #define CACHE_MAX 32        // max cache structure number
 #define DEFAULT_SIZE 256    // for boundary size, to avoid alloc and release memory
@@ -37,7 +37,7 @@ struct WordBreakCache {
     sal_Int32 size;         // size of wordboundary
 
     WordBreakCache();
-    bool equals(const sal_Unicode *str, Boundary const & boundary);    // checking cached string
+    bool equals(const sal_Unicode *str, css::i18n::Boundary const & boundary);    // checking cached string
 };
 
 struct xdictionarydata
@@ -63,29 +63,29 @@ private:
     xdictionarydata data;
     void initDictionaryData(const sal_Char *lang);
 
-    Boundary boundary;
+    css::i18n::Boundary boundary;
     bool japaneseWordBreak;
 
 public:
     xdictionary(const sal_Char *lang);
     ~xdictionary();
-    Boundary nextWord( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType);
-    Boundary previousWord( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType);
-    Boundary const & getWordBoundary( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType, bool bDirection );
+    css::i18n::Boundary nextWord( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType);
+    css::i18n::Boundary previousWord( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType);
+    css::i18n::Boundary const & getWordBoundary( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType, bool bDirection );
     void setJapaneseWordBreak();
 
 private:
     WordBreakCache cache[CACHE_MAX];
     OUString segmentCachedString;
-    Boundary segmentCachedBoundary;
+    css::i18n::Boundary segmentCachedBoundary;
 
-    bool        seekSegment(const OUString& rText, sal_Int32 pos, Boundary& boundary);
-    WordBreakCache& getCache(const sal_Unicode *text, Boundary const & boundary);
+    bool        seekSegment(const OUString& rText, sal_Int32 pos, css::i18n::Boundary& boundary);
+    WordBreakCache& getCache(const sal_Unicode *text, css::i18n::Boundary const & boundary);
     bool        exists(const sal_uInt32 u);
-    sal_Int32       getLongestMatch(const sal_Unicode *text, sal_Int32 len);
+    sal_Int32   getLongestMatch(const sal_Unicode *text, sal_Int32 len);
 };
 
-} } } }
+}
 
 #endif
 
diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx
index fba56fcec7ae..24ca264e708b 100644
--- a/i18npool/source/breakiterator/breakiteratorImpl.cxx
+++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx
@@ -24,10 +24,12 @@
 #include <i18nutil/unicode.hxx>
 #include <rtl/ustrbuf.hxx>
 
+using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 BreakIteratorImpl::BreakIteratorImpl( const Reference < XComponentContext >& rxContext ) : m_xContext( rxContext )
 {
@@ -630,14 +632,14 @@ BreakIteratorImpl::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_i18n_BreakIterator_get_implementation(
     css::uno::XComponentContext *context,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new css::i18n::BreakIteratorImpl(context));
+    return cppu::acquire(new i18npool::BreakIteratorImpl(context));
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/breakiterator/breakiterator_cjk.cxx b/i18npool/source/breakiterator/breakiterator_cjk.cxx
index 5921a8774738..98115e6c1d32 100644
--- a/i18npool/source/breakiterator/breakiterator_cjk.cxx
+++ b/i18npool/source/breakiterator/breakiterator_cjk.cxx
@@ -24,9 +24,10 @@
 #include <o3tl/make_unique.hxx>
 
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 //      ----------------------------------------------------
 //      class BreakIterator_CJK
@@ -39,7 +40,7 @@ BreakIterator_CJK::BreakIterator_CJK()
 
 Boundary SAL_CALL
 BreakIterator_CJK::previousWord(const OUString& text, sal_Int32 anyPos,
-        const lang::Locale& nLocale, sal_Int16 wordType)
+        const css::lang::Locale& nLocale, sal_Int16 wordType)
 {
     if (m_xDict) {
         result = m_xDict->previousWord(text, anyPos, wordType);
@@ -56,7 +57,7 @@ BreakIterator_CJK::previousWord(const OUString& text, sal_Int32 anyPos,
 
 Boundary SAL_CALL
 BreakIterator_CJK::nextWord(const OUString& text, sal_Int32 anyPos,
-        const lang::Locale& nLocale, sal_Int16 wordType)
+        const css::lang::Locale& nLocale, sal_Int16 wordType)
 {
     if (m_xDict) {
         result = m_xDict->nextWord(text, anyPos, wordType);
@@ -73,7 +74,7 @@ BreakIterator_CJK::nextWord(const OUString& text, sal_Int32 anyPos,
 
 Boundary SAL_CALL
 BreakIterator_CJK::getWordBoundary( const OUString& text, sal_Int32 anyPos,
-        const lang::Locale& nLocale, sal_Int16 wordType, sal_Bool bDirection )
+        const css::lang::Locale& nLocale, sal_Int16 wordType, sal_Bool bDirection )
 {
     if (m_xDict) {
         result = m_xDict->getWordBoundary(text, anyPos, wordType, bDirection);
@@ -87,7 +88,7 @@ BreakIterator_CJK::getWordBoundary( const OUString& text, sal_Int32 anyPos,
 
 LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak(
         const OUString& Text, sal_Int32 nStartPos,
-        const lang::Locale& /*rLocale*/, sal_Int32 /*nMinBreakPos*/,
+        const css::lang::Locale& /*rLocale*/, sal_Int32 /*nMinBreakPos*/,
         const LineBreakHyphenationOptions& /*hOptions*/,
         const LineBreakUserOptions& bOptions )
 {
@@ -109,7 +110,7 @@ LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak(
     return lbr;
 }
 
-#define LOCALE(language, country) lang::Locale(language, country, OUString())
+#define LOCALE(language, country) css::lang::Locale(language, country, OUString())
 //      ----------------------------------------------------
 //      class BreakIterator_zh
 //      ----------------------------------------------------;
@@ -150,6 +151,6 @@ BreakIterator_ko::BreakIterator_ko()
     cBreakIterator = "com.sun.star.i18n.BreakIterator_ko";
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/breakiterator/breakiterator_ctl.cxx b/i18npool/source/breakiterator/breakiterator_ctl.cxx
index f641bc927ca1..e39966e66175 100644
--- a/i18npool/source/breakiterator/breakiterator_ctl.cxx
+++ b/i18npool/source/breakiterator/breakiterator_ctl.cxx
@@ -21,10 +21,12 @@
 #include <com/sun/star/i18n/CharacterIteratorMode.hpp>
 #include <breakiterator_ctl.hxx>
 
+using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 /**
  * Constructor.
@@ -125,6 +127,6 @@ LineBreakResults SAL_CALL BreakIterator_CTL::getLineBreak(
     return lbr;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/breakiterator/breakiterator_th.cxx b/i18npool/source/breakiterator/breakiterator_th.cxx
index b658dbdde0e1..66e2827f3ac2 100644
--- a/i18npool/source/breakiterator/breakiterator_th.cxx
+++ b/i18npool/source/breakiterator/breakiterator_th.cxx
@@ -26,7 +26,7 @@
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 //  class Breakiterator_th
@@ -146,6 +146,6 @@ void SAL_CALL BreakIterator_th::makeIndex(const OUString& Text, sal_Int32 const
     }
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx
index 3e31c3606005..bd9d09a34afc 100644
--- a/i18npool/source/breakiterator/breakiterator_unicode.cxx
+++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx
@@ -35,9 +35,10 @@ extern const char OpenOffice_dat[];
 U_CDECL_END
 
 using namespace ::com::sun::star;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 // Cache map of breakiterators, stores state information so has to be
 // thread_local.
@@ -585,14 +586,14 @@ BreakIterator_Unicode::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_i18n_BreakIterator_Unicode_get_implementation(
     css::uno::XComponentContext *,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new css::i18n::BreakIterator_Unicode());
+    return cppu::acquire(new i18npool::BreakIterator_Unicode());
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/breakiterator/xdictionary.cxx b/i18npool/source/breakiterator/xdictionary.cxx
index 90e866426d57..5653021fc13a 100644
--- a/i18npool/source/breakiterator/xdictionary.cxx
+++ b/i18npool/source/breakiterator/xdictionary.cxx
@@ -29,7 +29,9 @@
 #include <string.h>
 #include <breakiteratorImpl.hxx>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+using namespace com::sun::star::i18n;
+
+namespace i18npool {
 
 #ifdef DICT_JA_ZH_IN_DATAFILE
 
@@ -198,7 +200,7 @@ bool xdictionary::exists(const sal_uInt32 c)
     // 0x1FFF is the hardcoded limit in gendict for data.existMarks
     bool exist = data.existMark && (c>>3) < 0x1FFF && (data.existMark[c>>3] & (1<<(c&0x07))) != 0;
     if (!exist && japaneseWordBreak)
-        return BreakIteratorImpl::getScriptClass(c) == ScriptType::ASIAN;
+        return BreakIteratorImpl::getScriptClass(c) == css::i18n::ScriptType::ASIAN;
     else
         return exist;
 }
@@ -474,6 +476,6 @@ Boundary const & xdictionary::getWordBoundary(const OUString& rText, sal_Int32 a
         return boundary;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/calendar/calendarImpl.cxx b/i18npool/source/calendar/calendarImpl.cxx
index d6820155b38c..dbb95fd7489f 100644
--- a/i18npool/source/calendar/calendarImpl.cxx
+++ b/i18npool/source/calendar/calendarImpl.cxx
@@ -23,9 +23,10 @@
 #include <cppuhelper/supportsservice.hxx>
 
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #define ERROR RuntimeException()
 
@@ -348,6 +349,6 @@ CalendarImpl::getSupportedServiceNames()
     return aRet;
 }
 
-}}}}
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx
index 78fd7457927c..f89f5fa046e3 100644
--- a/i18npool/source/calendar/calendar_gregorian.cxx
+++ b/i18npool/source/calendar/calendar_gregorian.cxx
@@ -122,10 +122,11 @@ static void debug_i18n_cal_dump( const ::icu::Calendar & r )
 
 
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #define ERROR RuntimeException()
 
@@ -989,6 +990,6 @@ Calendar_gregorian::getSupportedServiceNames()
     return aRet;
 }
 
-}}}}
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/calendar/calendar_hijri.cxx b/i18npool/source/calendar/calendar_hijri.cxx
index eeabf6d47472..ae8f78fd38a6 100644
--- a/i18npool/source/calendar/calendar_hijri.cxx
+++ b/i18npool/source/calendar/calendar_hijri.cxx
@@ -25,10 +25,11 @@
 
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star::i18n;
 
 #define GREGORIAN_CROSSOVER 2299161
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 // not used
 //static UErrorCode status; // status is shared in all calls to Calendar, it has to be reset for each call.
@@ -327,6 +328,6 @@ Calendar_hijri::getJulianDay(sal_Int32 day, sal_Int32 month, sal_Int32 year)
     return (double) intgr;
 }
 
-}}}}
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/calendar/calendar_jewish.cxx b/i18npool/source/calendar/calendar_jewish.cxx
index f9130450895e..4e05bbba9868 100644
--- a/i18npool/source/calendar/calendar_jewish.cxx
+++ b/i18npool/source/calendar/calendar_jewish.cxx
@@ -24,9 +24,10 @@
 #include "calendar_jewish.hxx"
 
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 // not used
 //static UErrorCode status; // status is shared in all calls to Calendar, it has to be reset for each call.
@@ -292,6 +293,6 @@ Calendar_jewish::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNa
         return Calendar_gregorian::getDisplayString(nCalendarDisplayCode, nNativeNumberMode );
 }
 
-}}}}
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx
index a4582897bb9a..4f7ee6cfb279 100644
--- a/i18npool/source/characterclassification/cclass_unicode.cxx
+++ b/i18npool/source/characterclassification/cclass_unicode.cxx
@@ -29,10 +29,12 @@
 #include <breakiteratorImpl.hxx>
 #include <rtl/ref.hxx>
 
+using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 //  class cclass_Unicode
 //  ----------------------------------------------------;
@@ -291,14 +293,14 @@ Sequence< OUString > SAL_CALL cclass_Unicode::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_i18n_CharacterClassification_Unicode_get_implementation(
     css::uno::XComponentContext *context,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new css::i18n::cclass_Unicode(context));
+    return cppu::acquire(new i18npool::cclass_Unicode(context));
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/characterclassification/cclass_unicode_parser.cxx b/i18npool/source/characterclassification/cclass_unicode_parser.cxx
index 2a3616302cc3..dc3d0775586d 100644
--- a/i18npool/source/characterclassification/cclass_unicode_parser.cxx
+++ b/i18npool/source/characterclassification/cclass_unicode_parser.cxx
@@ -33,11 +33,12 @@
 #include <string.h>
 
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
 #define TOKEN_DIGIT_FLAGS (ParserFlags::CHAR_VALUE | ParserFlags::VALUE | ParserFlags::VALUE_EXP | ParserFlags::VALUE_EXP_VALUE | ParserFlags::VALUE_DIGIT)
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 // Default identifier/name specification is [A-Za-z_][A-Za-z0-9_]*
 
@@ -592,7 +593,6 @@ ParserFlags cclass_Unicode::getFlagsExtended(sal_uInt32 const c)
         return ParserFlags::VALUE;
     else if ( c == cDecimalSep )
         return ParserFlags::CHAR_VALUE | ParserFlags::VALUE;
-    using namespace i18n;
     bool bStart = (eState == ssGetChar || eState == ssGetWordFirstChar ||
             eState == ssRewindFromValue || eState == ssIgnoreLeadingInRewind);
     sal_Int32 nTypes = (bStart ? nStartTypes : nContTypes);
@@ -690,7 +690,6 @@ ParserFlags cclass_Unicode::getContCharsFlags( sal_Unicode c )
 void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32 nPos, sal_Int32 nTokenType )
 {
     assert(r.LeadingWhiteSpace == 0);
-    using namespace i18n;
     eState = ssGetChar;
 
     //! All the variables below (plus ParseResult) have to be resetted on ssRewindFromValue!
@@ -1035,6 +1034,6 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
     }
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/characterclassification/characterclassificationImpl.cxx b/i18npool/source/characterclassification/characterclassificationImpl.cxx
index 03566456cd0c..849251e65213 100644
--- a/i18npool/source/characterclassification/characterclassificationImpl.cxx
+++ b/i18npool/source/characterclassification/characterclassificationImpl.cxx
@@ -23,12 +23,13 @@
 #include <rtl/ustrbuf.hxx>
 
 using namespace com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 CharacterClassificationImpl::CharacterClassificationImpl(
-        const Reference < uno::XComponentContext >& rxContext ) : m_xContext( rxContext )
+        const Reference < XComponentContext >& rxContext ) : m_xContext( rxContext )
 {
     if (createLocaleSpecificCharacterClassification("Unicode", Locale()))
         xUCI = cachedItem->xCI;
@@ -205,14 +206,14 @@ CharacterClassificationImpl::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_i18n_CharacterClassification_get_implementation(
     css::uno::XComponentContext *context,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new css::i18n::CharacterClassificationImpl(context));
+    return cppu::acquire(new i18npool::CharacterClassificationImpl(context));
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/collator/chaptercollator.cxx b/i18npool/source/collator/chaptercollator.cxx
index ccb4d9a3370f..1f48d61c7824 100644
--- a/i18npool/source/collator/chaptercollator.cxx
+++ b/i18npool/source/collator/chaptercollator.cxx
@@ -27,6 +27,8 @@ using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::i18n;
 
+namespace i18npool {
+
 ChapterCollator::ChapterCollator( const Reference < XComponentContext >& rxContext ) : CollatorImpl(rxContext)
 {
     cclass = CharacterClassification::create( rxContext );
@@ -91,4 +93,5 @@ ChapterCollator::getSupportedServiceNames()
     return aRet;
 }
 
+}
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/collator/collatorImpl.cxx b/i18npool/source/collator/collatorImpl.cxx
index 022071a9b904..258ee9f6ec66 100644
--- a/i18npool/source/collator/collatorImpl.cxx
+++ b/i18npool/source/collator/collatorImpl.cxx
@@ -26,10 +26,11 @@
 #include <cppuhelper/supportsservice.hxx>
 
 using namespace com::sun::star;
+using namespace com::sun::star::i18n;
 using namespace com::sun::star::lang;
 using namespace com::sun::star::uno;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 CollatorImpl::CollatorImpl( const Reference < XComponentContext >& rxContext ) : m_xContext(rxContext)
 {
@@ -225,14 +226,14 @@ CollatorImpl::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_i18n_Collator_get_implementation(
     css::uno::XComponentContext *context,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new css::i18n::CollatorImpl(context));
+    return cppu::acquire(new i18npool::CollatorImpl(context));
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/collator/collator_unicode.cxx b/i18npool/source/collator/collator_unicode.cxx
index 21c7deee2860..fae276818b3c 100644
--- a/i18npool/source/collator/collator_unicode.cxx
+++ b/i18npool/source/collator/collator_unicode.cxx
@@ -30,10 +30,11 @@
 #include <cppuhelper/supportsservice.hxx>
 
 using namespace ::com::sun::star;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::uno;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 Collator_Unicode::Collator_Unicode()
 {
@@ -406,6 +407,6 @@ Collator_Unicode::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
index cd2e9fecac3a..f898d6fde3e3 100644
--- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
+++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
@@ -63,9 +63,10 @@
 
 using namespace com::sun::star;
 using namespace com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 static const sal_Unicode table_Alphabet_ar[] = {
     0x0623, 0x0628, 0x062A, 0x062B, 0x062C, 0x062D, 0x062E,
@@ -1061,14 +1062,14 @@ Sequence< OUString > DefaultNumberingProvider::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_text_DefaultNumberingProvider_get_implementation(
     css::uno::XComponentContext *context,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new css::i18n::DefaultNumberingProvider(context));
+    return cppu::acquire(new i18npool::DefaultNumberingProvider(context));
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/indexentry/indexentrysupplier.cxx b/i18npool/source/indexentry/indexentrysupplier.cxx
index 9b6d938c987b..d467b5b708b9 100644
--- a/i18npool/source/indexentry/indexentrysupplier.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier.cxx
@@ -26,7 +26,7 @@
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 IndexEntrySupplier::IndexEntrySupplier( const Reference < XComponentContext >& rxContext ) : m_xContext( rxContext )
 {
@@ -190,6 +190,6 @@ IndexEntrySupplier::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/indexentry/indexentrysupplier_asian.cxx b/i18npool/source/indexentry/indexentrysupplier_asian.cxx
index a6594c381b65..6f06eb44bed5 100644
--- a/i18npool/source/indexentry/indexentrysupplier_asian.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_asian.cxx
@@ -25,7 +25,7 @@
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #ifndef DISABLE_DYNLOADING
 
@@ -204,6 +204,8 @@ IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry,
     }
     return OUString();
 }
-} } } }
+
+}
+
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/indexentry/indexentrysupplier_common.cxx b/i18npool/source/indexentry/indexentrysupplier_common.cxx
index ba7aa0fccfb4..5bc149041a40 100644
--- a/i18npool/source/indexentry/indexentrysupplier_common.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_common.cxx
@@ -25,7 +25,7 @@
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 IndexEntrySupplier_Common::IndexEntrySupplier_Common(const Reference < uno::XComponentContext >& rxContext)
 {
@@ -133,6 +133,6 @@ IndexEntrySupplier_Common::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/indexentry/indexentrysupplier_default.cxx b/i18npool/source/indexentry/indexentrysupplier_default.cxx
index d0673a9d50ed..cc5db18053be 100644
--- a/i18npool/source/indexentry/indexentrysupplier_default.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_default.cxx
@@ -22,10 +22,12 @@
 #include <i18nutil/unicode.hxx>
 #include <com/sun/star/i18n/CollatorOptions.hpp>
 
+using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 IndexEntrySupplier_Unicode::IndexEntrySupplier_Unicode(
     const css::uno::Reference < css::uno::XComponentContext >& rxContext ) :
@@ -280,6 +282,6 @@ void Index::init(const lang::Locale &rLocale, const OUString& algorithm)
     table_count = j;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx b/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx
index d9f6893ab6e0..417fa47306cd 100644
--- a/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx
@@ -23,10 +23,12 @@
 #include <data/indexdata_ja_phonetic.h>
 #include <string.h>
 
-namespace com { namespace sun { namespace star { namespace i18n {
+using namespace ::com::sun::star::i18n;
+
+namespace i18npool {
 
 OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexCharacter( const OUString& rIndexEntry,
-    const lang::Locale& /*rLocale*/, const OUString& /*rSortAlgorithm*/ )
+    const css::lang::Locale& /*rLocale*/, const OUString& /*rSortAlgorithm*/ )
 {
     sal_Unicode ch=rIndexEntry.toChar();
     sal_uInt16 first = idx[ ch >> 8 ];
@@ -40,14 +42,14 @@ OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexCharacter( const OUStr
 }
 
 OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexKey( const OUString& IndexEntry,
-    const OUString& PhoneticEntry, const lang::Locale& rLocale )
+    const OUString& PhoneticEntry, const css::lang::Locale& rLocale )
 {
     return getIndexCharacter( PhoneticEntry.isEmpty() ? IndexEntry : PhoneticEntry , rLocale, OUString());
 }
 
 sal_Int16 SAL_CALL IndexEntrySupplier_ja_phonetic::compareIndexEntry(
-    const OUString& IndexEntry1, const OUString& PhoneticEntry1, const lang::Locale& rLocale1,
-    const OUString& IndexEntry2, const OUString& PhoneticEntry2, const lang::Locale& rLocale2 )
+    const OUString& IndexEntry1, const OUString& PhoneticEntry1, const css::lang::Locale& rLocale1,
+    const OUString& IndexEntry2, const OUString& PhoneticEntry2, const css::lang::Locale& rLocale2 )
 {
     sal_Int16 result = sal::static_int_cast<sal_Int16>( collator->compareString(
         IndexEntrySupplier_ja_phonetic::getIndexKey(IndexEntry1, PhoneticEntry1, rLocale1),
@@ -88,6 +90,6 @@ sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_consonant:
     return collator->loadCollatorAlgorithm(last, rLocale, collatorOptions) == 0;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/inputchecker/inputsequencechecker.cxx b/i18npool/source/inputchecker/inputsequencechecker.cxx
index 5bb3ac320d98..24964521ae1e 100644
--- a/i18npool/source/inputchecker/inputsequencechecker.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker.cxx
@@ -24,9 +24,10 @@
 #include <i18nutil/unicode.hxx>
 
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 InputSequenceCheckerImpl::InputSequenceCheckerImpl( const Reference < XComponentContext >& rxContext ) : m_xContext( rxContext )
 {
@@ -118,13 +119,13 @@ InputSequenceCheckerImpl::getInputSequenceChecker(sal_Char const * rLanguage)
                 return cachedItem->xISC;
         }
 
-        Reference < uno::XInterface > xI = m_xContext->getServiceManager()->createInstanceWithContext(
+        Reference < XInterface > xI = m_xContext->getServiceManager()->createInstanceWithContext(
                 "com.sun.star.i18n.InputSequenceChecker_" +
                 OUString::createFromAscii(rLanguage),
                 m_xContext);
 
         if ( xI.is() ) {
-            Reference< XExtendedInputSequenceChecker > xISC( xI, uno::UNO_QUERY );
+            Reference< XExtendedInputSequenceChecker > xISC( xI, UNO_QUERY );
             if (xISC.is()) {
                 lookupTable.push_back(cachedItem = new lookupTableItem(rLanguage, xISC));
                 return cachedItem->xISC;
@@ -153,14 +154,14 @@ InputSequenceCheckerImpl::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_i18n_InputSequenceChecker_get_implementation(
     css::uno::XComponentContext *context,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new css::i18n::InputSequenceCheckerImpl(context));
+    return cppu::acquire(new i18npool::InputSequenceCheckerImpl(context));
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
index 52f8fae5a9bb..4e65a655ac7f 100644
--- a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
@@ -21,10 +21,7 @@
 #include <inputsequencechecker_hi.hxx>
 
 
-namespace com {
-namespace sun {
-namespace star {
-namespace i18n {
+namespace i18npool {
 
 InputSequenceChecker_hi::InputSequenceChecker_hi()
     : InputSequenceCheckerImpl("com.sun.star.i18n.InputSequenceChecker_hi")
@@ -132,6 +129,6 @@ InputSequenceChecker_hi::correctInputSequence(OUString& Text,
         nStartPos=Text.getLength();
     return nStartPos;
 }
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/inputchecker/inputsequencechecker_th.cxx b/i18npool/source/inputchecker/inputsequencechecker_th.cxx
index 660f78be0998..bc2fbe239808 100644
--- a/i18npool/source/inputchecker/inputsequencechecker_th.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker_th.cxx
@@ -22,7 +22,7 @@
 #include <wtt.h>
 
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 InputSequenceChecker_th::InputSequenceChecker_th()
     : InputSequenceCheckerImpl("com.sun.star.i18n.InputSequenceChecker_th")
@@ -139,6 +139,6 @@ http://www.openoffice.org/issues/show_bug.cgi?id=42661
     return nStartPos;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx
index 2660f7fae5c1..9c8559046fbd 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -347,6 +347,7 @@ struct LocaleDataLookupTableItem
     }
 };
 
+namespace i18npool {
 
 // static
 Sequence< CalendarItem > LocaleDataImpl::downcastCalendarItems( const Sequence< CalendarItem2 > & rCi )
@@ -1594,12 +1595,14 @@ OUString LocaleDataImpl::getFirstLocaleServiceName( const css::lang::Locale & rL
     return aVec;
 }
 
+}
+
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_i18n_LocaleDataImpl_get_implementation(
     css::uno::XComponentContext *,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new LocaleDataImpl());
+    return cppu::acquire(new i18npool::LocaleDataImpl());
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/nativenumber/data/numberchar.h b/i18npool/source/nativenumber/data/numberchar.h
index 18974acae080..91cd3dcae828 100644
--- a/i18npool/source/nativenumber/data/numberchar.h
+++ b/i18npool/source/nativenumber/data/numberchar.h
@@ -20,7 +20,7 @@
 #ifndef INCLUDED_I18NPOOL_SOURCE_NATIVENUMBER_DATA_NUMBERCHAR_H
 #define INCLUDED_I18NPOOL_SOURCE_NATIVENUMBER_DATA_NUMBERCHAR_H
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 static const sal_Int16 NumberChar_HalfWidth     = 0;
 static const sal_Int16 NumberChar_FullWidth     = 1;
@@ -264,7 +264,7 @@ static const sal_Unicode MultiplierChar_7_CJK[][ExponentCount_7_CJK] = {
     {0x4EAC, 0x5146, 0x5104, 0x842C, 0x9621, 0x767E, 0x62FE}    // Japanese Traditional
 };
 
-} } } }
+}
 
 #endif // INCLUDED_I18NPOOL_SOURCE_NATIVENUMBER_DATA_NUMBERCHAR_H
 
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx
index aeb3e3caca97..be9ab74a81aa 100644
--- a/i18npool/source/nativenumber/nativenumbersupplier.cxx
+++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx
@@ -28,6 +28,7 @@
 #include <memory>
 
 using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
 
 typedef struct {
@@ -55,7 +56,7 @@ typedef struct {
 #define NUMBER_OMIT_ONE_67 (NUMBER_OMIT_ONE_6|NUMBER_OMIT_ONE_7)
 #define NUMBER_OMIT_ZERO_ONE_67 ( NUMBER_OMIT_ZERO|NUMBER_OMIT_ONE_67 )
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 OUString SAL_CALL getHebrewNativeNumberString(const OUString& aNumberString, bool useGeresh);
 
@@ -1051,14 +1052,14 @@ NativeNumberSupplierService::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_i18n_NativeNumberSupplier_get_implementation(
     css::uno::XComponentContext *,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new css::i18n::NativeNumberSupplierService());
+    return cppu::acquire(new i18npool::NativeNumberSupplierService());
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
index 4543bf2004b0..bb821d670e48 100644
--- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
+++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
@@ -33,7 +33,7 @@ using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 
 OrdinalSuffixService::OrdinalSuffixService()
@@ -152,14 +152,14 @@ Sequence< OUString > SAL_CALL OrdinalSuffixService::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_i18n_OrdinalSuffix_get_implementation(
     css::uno::XComponentContext *,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new css::i18n::OrdinalSuffixService());
+    return cppu::acquire(new i18npool::OrdinalSuffixService());
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/registerservices/registerservices.cxx b/i18npool/source/registerservices/registerservices.cxx
index d08d33b7b7e3..ce73552f04f4 100644
--- a/i18npool/source/registerservices/registerservices.cxx
+++ b/i18npool/source/registerservices/registerservices.cxx
@@ -60,6 +60,8 @@
 #include <textconversion.hxx>
 
 using namespace ::com::sun::star;
+using namespace ::com::sun::star::i18n;
+using namespace i18npool;
 
 #define IMPL_CREATEINSTANCE( ImplName ) \
     uno::Reference< uno::XInterface >   \
@@ -94,8 +96,6 @@ typedef uno::Reference<
         &implName##_CreateInstance }
 
 
-using namespace i18n;
-
 // At least for iOS it doesn't hurt if we have lots of functions here
 // generated by these lovely macros that get compiled, but then no
 // references to them thanks to the WITH_LOCALE ifdefs for the
diff --git a/i18npool/source/textconversion/genconv_dict.cxx b/i18npool/source/textconversion/genconv_dict.cxx
index 13c234670af3..91836a392864 100644
--- a/i18npool/source/textconversion/genconv_dict.cxx
+++ b/i18npool/source/textconversion/genconv_dict.cxx
@@ -117,7 +117,7 @@ void make_hhc_char(FILE *sfp, FILE *cfp)
     }
     fprintf(cfp, "\n};\n");
 
-    fprintf(cfp, "\nstatic const com::sun::star::i18n::Hangul_Index Hangul2HanjaIndex[] = {\n");
+    fprintf(cfp, "\nstatic const i18npool::Hangul_Index Hangul2HanjaIndex[] = {\n");
     for (i = 0; i < count; i++)
         fprintf(cfp, "\t{ 0x%04x, 0x%04x, 0x%02x },\n",
                         Hangul2HanjaData[i][0],
@@ -164,8 +164,8 @@ void make_hhc_char(FILE *sfp, FILE *cfp)
 
     // create function to return arrays
     fprintf (cfp, "\tconst sal_Unicode* getHangul2HanjaData() { return Hangul2HanjaData; }\n");
-    fprintf (cfp, "\tconst com::sun::star::i18n::Hangul_Index* getHangul2HanjaIndex() { return Hangul2HanjaIndex; }\n");
-    fprintf (cfp, "\tsal_Int16 getHangul2HanjaIndexCount() { return sizeof(Hangul2HanjaIndex) / sizeof(com::sun::star::i18n::Hangul_Index); }\n");
+    fprintf (cfp, "\tconst i18npool::Hangul_Index* getHangul2HanjaIndex() { return Hangul2HanjaIndex; }\n");
+    fprintf (cfp, "\tsal_Int16 getHangul2HanjaIndexCount() { return sizeof(Hangul2HanjaIndex) / sizeof(i18npool::Hangul_Index); }\n");
     fprintf (cfp, "\tconst sal_uInt16* getHanja2HangulIndex() { return Hanja2HangulIndex; }\n");
     fprintf (cfp, "\tconst sal_Unicode* getHanja2HangulData() { return Hanja2HangulData; }\n");
 }
diff --git a/i18npool/source/textconversion/textconversion.cxx b/i18npool/source/textconversion/textconversion.cxx
index 7421c5dce776..002ba056cdb1 100644
--- a/i18npool/source/textconversion/textconversion.cxx
+++ b/i18npool/source/textconversion/textconversion.cxx
@@ -23,7 +23,7 @@
 
 using namespace com::sun::star::uno;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #ifndef DISABLE_DYNLOADING
 
@@ -89,6 +89,6 @@ TextConversionService::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/textconversion/textconversionImpl.cxx b/i18npool/source/textconversion/textconversionImpl.cxx
index 4451a291249d..2237fef42820 100644
--- a/i18npool/source/textconversion/textconversionImpl.cxx
+++ b/i18npool/source/textconversion/textconversionImpl.cxx
@@ -24,9 +24,10 @@
 #include <localedata.hxx>
 
 using namespace com::sun::star::lang;
+using namespace ::com::sun::star::i18n;
 using namespace com::sun::star::uno;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 TextConversionResult SAL_CALL
 TextConversionImpl::getConversions( const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
@@ -121,14 +122,14 @@ TextConversionImpl::getSupportedServiceNames()
     return aRet;
 }
 
-} } } }
+}
 
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
 com_sun_star_i18n_TextConversion_get_implementation(
     css::uno::XComponentContext *context,
     css::uno::Sequence<css::uno::Any> const &)
 {
-    return cppu::acquire(new css::i18n::TextConversionImpl(context));
+    return cppu::acquire(new i18npool::TextConversionImpl(context));
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/textconversion/textconversion_ko.cxx b/i18npool/source/textconversion/textconversion_ko.cxx
index 645acc93144c..23fabd706df1 100644
--- a/i18npool/source/textconversion/textconversion_ko.cxx
+++ b/i18npool/source/textconversion/textconversion_ko.cxx
@@ -35,7 +35,7 @@ using namespace com::sun::star::linguistic2;
 using namespace com::sun::star::uno;
 
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #define SCRIPT_OTHERS   0
 #define SCRIPT_HANJA    1
@@ -348,6 +348,6 @@ TextConversion_ko::interactiveConversion( const Locale& /*rLocale*/, sal_Int16 /
     return true;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/textconversion/textconversion_zh.cxx b/i18npool/source/textconversion/textconversion_zh.cxx
index ae08f5221e3d..f9a938137580 100644
--- a/i18npool/source/textconversion/textconversion_zh.cxx
+++ b/i18npool/source/textconversion/textconversion_zh.cxx
@@ -35,7 +35,7 @@ using namespace com::sun::star::linguistic2;
 using namespace com::sun::star::uno;
 
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 TextConversion_zh::TextConversion_zh( const Reference < XComponentContext >& xContext )
     : TextConversionService("com.sun.star.i18n.TextConversion_zh")
@@ -327,6 +327,6 @@ TextConversion_zh::interactiveConversion( const Locale& /*rLocale*/, sal_Int16 /
     return false;
 }
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/transliteration/chartonum.cxx b/i18npool/source/transliteration/chartonum.cxx
index f719d82d457e..80fae61928bf 100644
--- a/i18npool/source/transliteration/chartonum.cxx
+++ b/i18npool/source/transliteration/chartonum.cxx
@@ -23,7 +23,7 @@
 
 using namespace com::sun::star::uno;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 #define TRANSLITERATION_CHARTONUM( name ) \
 CharToNum##name::CharToNum##name() \
@@ -50,6 +50,6 @@ TRANSLITERATION_CHARTONUM( _th)
 
 #undef TRANSLITERATION_CHARTONUM
 
-} } } }
+}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/transliteration/fullwidthToHalfwidth.cxx b/i18npool/source/transliteration/fullwidthToHalfwidth.cxx
index cc90fd84e3ec..267ec26a0b60 100644
--- a/i18npool/source/transliteration/fullwidthToHalfwidth.cxx
+++ b/i18npool/source/transliteration/fullwidthToHalfwidth.cxx
@@ -25,14 +25,15 @@
 #include <transliteration_OneToOne.hxx>
 
 using namespace com::sun::star::uno;
+using namespace com::sun::star::i18n;
 using namespace com::sun::star::lang;
 
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
 
 fullwidthToHalfwidth::fullwidthToHalfwidth()
 {
     func = nullptr;
-    table = &widthfolding::getfull2halfTable();
+    table = &i18nutil::widthfolding::getfull2halfTable();
     transliterationName = "fullwidthToHalfwidth";
     implementationName = "com.sun.star.i18n.Transliteration.FULLWIDTH_HALFWIDTH";
 }
@@ -46,7 +47,7 @@ OUString SAL_CALL
 fullwidthToHalfwidth::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
 {
     // Decomposition: GA --> KA + voice-mark
-    const OUString& newStr = widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, offset, useOffset);
+    const OUString& newStr = i18nutil::widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, offset, useOffset);
 
     // One to One mapping
     useOffset = false;
@@ -58,7 +59,7 @@ fullwidthToHalfwidth::transliterate( const OUString& inStr, sal_Int32 startPos,
 sal_Unicode SAL_CALL
 fullwidthToHalfwidth::transliterateChar2Char( sal_Unicode inChar)
 {
-    sal_Unicode newChar = widthfolding::decompose_ja_voiced_sound_marksChar2Char (inChar);
+    sal_Unicode newChar = i18nutil::widthfolding::decompose_ja_voiced_sound_marksChar2Char (inChar);
     if (newChar == 0xFFFF)
         throw MultipleCharsOutputException();
     return transliteration_OneToOne::transliterateChar2Char(inChar);
@@ -67,7 +68,7 @@ fullwidthToHalfwidth::transliterateChar2Char( sal_Unicode inChar)
 fullwidthKatakanaToHalfwidthKatakana::fullwidthKatakanaToHalfwidthKatakana()
 {
     func = nullptr;
-    table = &widthfolding::getfullKana2halfKanaTable();
+    table = &i18nutil::widthfolding::getfullKana2halfKanaTable();
     transliterationName = "fullwidthKatakanaToHalfwidthKatakana";
     implementationName = "com.sun.star.i18n.Transliteration.FULLWIDTHKATAKANA_HALFWIDTHKATAKANA";
 }
@@ -79,7 +80,7 @@ OUString SAL_CALL
 fullwidthKatakanaToHalfwidthKatakana::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
 {
     // Decomposition: GA --> KA + voice-mark
-    const OUString& newStr = widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, offset, useOffset);
+    const OUString& newStr = i18nutil::widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, offset, useOffset);
 
     // One to One mapping
     useOffset = false;
@@ -91,7 +92,7 @@ fullwidthKatakanaToHalfwidthKatakana::transliterate( const OUString& inStr, sal_
 sal_Unicode SAL_CALL
 fullwidthKatakanaToHalfwidthKatakana::transliterateChar2Char( sal_Unicode inChar )
 {
-    sal_Unicode newChar = widthfolding::decompose_ja_voiced_sound_marksChar2Char (inChar);
+    sal_Unicode newChar = i18nutil::widthfolding::decompose_ja_voiced_sound_marksChar2Char (inChar);
     if (newChar == 0xFFFF)
         throw MultipleCharsOutputException();
     return transliteration_OneToOne::transliterateChar2Char(inChar);
@@ -100,7 +101,7 @@ fullwidthKatakanaToHalfwidthKatakana::transliterateChar2Char( sal_Unicode inChar
 fullwidthToHalfwidthLikeASC::fullwidthToHalfwidthLikeASC()
 {
     func = nullptr;
-    table = &widthfolding::getfull2halfTableForASC();

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list