summaryrefslogtreecommitdiff
path: root/i18nutil
AgeCommit message (Collapse)AuthorFilesLines
2017-04-28loplugin:salunicodeliteral: i18nutilStephan Bergmann1-2/+2
Change-Id: Ie7dfc21fccbeed5005c2b881ff593853513b13e1
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky1-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>
2017-04-21remove some old MSVC workaroundsNoel Grandin1-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>
2017-04-20loplugin:unusedfieldsNoel Grandin1-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>
2017-04-13Removed duplicated includesAndrea Gelmini1-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>
2017-03-31use actual UNO enums in i18nutilNoel Grandin2-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>
2017-03-25Fix typosAndrea Gelmini1-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>
2017-03-22Use rtl::isAscii* instead of ctype.h is* with sal_Unicode argStephan Bergmann1-1/+1
Change-Id: I6eba985f41b78160d2377b2cd4c27ec85ade33df
2017-03-22Use nl_langinfo_l with an explicitly created localeStephan Bergmann1-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
2017-03-01typesafe wrappers for css::i18nutil::TransliterationModulesNoel Grandin1-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>
2017-02-08coverity#1371289 Missing move assignment operatorCaolán McNamara1-1/+1
Change-Id: Idc26faf904f0c89cfd66f53bb311d8ce9b41eaab
2017-01-26Remove dynamic exception specificationsStephan Bergmann1-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>
2017-01-14coverity#1371289 avoid the need for an assignmentCaolán McNamara1-5/+5
Change-Id: I7f9b8d21652c79642f9a2f916ad0609c8abd430b
2017-01-09New loplugin:externvar: i18npoolStephan Bergmann1-1/+1
Change-Id: Id38d1fde0e0f6e08899e83697f586d513b635aad
2016-11-02upgrade to ICU 58Eike Rathke1-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>
2016-09-25avoid coverity#1371161 Missing move assignment operatorCaolán McNamara1-1/+1
Change-Id: Ief3dd38ade3fca74ea35e2a1a71637cba3336b59
2016-09-20Related cid#1371289: Improve code to not depend on missing move assignmentStephan Bergmann1-6/+6
Change-Id: I6f0b8247b6757ddee158bd870473b749f22e7671
2016-09-20Remove redundant default ctor definitionStephan Bergmann1-8/+0
Change-Id: Ifdeaf8cde86eb284e7b5c67e8ef3bfe816c5654c
2016-05-11convert MappingType to scoped enumNoel Grandin1-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>
2016-04-28clang-tidy modernize-loop-convert in h-l/*Noel Grandin1-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>
2016-03-31use SAL_N_ELEMENTS more widelyNoel Grandin1-1/+1
found using git grep -n 'sizeof.*/.*sizeof.*[0]' Change-Id: Icd4a6cc1ca8ec8ebd68e1701a02789c74cf0eb2a
2016-02-15Rename rtl::isValidCodePoint -> rtl::isUnicodeCodePointStephan Bergmann1-2/+2
...and fix its documentation, and use it throughout the code base. Change-Id: I349bc2009b1b0aa7115ea90bc6ecd0a812f63698
2015-12-19coverity#1343620 Unchecked return valueCaolán McNamara1-2/+2
Change-Id: I5ac69ef416a1317644b451442a51531806d9cf0d
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann3-73/+73
Change-Id: I55089fde808e9f564f424adc30717dfd8d141c37
2015-11-05related tdf#73691 - prevent AltX creating control charactersJustin Luth1-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>
2015-10-28tdf#95354 - pad AltX to 4 charactersJustin Luth1-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>
2015-10-20com::sun::star->css in i18nutilNoel Grandin2-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>
2015-09-29Updated URLAndrea Gelmini1-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>
2015-09-18boost->stdCaolán McNamara1-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>
2015-08-21loplugin:defaultparamsNoel Grandin1-3/+3
Change-Id: Iaf6415d3b33a4ce195a00913a0df69f1fb794217
2015-08-19for testing allow disabling configmgr for time critical pathsCaolán McNamara2-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>
2015-08-12tdf#73691 Implement MSWord's Alt-X: toggle unicode notationJustin Luth1-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>
2015-08-11loplugin: defaultparamsNoel Grandin1-1/+1
Change-Id: I5afe7f9f5caa1f5e55c6218bdb3771571ff0dafa
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann1-0/+1
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin1-2/+2
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2014-12-27coverity#984097 Uninitialized pointer fieldCaolán McNamara1-7/+8
Change-Id: I3098e446f0a2a4cd82785d7dcaf101575ed0b476
2014-12-19upgrade to icu 54Caolán McNamara1-0/+20
Change-Id: I4d32ac386ff8b69bee4319e673769917045d9450 Reviewed-on: https://gerrit.libreoffice.org/13547 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-12-18fdo#39440 reduce scope of local variablesMichael Weghorn2-13/+11
This addresses some cppcheck warnings. Change-Id: I7e85aca5a86f993a9906525edffbd44a179dc245 Reviewed-on: https://gerrit.libreoffice.org/13510 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-12i18nutil: Use appropriate OUString functions on string constantsStephan Bergmann1-14/+14
Change-Id: I09f6c1d793c6d4f61c25649cfb463a41d88b23df
2014-05-28Avoid undefined left shift of negative valueStephan Bergmann1-5/+8
Change-Id: If4e7f6fca3f6afbbeaa79e00706be08d674e2aeb
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold3-6/+6
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-02-18i18nutil: sal_Bool -> boolStephan Bergmann3-8/+8
Change-Id: Ic4a198d737692734ae3fbc096f370a3aa0667c5b
2014-01-22CLDR Version 24 doesn't know about es and sl using space before %Caolán McNamara1-1/+12
Change-Id: I1c3e7dc28e389a9580239165d04b171e06f5618e
2014-01-21use a narrow no-break space instead of (normal) no-break space for deCaolán McNamara1-1/+7
Change-Id: Iae0c70ab713a0d95fa7bc447f8a79e244c5a4258
2014-01-20Related: #i56998# use locale rules to format percentageCaolán McNamara1-1/+1
Change-Id: I2cdeefc5a5a1ee970ee3da5191ceae28b58340a1
2014-01-20Related: #i56998# provide a way to format % per-locale rulesCaolán McNamara2-0/+29
Change-Id: Ic27b230cc9dce366f281ff720ded5873e94f6191
2014-01-09Set PAPER_SCREEN_4_3 values back and use it as it wasZolnai Tamás1-1/+1
It breaks things. Change-Id: Ia28391aed27051e5f6a7e0996f30b23c46eb8269
2014-01-09Startcenter: use SCREEN_4_3 as default paper for presentationsZolnai Tamás1-1/+1
Remove static to able to construct items with different paper info. Fix SCREEN_4_3 width and height values and use it for presentations. Change-Id: Ifba44675f6126ebfccf26f53f226214bed92352c
2013-12-20typo fixesAndras Timar1-1/+1
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-11Related: rhbz#1040291 Change language name from 'Oriya' to 'Odia'Caolán McNamara1-1/+1
Except for our external api where the Oriya is stuck (and similar for the vba implementation) Change-Id: I8288c930567385eea49a4c303727b13ef8b8a89f