summaryrefslogtreecommitdiffstats
path: root/i18npool/source/calendar
Commit message (Collapse)AuthorAgeFilesLines
* loplugin:includeform: i18npoolStephan Bergmann2017-10-234-6/+6
| | | | Change-Id: I4356a9e559a3f63c172542256543b272df6ba173
* move stuff in i18npool/i18nutil in own namespaceNoel Grandin2017-10-044-8/+12
| | | | | | | | | | 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>
* i18npool: -Werror=misleading-indentationMichael Stahl2017-09-221-6/+6
| | | | Change-Id: I399f8266bf543aa7b31d7833bd27aa7bec8a6708
* loplugin:flatten in filter..i18npoolNoel Grandin2017-09-221-103/+77
| | | | | | | Change-Id: I9024b8b614a4de83a4d927e1918f6d4904a7fccb Reviewed-on: https://gerrit.libreoffice.org/42592 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:oncevar in helpcompiler..jvmfwkNoel Grandin2017-06-251-4/+4
| | | | | | | 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>
* teach lolugin:stringconstant about calling constructorsNoel Grandin2017-01-311-1/+1
| | | | | | | | | | | so we can remove unnecessary calls to the OUString(literal) constructor when calling constructors like this: Foo(OUString("xxx"), 1) Change-Id: I1de60ef561437c86b27dc9cb095a5deb2e103b36 Reviewed-on: https://gerrit.libreoffice.org/33698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Remove dynamic exception specificationsStephan Bergmann2017-01-264-75/+68
| | | | | | | | | | | | | | | | | | | | | | | | | ...(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>
* New loplugin:dynexcspec: Add @throws documentation, i18npoolStephan Bergmann2017-01-191-0/+1
| | | | Change-Id: Ie1304a081a8c26cb3204ca7fb3edfa7e2dfae386
* new loplugin: useuniqueptr: helpcompiler..ioNoel Grandin2017-01-171-2/+1
| | | | | | | Change-Id: I6b394163c144e6b5540cb160abb613d56fe327de Reviewed-on: https://gerrit.libreoffice.org/33165 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* remove some conversion operator methodsNoel Grandin2016-10-111-11/+11
| | | | | | | | | which, in these cases, only serve to make the code harder to read Change-Id: Ic9bcf42545b4fcfd60a535fb63956092d392f469 Reviewed-on: https://gerrit.libreoffice.org/29685 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:refcounting: also cover temporaries being directly stack managedStephan Bergmann2016-08-262-9/+9
| | | | Change-Id: Ib0f7c60df1d2fba0d4d9d3fa6faf3bb97867ebc0
* Resolves: tdf#100046 the dreaded 1945-04-02 Double DST, also tdf#79663Eike Rathke2016-07-261-243/+4
| | | | | | | | | | | A coward not having changed this earlier, partially taken from a patch that was submitted for tdf#79663 but broke API, thanks to Isamu Mogi again. This removes all the clutter around timezone and DST correction that was necessary for early ICU versions, which apparently gets things right now and the clutter can still be confused by corner cases. Change-Id: I9a90f933e8db8c6e0db145520ebf71cc27621abc
* Resolves: tdf#100452 class Date full (BCE,CE) proleptic Gregorian calendarEike Rathke2016-07-081-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... implementing signed years with year 0 gap. Date(31,12,-1) last day BCE Date(1,1,1) first day CE New class Date member functions: * AddYears(sal_Int16) to be used instead of aDate.SetYear(aDate.GetYear()+sal_Int16) to handle year 0 gap. * convenience GetNextYear() to be used insted of GetYear()+1 * convenience GetPrevYear() to be used insted of GetYear()-1 * AddMonths(sal_Int32) * operator=(const css::util::Date&) New class DateTime member functions: * operator=(const css::util::DateTime&) Made some conversion ctors explicit, specifically Date(sal_Int32) Adapted hopefully all places that used a sal_uInt16 year to use sal_Int16 where appropriate. Eliminated some quirks in date handling found on the fly. Added era handling to i18npool icu calendar setting interface, which missing was responsible for 0001-01-01 entered in Calc being set as -0001-01-01, hence subtracting one day resulted in -0002-12-31. Change-Id: I77b39fba9599ebd5067d7864f6c9ebe01f6f578f Reviewed-on: https://gerrit.libreoffice.org/27049 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
* Replace fallthrough comments with new SAL_FALLTHROUGH macroStephan Bergmann2016-05-101-2/+2
| | | | | | | | | | | | | | | | ...which (in LIBO_INTERNAL_ONLY) for Clang expands to [[clang::fallthrough]] in preparation of enabling -Wimplicit-fallthrough. (This is only relevant for C++11, as neither C nor old C++ has a way to annotate intended fallthroughs.) Could use BOOST_FALLTHROUGH instead of introducing our own SAL_FALLTHROUGH, but that would require adding back in dependencies on boost_headers to many libraries where we carefully removed any remaining Boost dependencies only recently. (At least make SAL_FALLTHROUGH strictly LIBO_INTERNAL_ONLY, so its future evolution will not have any impact on the stable URE interface.) C++17 will have a proper [[fallthroug]], eventually removing the need for a macro altogether. Change-Id: I342a7610a107db7d7a344ea9cbddfd9714d7e9ca
* clang-tidy modernize-loop-convert in h-l/*Noel Grandin2016-04-281-2/+2
| | | | | | | Change-Id: I843528327b25d18476f8959cabba16371213a48a Reviewed-on: https://gerrit.libreoffice.org/24460 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann2016-04-201-1/+1
| | | | Change-Id: I3f7f71f05db09219f0de3ec14bdb56bd16fb0c8d
* cppcheck: noExplicitConstructorCaolán McNamara2015-11-241-2/+2
| | | | Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
* use initialiser syntax for Sequence<OUString>Noel Grandin2015-11-151-2/+1
| | | | | | | | | | | | | | replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-101-2/+2
| | | | Change-Id: I7af8d14bfe7337fea3f18dbbd41eb32e0f7ae331
* loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann2015-11-061-1/+1
| | | | Change-Id: I2c65eac8aa0b24be7f0c8a083b21904c842ca1ee
* com::sun::star->css in i18npoolNoel Grandin2015-10-191-9/+8
| | | | | | | Change-Id: I13a290cba0f38c79eb2d93148b972d3d931c3862 Reviewed-on: https://gerrit.libreoffice.org/19445 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* Fix typosAndrea Gelmini2015-09-301-1/+1
| | | | | | | Change-Id: Iab78219aff60a7a45a319a96f326e27a6e8e25b8 Reviewed-on: https://gerrit.libreoffice.org/18953 Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
* Jewish Calendar: updated URL of borrowed codeAndrea Gelmini2015-09-291-1/+1
| | | | | | | Change-Id: Id937e0b1192ad0bf4ba4ecc38e69c55d024fe3c0 Reviewed-on: https://gerrit.libreoffice.org/18930 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* new loplugin: refcountingNoel Grandin2015-08-032-2/+4
| | | | | | | | | | | | | | This was a feature requested by mmeeks, as a result of tdf#92611. It validates that things that extend XInterface are not directly heap/stack-allocated, but have their lifecycle managed via css::uno::Reference or rtl::Reference. Change-Id: I28e3b8b236f6a4a56d0a6d6f26ad54e44b36e692 Reviewed-on: https://gerrit.libreoffice.org/16924 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Various #include <sal/log.hxx> fixupsStephan Bergmann2015-04-221-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
* remove unnecessary use of void in function declarationsNoel Grandin2015-04-152-4/+4
| | | | | | | | | | | | | | | | 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
* remove unnecessary parenthesis in return statementsNoel Grandin2015-02-231-1/+1
| | | | | | | found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
* implement css::i18n::XCalendar4 and LocaleCalendar2 service, tdf#63230Eike Rathke2015-01-262-2/+55
| | | | | Implementation only, new local date/time routines not used yet from the outside in this step.
* i18npool: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-181-1/+1
| | | | Change-Id: I6f2fabd9248b1b385439ff5c074342029fb660e0
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-121-1/+1
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* coverity#707920 Uninitialized scalar fieldCaolán McNamara2014-11-011-0/+2
| | | | | | | | and coverity#1250438 Uninitialized scalar field Change-Id: I029e033feb0805a0f744c68d43602217f9f01f6e
* back out wrong and confusing tools::Time comment changeEike Rathke2014-10-082-3/+3
| | | | | | | Apparently fc04f76336fdf8c96e35382cdeb497e2f939705c used some sed script to change all ... Change-Id: I0a8171aa474070bb1a8584e5c8c714fe34694618
* fdo#82577: Handle TimeNoel Grandin2014-10-012-3/+3
| | | | | | | | | | Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Include <algorithm> for std::min() and max()Tor Lillqvist2014-07-081-0/+1
| | | | Change-Id: I6a46e6466ab56aea14e16902cb51f9c3f088f30e
* New loplugin:stringconcatStephan Bergmann2014-07-011-1/+1
| | | | Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
* Fix hungarian prefix for calendarsIsamu Mogi2014-06-012-6/+6
| | | | | | | Change-Id: I78b3c0a8d32610e86e09ab5ad6da6cc4e0395926 Reviewed-on: https://gerrit.libreoffice.org/9566 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* i18npool: sal_Bool->boolNoel Grandin2014-04-232-7/+7
| | | | Change-Id: Id73ee64dbf8586743f0e436e004e663a65d4548f
* cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann2014-02-263-60/+60
| | | | Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
* Remove visual noise from i18npoolAlexander Wilms2014-02-262-4/+4
| | | | | | | Change-Id: I1cd4254713ce9c1bc7c232414c24e926f1f8a653 Reviewed-on: https://gerrit.libreoffice.org/8269 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* fdo#54938: Convert i18npool to use cppu::supportsServiceMarcos Paulo de Souza2013-12-182-7/+5
| | | | | Change-Id: I9acc496cd95c8362972fa0c41d35b77fc0715aba Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* convert OUString !compareToAscii to equalsAsciiNoel Grandin2013-11-112-2/+2
| | | | | | | | | | Convert code like if( ! aStr.compareToAscii("XXX") ) to if( aStr.equalsAscii("XXX") ) which is both clearer and faster. Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
* remove INPATH and PROEXTMichael Stahl2013-11-071-1/+1
| | | | | | | | | | | | | | - WORKDIR path is just workdir - INSTDIR path is just instdir - WORKDIR_FOR_BUILD is workdir_for_build - INSTDIR_FOR_BUILD is instdir_for_build - replace other usage of INPATH by combination of OS and CPUNAME Change-Id: Ie398387ebd82a968ec2605f2103c55b43a231482 Reviewed-on: https://gerrit.libreoffice.org/6601 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* use sensible indentationEike Rathke2013-09-051-414/+414
| | | | | | that always annoyed me Change-Id: I0c439ddb00d78590b465cd47db6e60d1939bd9f7
* renamed LocaleData to LocaleDataImpl to prevent confusionEike Rathke2013-09-052-12/+12
| | | | | | | ... between com::sun::star::i18n::LocaleData of com/sun/star/i18n/LocaleData.hpp and i18npool/inc/localedata.hxx Change-Id: Id23f67c1e3a654fd4f2886029ee45fcc1f466879
* finish deprecation of O(U)String::valueOf()Luboš Luňák2013-08-211-1/+1
| | | | | | | Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
* Mark as const/staticTakeshi Abe2013-08-091-5/+5
| | | | Change-Id: I5d51d7e01913ac9917578f8c9789312af9be3638
* mass removal of rtl:: prefixes for O(U)String*Luboš Luňák2013-04-073-4/+1
| | | | | | | | Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
* -Wunused-macrosStephan Bergmann2013-03-272-4/+0
| | | | Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
* resolved fdo#44286 some historical dates were decrementedEike Rathke2013-03-251-1/+18
| | | | | | | Depending on historical timezone data with odd offsets some historical dates were decremented by one day due to a rounding error. Change-Id: I3216b1c043fe5ab9035a558031f1a58efa0c3b3d
* fdo#46808, clean up some old queryInterface() callsNoel Grandin2013-03-041-1/+1
| | | | | | | | | clean up stuff like this xI->queryInterface( getCppuType((const Reference< XExtendedInputSequenceChecker>*)0) ) >>= xISC; to xISC.set(xI, UNO_QUERY); Change-Id: I3b16a38c2a363440f6079cfe6ae47f009d3940db