summaryrefslogtreecommitdiff
path: root/l10ntools/source/cfgmerge.cxx
AgeCommit message (Collapse)Author
2016-02-09Remove excess newlinesChris Sherlock
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-18loplugin: unused return valuesNoel Grandin
Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-15loplugin:unusedmethods unused return value in l10ntools,linguisticNoel Grandin
Change-Id: I11571c25e527787a2054bc8106a27c44b8a96116
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I87dbff06345f24064b87c375e5381cb27118e614
2015-09-17boost->stdCaolán McNamara
Change-Id: Ifde84627578283bd057d7393eb7e5578ef5c029a
2015-08-20new loplugin automemNoel Grandin
find places where we should be using std::unique_ptr Change-Id: I5b9defe778fdc4738ecea381215396874db59e66
2015-05-28new clang plugin: loopvartoosmallNoel Grandin
Idea from bubli - look for loops where the index variable is of such size that it cannot cover the range revealed by examining the length part of the condition. So far, I have only run the plugin up till the VCL module. Also the plugin deliberately excludes anything more complicated than a straightforward incrementing for loop. Change-Id: Ifced18b01c03ea537c64168465ce0b8287a42015
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-04-04Clean up unreferenced functionsStephan Bergmann
Change-Id: Id2c90088298d389bd1cd8efad9aa26100965d6a2
2014-02-26Remove visual noise from l10ntoolsAlexander Wilms
Change-Id: Ia10056ae9e1b9adfe74f299afac5c3c84fa8cea7 Reviewed-on: https://gerrit.libreoffice.org/8278 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-17l10ntools: sal_Bool -> boolStephan Bergmann
Change-Id: Ifffdc0942b83b5761cbbbfc5db7d241be60815cb
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString constructorNoel Grandin
Convert code like: OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OString aKeyName("NDX"); which compiles down to the same code Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
2013-06-17l10ntools: getLength() -> isEmpty()Zolnai Tamás
Change-Id: I9272c244e22d87fbd2547f4fcb6b94493ffaad3a
2013-05-02Some code scrubingZolnai Tamás
Add doxygen documentation for classes and methods Delete useless comments. Add include guards where missing. Delete some useless typedef. Change-Id: I9bba16560790239d7775fcd40981465e70e5d437
2013-05-02Make localization a bit more effectiveZolnai Tamás
1. get rid of some unefficiency The "old" executables used to parse items which has other language than en-US. To this items executables search MergeEntrys(read from po) and change the content if possible. This mixed localization method not need any longer. -cfgex: cfgmerge:WorkOnText() -xrmex: xrmmerge:WorkOnText() -transex3: export:PrepareTextToMerge() 2. Change the container of MergeData to get a bit efficiency. The new MergeDataHashMap is exploit that in most case the insertion and search happen in the same order.(similar to fifo) So add an iterator-chain to define an insertion order in the original hashmap. Every call of find it is a hint that the next element, to the last found one, is the searched one. If not than search such like in a HasMap. 3. Set up some order in helpex Helpex is the only one, which was not used to merge strings in the same order as export, so change it to work effective with the new HashMap. Helpex works with all file of a specific directory and po files contain the strings of these files in lexical order so use the same order for merge.(HelpTarget.mk) 4. Make export use MergeDataHashMap a bit more effective -The same MergeData contains strings to all language, so it need to get only once. -Just text entrys have MergeData, others not need to search for it. (e.g. bitmap) Plus delete some unused code. Change-Id: I6ec80cd2323ffea8f783d0b59dc89ca7eac3c205
2013-04-23L10ntools: remove some lang vectors from parsingZolnai Tamás
Change-Id: I3b9ef50d8e0c1e99d5b535d95a5add90a1cbaf03
2013-04-13Fix warning: unused variable 'sPlatform' [loplugin]Tor Lillqvist
Change-Id: I2d6c7bae4f202a00f89d22b63370c128cc27c7c4
2013-04-13l10ntools: export use only en-USZolnai Tamás
So no need to ad it in a commandline parameter. No need to use a vector to store languages. Change-Id: I1f7d3bd131b5a9ff23d403cee4ac6804ae8e0a0b
2013-04-13Remove obsolote 'empty string -> "-"' behaviourZolnai Tamás
Change-Id: I1d81d4c5716c397b84c0a8959b21beacbbbf1138
2013-04-13Delete obsolote platform from l10ntools mergeZolnai Tamás
Change-Id: I5e5b87355d3d6e369c8fccd7078581758abb3b10
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
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
2013-03-31There is no <Arg> tag in xcu localizable stringsZolnai Tamás
So no reason to work with it. So can use helper function after make it to handle single quote. Change-Id: Ic2eb901148c3ae31316607b41350bbad79a639db
2013-03-31Make a bit cleaner transformation of help stringsZolnai Tamás
*Not escape tags and double quots in tags, but find tags(icu regexp) when merge and use this infromation to make strings valid. *Define a new Quot function for helpex, which works with icu UnicodeCharacter. *Move tag search to xmlparse.cxx and use icu just in helpex. *QuotHTML not unescape just replace xml charcters. (unescaping is also useless in uimerge.cxx) *Move UnQuotHTML() to helper. (was used it in xmlparse.cxx and cfgmerge.cxx) *Use UnQuotHTML() in uimerge.cxx too. Change-Id: Ice8940ef69279709a1c5d84c6ae1b0d62a71ca76
2013-03-27Refactor l10ntoolsZolnai Tamás
Delete unused functions. Make Export class more encapsulated. Move to local that functions which are used only in one file. Common contans method which are used by all executables. Helper contains methods belong to xml parsing. Change-Id: I28773a2c7eea90da7df7f32720fd38de2cb661ac
2013-03-25Remove unneeded project and projectroot parametersZolnai Tamás
Plus avoid use of Export::sLanguages member outside of the class. Change-Id: I33702816fdb4980d690cfe8fcd8cc3fbd0df1dd8
2013-03-16Get rid of generating temporary sdf fileZolnai Tamás
Working: 1. Localize add header to po files. 2. Executables append po entries to po files. 3. Localize delete entryless po files and empty directories Plus a bunch of clean up. Change-Id: I58e300eaee4cee948203cc9d3e642ca9462d0d26
2013-03-04doubled includesThomas Arnhold
Change-Id: I70ec796188e2388e1e4d699126f7ae817f5ff86e
2012-10-08Correct wrong memory addressingZolnai Tamás
Some global variables in export.cxx and cfgmerge.cxx pointed to OString databuffer and after these strings are destroyed the pointers refered to invalid address. Use OString instead of const char* Change-Id: I4ea43f4b3772ef3370d79336559d39a67400fe2b
2012-10-05Extract argument-handling to one source fileZolnai Tamás
Plus cleanup -Delete unneeded global variables -Delete -e input flag in general -Delete helpex's -x, -y and -lf input flags These are all unused Change-Id: I83db62543a728ed75fa6893c45566f11d1237c69
2012-10-01re-base on ALv2 code.Michael Meeks
2012-08-14-Werror,-Wunused-private-field (Clang towards 3.2)Stephan Bergmann
Change-Id: I4b541b2a0de4fd395a613a47c9a3868199f42513
2012-07-30Typo ressource -> resourceStephan Bergmann
Change-Id: Id13e7acfbe34eca5e124c9032d36d6f158bfb831
2012-05-04gbuild conversion l10ntools moduleDavid Ostrovsky
Change-Id: I Iea9a77f19856dd870eb72fa57249f959cdd7000c
2012-04-14export x-comments to sdf file into the 'helptext' fieldAndras Timar
helptext field has not been in use for a while, so we can use that to hold the x-comment
2012-02-15Various string function clean upStephan Bergmann
Added: * rtl::OString::matchL * rtl::OString::endsWith * rtl::OString::endsWithL * rtl::OString::indexOfL * rtl::OString::replaceFirst * rtl::OString::replaceAll * rtl::OString::getToken * rtl::OUString::endsWith * rtl::OUString::replaceFirst * rtl::OUString::replaceFirstAsciiL * rtl::OUString::replaceFirstAsciiLAsciiL * rtl::OUString::replaceAll * rtl::OUString::replaceAllAsciiL * rtl::OUString::replaceAllAsciiLAsciiL * rtl::OUString::getToken plus underlying C functions where necessary Deprecated: * comphelper::string::remove * comphelper::string::getToken Removed: * comphelper::string::searchAndReplaceAsciiL * comphelper::string::searchAndReplaceAllAsciiWithAscii * comphelper::string::searchAndReplaceAsciiI * comphelper::string::replace * comphelper::string::matchL * comphelper::string::matchIgnoreAsciiCaseL * comphelper::string::indexOfL Also fixed some apparent misuses of RTL_CONSTASCII_USTRINGPARAM -> RTL_CONSTASCII_STRINGPARAM.
2012-02-10Various more l10ntools clean upStephan Bergmann
2012-02-08Various more l10ntools clean upStephan Bergmann
2012-02-08Freed l10ntools from tools/stream.hxxStephan Bergmann
Removed completely cases of convoluted code to remove UTF-8 BOM from files or translate line endings. Hopefully none of this was actually necessary (on Windows?).
2012-02-08update unused listCaolán McNamara
2012-02-02Reduced tools/string usageStephan Bergmann
plus some preliminary cfgex clean up.
2012-01-31ByteString->rtl::OStringCaolán McNamara
2011-12-12ByteString->rtl::OStringCaolán McNamara
2011-12-07convert some archaic l10ntools codeCaolán McNamara
2011-11-28ByteString->rtl::OUStringToOStringCaolán McNamara
2011-11-28ByteString::GetToken->comphelper::string::getTokenCaolán McNamara
2011-11-27remove include of pch header from l10ntoolsNorbert Thiebaud
2011-11-08MERGE_SOURCE_LANGUAGES is never defined, removing ifdefsAndras Timar
2011-09-20remove obsolete command line switches -UTF8 and -NOUTF8Andras Timar
2011-09-20remove obsolete command line switch -ISO99Andras Timar
2011-09-13no route left to set encoding, only RTL_TEXTENCODING_MS_1252 is possibleCaolán McNamara