summaryrefslogtreecommitdiffstats
path: root/i18nutil
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly qualify ICU types with icu:: namespaceEike Rathke2018-07-021-4/+4
| | | | | | | | | | | | | | | It will be required by ICU 61 anyway, see https://ssl.icu-project.org/repos/icu/trunk/icu4c/readme.html#RecBuild Change-Id: Ia051e8e2aa64b0e32a7f16a2afebaef0e4ebf531 Reviewed-on: https://gerrit.libreoffice.org/46739 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit ad3b7c27cdc957a8a38876c040e86a81c3cf7003) Reviewed-on: https://gerrit.libreoffice.org/56713 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> (cherry picked from commit 63ebde2117d768c974252db9c4d9cce1ef4334c6)
* tdf#103550 fix issue with HYPHEN-MINUS in Calc function JIS.Winfried Donkers2018-01-261-0/+1
| | | | | | | | | Change-Id: Ie1e25ea7a0d6f23dfe21f53ed47430be6b357984 Reviewed-on: https://gerrit.libreoffice.org/48523 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 484d0ea842da586a4cf51b6d11683b04f234474c) Reviewed-on: https://gerrit.libreoffice.org/48664
* Upgrade to ICU 60.1Eike Rathke2017-11-201-0/+11
| | | | | | | Change-Id: I6d90f51ee88c4e1005edbaa93d23cfb94cb2acfb Reviewed-on: https://gerrit.libreoffice.org/44871 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* Revert "Upgrade to ICU 60.1"Eike Rathke2017-11-171-11/+0
| | | | | | | | | | | 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>
* Upgrade to ICU 60.1David Tardon2017-11-171-0/+11
| | | | Change-Id: I07837be7faac0b2238b0cba8fb981e4c4d24c498
* Remove duplication of Paper enum as #definesTor Lillqvist2017-11-111-0/+3
| | | | | | | | | | | | | Not needed any more. We still have the fragile requirement that the order of entries in the aDinTab array in i18nutil/source/utility/paper.cxx has to match the enum order. Change-Id: I858fd56ad6bb1a3f3c2c39f7830b4dc6aea7cc1f Reviewed-on: https://gerrit.libreoffice.org/44600 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
* There is no "paperconf" command on macOSTor Lillqvist2017-11-101-0/+2
| | | | Change-Id: I01c4cf877eca81880381060e1b3ebedf2979bcb8
* rename AvoidConfig to FuzzingCaolán McNamara2017-11-091-1/+1
| | | | | | | | | | | | cause that's what its really used for and a couple of cases are not specifically about avoiding config but avoiding uninteresting disk acccess and what not Change-Id: I4c6454f98388579fcd0bf9798321d30408ab65ee Reviewed-on: https://gerrit.libreoffice.org/44491 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* loplugin:includeform: i18nutilStephan Bergmann2017-10-232-4/+4
| | | | Change-Id: I47bdf2dc7f8f282136e320a660a5c4ef44ea0baa
* move stuff in i18npool/i18nutil in own namespaceNoel Grandin2017-10-045-10/+10
| | | | | | | | | | 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@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:constparams in i18nutil,sotNoel Grandin2017-07-171-3/+3
| | | | | | | Change-Id: I8e91b11baa855b1049130746b34f53158010948b Reviewed-on: https://gerrit.libreoffice.org/40050 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Turn OSL_ENSURE() into static_assert() for NUM_PAPER_ENTRIES enum matchEike Rathke2017-07-121-2/+1
| | | | | | And remove now obsolete include of osl/diagnose.h Change-Id: Ie75a4da463a5c51c6bd763d4a6ecf37be94ff6b2
* loplugin:oncevar in helpcompiler..jvmfwkNoel Grandin2017-06-252-5/+3
| | | | | | | Change-Id: Ia9b20a8ca95684cbeb21e3425972c43ba50df3cd Reviewed-on: https://gerrit.libreoffice.org/39187 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* use more SAL_N_ELEMENTS part 3Noel Grandin2017-06-151-5/+3
| | | | | | | Change-Id: I82e366fefd2e31928b99840fe76649cc3521e623 Reviewed-on: https://gerrit.libreoffice.org/38789 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Make use of OUString::startsWith rest parameterStephan Bergmann2017-06-071-5/+1
| | | | Change-Id: Ic743bfbf65533bd317e29c8e1482306603b65b0e
* coverity#1411565 'Constant' variable guards dead codeCaolán McNamara2017-05-301-1/+2
| | | | | | | | | | | | | | | | | | on incomplete fix of commit 922e935c8812b1c1f94347bdbd7cdf277a75644e Date: Mon May 29 17:08:06 2017 +0200 i18nutil: fix invalid string copy that prevents startup for commit ef513fd4b049b214a03fbe6e62a5ea43680a7a9b Date: Fri May 26 10:58:42 2017 +0200 remove unnecessary use of OString::getStr Change-Id: I6cc56bae5e4a5c2fb235663bc6676cdea02b9701
* i18nutil: fix invalid string copy that prevents startupMichael Stahl2017-05-291-2/+3
| | | | | | (regression from ef513fd4b049b214a03fbe6e62a5ea43680a7a9b) Change-Id: Ia3ba5ba853648a4b180d6cc2318a4780fc87bf4d
* remove unnecessary use of OString::getStrNoel Grandin2017-05-281-2/+1
| | | | | | | Change-Id: I0490efedf459190521f4339854b3394d57765fdb Reviewed-on: https://gerrit.libreoffice.org/38058 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:salunicodeliteral: i18nutilStephan Bergmann2017-04-281-2/+2
| | | | Change-Id: Ie7dfc21fccbeed5005c2b881ff593853513b13e1
* gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky2017-04-211-1/+0
| | | | | | | | | Uwinapi is discontinued. Change-Id: I063b4d0d8fab2d60de168e960a63b8181158ac01 Reviewed-on: https://gerrit.libreoffice.org/23198 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: David Ostrovsky <david@ostrovsky.org>
* remove some old MSVC workaroundsNoel Grandin2017-04-211-2/+0
| | | | | | | Change-Id: I6abd8aaffb27b3c85df7c0518f7f576be4e32222 Reviewed-on: https://gerrit.libreoffice.org/36660 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:unusedfieldsNoel Grandin2017-04-201-7/+0
| | | | | | | Change-Id: I0026e0a1890b984675e82ab7be5cdbc56e142a87 Reviewed-on: https://gerrit.libreoffice.org/36722 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Removed duplicated includesAndrea Gelmini2017-04-131-1/+0
| | | | | | | | | No automatic tools. Manual checked and tested. Change-Id: Ife260fa4e1d786cf81f2917a901664cc54943754 Reviewed-on: https://gerrit.libreoffice.org/36371 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* use actual UNO enums in i18nutilNoel Grandin2017-03-312-281/+22
| | | | | | | Change-Id: I959b26471fe69c4ee8ecb7e2fd57a53e24187112 Reviewed-on: https://gerrit.libreoffice.org/35905 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Fix typosAndrea Gelmini2017-03-251-1/+1
| | | | | | | Change-Id: I389542e18fcf71011f22919743b5280779f449fd Reviewed-on: https://gerrit.libreoffice.org/35632 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
* Use rtl::isAscii* instead of ctype.h is* with sal_Unicode argStephan Bergmann2017-03-221-1/+1
| | | | Change-Id: I6eba985f41b78160d2377b2cd4c27ec85ade33df
* Use nl_langinfo_l with an explicitly created localeStephan Bergmann2017-03-221-26/+30
| | | | | | | | | | | | | | | | (where empty string arg to newlocale, per SUSv4, means "an implementation- defined native environment. This correspons to the value of the associated environment variables, LC_* and LANG") instead of relying on whatever setlocale would be in effect here. Also, nl_langinfo_l is less of an MT nightmare than nl_langinfo, which is of benefit once the last remaining use of nl_langinfo in sal/osl/unx/nlsupport.cxx will also have been changed to nl_langinfo_l. loplugin:nullptr needs a little hack, as SUSv4 locale_t could be anything from an integer type to a pointer type. Change-Id: Ic35dcbc2e0a4f650694b48df12470dd89476dff5
* typesafe wrappers for css::i18nutil::TransliterationModulesNoel Grandin2017-03-011-4/+5
| | | | | | | | | | | | | | | | | and related css::util::SearchOptions2 The TransliterationModules enum has it's constants spread over multiple UNO enum/constant-collections - TransliterationModules and TransliterationModulesExtra, which means that most code simply uses sal_Int32. Wrap them up into a better bundle so that only the lowest layer needs to deal directly with the UNO constants. Change-Id: I1edeab79fcc7817a4a97c933ef84ab7015bb849b Reviewed-on: https://gerrit.libreoffice.org/34582 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* coverity#1371289 Missing move assignment operatorCaolán McNamara2017-02-081-1/+1
| | | | Change-Id: Idc26faf904f0c89cfd66f53bb311d8ce9b41eaab
* Remove dynamic exception specificationsStephan Bergmann2017-01-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | ...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* coverity#1371289 avoid the need for an assignmentCaolán McNamara2017-01-141-5/+5
| | | | Change-Id: I7f9b8d21652c79642f9a2f916ad0609c8abd430b
* New loplugin:externvar: i18npoolStephan Bergmann2017-01-091-1/+1
| | | | Change-Id: Id38d1fde0e0f6e08899e83697f586d513b635aad
* upgrade to ICU 58Eike Rathke2016-11-021-0/+26
| | | | | | | Change-Id: I4a992447df65b337721a2a2627d974172a14cba5 Reviewed-on: https://gerrit.libreoffice.org/30487 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* avoid coverity#1371161 Missing move assignment operatorCaolán McNamara2016-09-251-1/+1
| | | | Change-Id: Ief3dd38ade3fca74ea35e2a1a71637cba3336b59
* Related cid#1371289: Improve code to not depend on missing move assignmentStephan Bergmann2016-09-201-6/+6
| | | | Change-Id: I6f0b8247b6757ddee158bd870473b749f22e7671
* Remove redundant default ctor definitionStephan Bergmann2016-09-201-8/+0
| | | | Change-Id: Ifdeaf8cde86eb284e7b5c67e8ef3bfe816c5654c
* convert MappingType to scoped enumNoel Grandin2016-05-111-11/+19
| | | | | | | Change-Id: I1f00e1fbdb9213d0c2f30da116684b77842282f5 Reviewed-on: https://gerrit.libreoffice.org/24851 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* clang-tidy modernize-loop-convert in h-l/*Noel Grandin2016-04-281-4/+4
| | | | | | | Change-Id: I843528327b25d18476f8959cabba16371213a48a Reviewed-on: https://gerrit.libreoffice.org/24460 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* use SAL_N_ELEMENTS more widelyNoel Grandin2016-03-311-1/+1
| | | | | | | found using git grep -n 'sizeof.*/.*sizeof.*[0]' Change-Id: Icd4a6cc1ca8ec8ebd68e1701a02789c74cf0eb2a
* Rename rtl::isValidCodePoint -> rtl::isUnicodeCodePointStephan Bergmann2016-02-151-2/+2
| | | | | | ...and fix its documentation, and use it throughout the code base. Change-Id: I349bc2009b1b0aa7115ea90bc6ecd0a812f63698
* coverity#1343620 Unchecked return valueCaolán McNamara2015-12-191-2/+2
| | | | Change-Id: I5ac69ef416a1317644b451442a51531806d9cf0d
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-103-73/+73
| | | | Change-Id: I55089fde808e9f564f424adc30717dfd8d141c37
* related tdf#73691 - prevent AltX creating control charactersJustin Luth2015-11-051-6/+10
| | | | | | | | | | Do nothing for numbers 0x00 - 0x1f. Change-Id: Idda596e735c464b97dc3624253ebbea86933ff2c Reviewed-on: https://gerrit.libreoffice.org/19654 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* tdf#95354 - pad AltX to 4 charactersJustin Luth2015-10-281-1/+5
| | | | | | | | Change-Id: I552f305e78427bdbd37e48013f5cc4b78024e8ff Reviewed-on: https://gerrit.libreoffice.org/19631 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* com::sun::star->css in i18nutilNoel Grandin2015-10-202-6/+5
| | | | | | | Change-Id: I3148a1a08302fa9b21b0e5459f04ecee6ec30a18 Reviewed-on: https://gerrit.libreoffice.org/19455 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Updated URLAndrea Gelmini2015-09-291-1/+1
| | | | | | | Change-Id: I20656a78d25bcb767340057c259e9b2d83ec152a Reviewed-on: https://gerrit.libreoffice.org/18933 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* boost->stdCaolán McNamara2015-09-181-2/+2
| | | | | | | | Change-Id: Ie490bf2c6921f393bdeed96b1a8815996b701bf0 Reviewed-on: https://gerrit.libreoffice.org/18670 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* loplugin:defaultparamsNoel Grandin2015-08-211-3/+3
| | | | Change-Id: Iaf6415d3b33a4ce195a00913a0df69f1fb794217
* for testing allow disabling configmgr for time critical pathsCaolán McNamara2015-08-192-0/+5
| | | | | | | | Change-Id: I08021f18d53e1748927f8847649994f95252bbc2 Reviewed-on: https://gerrit.libreoffice.org/17844 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* tdf#73691 Implement MSWord's Alt-X: toggle unicode notationJustin Luth2015-08-121-0/+251
| | | | | | | | | | | | | | -toggles between characters and their unicode notation -sets Alt-X as a global keyboard accelerator -handles all of the unicode planes -intelligently handles combining characters -if text is selected, limits the input to that text -implemented in Writer, Draw, Impress Change-Id: Idcd8e7f0a4f1b81fa7f5f3200c76be19472ffa37 Reviewed-on: https://gerrit.libreoffice.org/17535 Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>