summaryrefslogtreecommitdiff
path: root/i18npool
AgeCommit message (Collapse)Author
2015-04-22Clean up odd sal::static_int_cast<sal_Bool> usesStephan Bergmann
Change-Id: Idbd1cdb06315b96dc9f45e34108a1af45229ed2f Reviewed-on: https://gerrit.libreoffice.org/15484 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-04-22both scientific formats are of type medium, tdf#88835 follow-upEike Rathke
Otherwise, with one of type long, we'd need to set that to default as well, defaults are per type. Visible in a dbgutil build terminal output when the locale is selected in the number formatter dialog for the first time: SvNumberFormatter::ImpAdjustFormatCodeDefault: no long type default XML locale data FormatElement group of: ScientificFormatskey1 ja-JP requested ja-JP loaded SvNumberFormatter::ImpAdjustFormatCodeDefault: no long type default XML locale data FormatElement group of: ScientificFormatskey1 ko-KR requested ko-KR loaded Change-Id: I3e445fff3ca2dd834bd19c609a2ee2f68e704093
2015-04-22tdf#88835 2 digits in exponent for default scientific formatLaurent Balland-Poirier
Modify all locale data to set ScientificFormatskey2 (0.00E+00) as default for scientific format instead of ScientificFormatskey1 (0.00E+000) Change-Id: Ib8f3d22af82c078468ea70ebae0b078ac55a0003 Reviewed-on: https://gerrit.libreoffice.org/14593 Tested-by: Eike Rathke <erack@redhat.com> Reviewed-by: Eike Rathke <erack@redhat.com>
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann
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 Grandin
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
2015-04-12cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I452a204616d98e1071b7bf43ad457c6a2376cf91
2015-04-12unnecessary castCaolán McNamara
Change-Id: I57ad3b2492721115e0ea7ebd9f43480e93b0c8ab
2015-04-12unnecessary strcpyCaolán McNamara
Change-Id: I98f12a01002a08d51f2232482cd015564cdb27b2
2015-04-09loplugin:staticmethodsNoel Grandin
Change-Id: Ie348778ea666c24e95e048386547f301083a0017
2015-04-07loplugin:staticmethodsNoel Grandin
Change-Id: Id3d6b50e07ea0850af18ab9bdadfffe0e4602aab
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
Change-Id: Icaddb957aa5c1e5a409362d18e445784b0537507
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
Change-Id: If4b6022129e19cdfedfda9ddf92b907f67c3063b
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I59b111341fc8153088882ac24322f714dc69417a
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
Change-Id: I7b184414d822e7d3f4f7694dcea540d731f970d9
2015-03-24do not include non-mask bits in masksEike Rathke
TransliterationModules_FULLWIDTH_HALFWIDTH, TransliterationModules_UPPERCASE_LOWERCASE and TransliterationModules_LOWERCASE_UPPERCASE are not mask bits but values, so need to be treated differently. Change-Id: I6726bddab4fec1c222a318de61eaa41a402f6286
2015-03-23fixed a type in NumberingLevelACTom
Change-Id: I98d80f9153abe9f536b818c899008bb865b1bd34 Reviewed-on: https://gerrit.libreoffice.org/14962 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-03-11V668 no sense in testing the result of new against nullCaolán McNamara
Change-Id: I4a33bd92fc8448638a4bfe1eab7e5041a4c5cc39
2015-03-11i18npool: fix spurious regex ^ matching in TextSearch::searchForward()Michael Stahl
Thanks to Eike for finding this: The anchors ^ and $ now anchor at the selection boundary because the only text the regex matcher gets passed is the selected text. This in two paragraphs aaa bbb aaa bbb aaa bbb aaa bbb when the selection spans from the second aaa to the third bbb, for "^aaa" finds the second aaa, where previously it found the third aaa at the real paragraph start. This may not be expected by the user, because the behavior of ^ is described as "Match at the beginning of a line" (or paragraph in our case), which the previous implementation did. (regression from 806ced87cfe3da72df0d8e4faf5b82535fc7d1b7) Unfortunately it's not obvious how to implement the same in searchBackward(). Change-Id: I07f7a8476b672d9511fa74ca473c32eea427698f
2015-03-10tdf#89665: i18npool: speed up TextSearch::searchBackward()Michael Stahl
There does not appear to be a good reason why searchBackward() needs to call transliterate() on the entire passed string, so don't do that, as in the previous commit for the other direction. Change-Id: Iadfca806da89bf8825e5a3df7fcad64ea08d7f9c
2015-03-10tdf#89665: i18npool: speed up TextSearch::searchForward()Michael Stahl
There does not appear to be a good reason why searchForward() needs to call transliterate() on the entire passed string. Restricting it to the passed range speeds it up from 104 billion to 0.19 billion callgrind cycles when built with GCC 4.9.2 -m32 -Os. Change-Id: I440f16c34f38659b64f1eb60c50f0e414e3dfee8
2015-02-28Typo: skiped->skippedJulien Nabet
Change-Id: I88c53ade0101cfd7735a45b2038879bd027b0314
2015-02-2718npool: these variables should be signedMichael Stahl
Change-Id: I6519a4c9da2a95efcc54288b3ef9d0a19ccfef3c
2015-02-26tdf#89665: i18npool: fix pathological transliterate slow-pathMichael Stahl
TransliterationImpl::transliterate() has a slow-path for the case when more than one trasliteration module is cascaded which swaps 2 uno::Sequence. This is unbelievably slow because non-const Sequence::operator[] does a function call into cppu to check whether COW has to be done. This speeds up transliterate() from 344 billion to 101 billion callgrind cycles when built with GCC 4.9.2 -m32 -Os. Commit d2771b63b94a8aae3c25c83e9dae9f83242f46c1 added a second transliteration module that is enabled by default, making the problem visible, especially with long paragraphs in Writer. Change-Id: I2799df9173ac73aab8c4eb4cc6f592976b06c8da
2015-02-23remove unnecessary parenthesis in return statementsNoel Grandin
found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
2015-02-11typos and nitpicksEike Rathke
Change-Id: I596e9f0941dbc9d2106767c19569e9771c42b076
2015-02-11translate documentation of Weighted Levenshtein DistanceEike Rathke
... before the next horrible attempt arrives, use my own horrible translation ;-) Change-Id: I1dd72772977717da6a2da048adbfd27861e8c191
2015-01-28Use vector::dataStephan Bergmann
...in some places where it is obvious that it does not hurt that for an empty vector the obtained pointer is not necessarily a nullptr. Change-Id: Id5d66b1559ca8b8955d379bcdbfae6986ef46a51
2015-01-26implement css::i18n::XCalendar4 and LocaleCalendar2 service, tdf#63230Eike Rathke
Implementation only, new local date/time routines not used yet from the outside in this step.
2015-01-23fix 64-bit build after OUStringBuffer changeMichael Stahl
Change-Id: I6c5295110292ae48ff0cb3472e4dbea287645d2a
2015-01-22This can be called really early, create the dir.Jan Holesovsky
Change-Id: Ie0097c20429104f10eb188ae0cbfcf5bc5a44e14
2015-01-20Some more loplugin:cstylecast: i18npoolStephan Bergmann
Change-Id: Idbb928b2898bc6b2b5bfe3bdbfde0b81d68e4473
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2015-01-07changed default value for long datetime, zh_CN locale dataKevin Suo
* Added a space to formatindex 46, to make it look nicer; * Long datetime default changed to formatindex 47. Change-Id: I50e05f1a4432ab4373fa0034a390658b59775f0b Reviewed-on: https://gerrit.libreoffice.org/13650 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-07fdo#87626: Improve Simplified Chinese numbering typesKevin Suo
This commit improves the numbering types for zh_CN locale. Since we can set more than 8 LC_NumberingLevel in the locale data file, I am adding all the commonly used numbering types in the list. This will make it easy to apply numbering. Change-Id: I067904b875046682cd56a7051258ffffab242c25 Reviewed-on: https://gerrit.libreoffice.org/13646 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-12-19fdo#87471 update locale data for French Burkina Faso [fr-BF]Eike Rathke
Change-Id: I7f6311c541db507236f6c6ab999aee5db8683f33
2014-12-19fdo#87466 update locale data for Moore Burkina Faso [mos-BF]Eike Rathke
Change-Id: I66109a89a7aced1a4595825ee587a1844b6864e8
2014-12-19add more date formats for [pt-PT]Eike Rathke
Apparently commonly used, as suggested by Sérgio Marques Change-Id: I6cdbcd96034ec7bb04f364ec5747b069e32ec379
2014-12-18i18npool: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I6f2fabd9248b1b385439ff5c074342029fb660e0
2014-12-18fdo#39440 reduce scope of local variablesMichael Weghorn
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-17Introduce rtl::OUStringLiteral1Stephan Bergmann
...to use single ASCII character literals "more directly" in the OUString API (instead of having to go via an intermediary OUString ctor call). Especially useful for character literals that are defined as const variables or via macros ("direct" uses of character literals in the OUString API can often simply be replaced with single-character string literals, for improved readability). (The functions overloaded for OUStringLiteral1 are those that are actually used by the existing LO code; more could potentially be added. The asymmetry in the operator ==/!= parameter types is by design, though---writing code like 'x' == s is an abomination that shall not be abetted.) Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f
2014-12-12i18npool: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I82fea345a05c0327af3b75ccfd3358f54523c082
2014-12-05fdo#83752: date-time cell becomes text string when editing, zh_CN localeKevin Suo
In the locale data xml file, formatindex 47 is used for date-and-time editing. If the format code does not match the defined date/time separators, it will cause the cell value to be treated as string text (rather than a date time value). Change-Id: I75a59d943d832f28a0a6153a17e6f671e5328abd Reviewed-on: https://gerrit.libreoffice.org/13306 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-12-04add missing newline to incError...() callsEike Rathke
Change-Id: I8ab36fd1e93b0d1297c95f47a3efd3603fd58c8f
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-11fdo#51008 change [pt-PT] group separator to no-break spaceEike Rathke
Change-Id: Ibc658c6d1db5f1d5de8fd02d6eb0e269a625644f
2014-11-06use correct LCID and English color keywordEike Rathke
As could be seen when running in dbgutil build or with environment variable OOO_ENABLE_LOCALE_DATA_CHECKS=1 Change-Id: Iaf3b4cbe58acea9fa8aed0b1793e0ff28c089de6
2014-11-06fdo#85954: Improvements to Simplified Chinese (zh-CN) locale dataKevin Suo
Change-Id: I0ba08182f1c2b75a5b625f7858c23bcd8ba2dce5 Reviewed-on: https://gerrit.libreoffice.org/12284 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-11-01coverity#707920 Uninitialized scalar fieldCaolán McNamara
and coverity#1250438 Uninitialized scalar field Change-Id: I029e033feb0805a0f744c68d43602217f9f01f6e