diff options
author | Eike Rathke <erack@redhat.com> | 2017-11-17 02:24:52 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-11-17 01:25:24 +0100 |
commit | 0f73433b13ba9e3f38193ddd86f4b9b767a36bb2 (patch) | |
tree | fc4ba8ff6f4bec273d50a4c51865b7420504f6e3 /i18npool/source | |
parent | eb8bd7f21103ed2349b44c954db977709de2e4ec (diff) |
Revert "Upgrade to ICU 60.1"
This reverts commit f643e1f687e27e7f46c53d7298772d4dddb3e660.
Failing in firebird, back to the drawing board..
Change-Id: I087d2fa6e81cf713458b1c9645edc7c1facf148c
Reviewed-on: https://gerrit.libreoffice.org/44843
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'i18npool/source')
-rw-r--r-- | i18npool/source/breakiterator/breakiterator_unicode.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx index b4ca111179c1..bd9d09a34afc 100644 --- a/i18npool/source/breakiterator/breakiterator_unicode.cxx +++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx @@ -544,27 +544,6 @@ LineBreakResults SAL_CALL BreakIterator_Unicode::getLineBreak( } else { //word boundary break lbr.breakIndex = pLineBI->preceding(nStartPos); lbr.breakType = BreakType::WORDBOUNDARY; - - // Special case for Slash U+002F SOLIDUS in URI and path names. - // TR14 defines that as SY: Symbols Allowing Break After (A). - // This is unwanted in paths, see also i#17155 - if (lbr.breakIndex > 0 && Text[lbr.breakIndex-1] == '/') - { - // Look backward and take any whitespace before as a break - // opportunity. This also glues something like "w/o". - // Avoid an overly long path and break it as was indicated. - // Overly long here is arbitrarily defined. - const sal_Int32 nOverlyLong = 66; - sal_Int32 nPos = lbr.breakIndex - 1; - while (nPos > 0 && lbr.breakIndex - nPos < nOverlyLong) - { - if (u_isWhitespace(Text.iterateCodePoints( &nPos, -1))) - { - lbr.breakIndex = nPos + 1; - break; - } - } - } } #define WJ 0x2060 // Word Joiner |