summaryrefslogtreecommitdiff
path: root/i18nutil/source
AgeCommit message (Collapse)AuthorFilesLines
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 McNamara1-0/+26
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-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
2013-11-14-Werror,-Wshift-sign-overflowStephan Bergmann1-1/+1
Change-Id: I8a7974baab4e32aa7fc53c4220ec4cb79e7b3074
2013-11-11convert OUString !compareToAscii to equalsAsciiNoel Grandin1-14/+14
Convert code like if( ! aStr.compareToAscii("XXX") ) to if( aStr.equalsAscii("XXX") ) which is both clearer and faster. Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-10-21Exempler->ExemplarCaolán McNamara1-1/+1
Change-Id: Id7e67d7e7bd4be6600a296a846512e9076c9df23
2013-10-21i18nutil: Add new enumeration values from ICU 52Thomas Arnhold1-1/+9
WaE: enumeration values 'USCRIPT_CAUCASIAN_ALBANIAN' and 'USCRIPT_MAHAJANI' not handled in switch [-Wswitch] With ICU 4.9 there is no major/minor anymore, it's only ICU 49 or ICU 52. So adapt the previous check, too. Change-Id: Id938937b305165d407ced473ea1725e97efe9124 See: http://icu-project.org/apiref/icu4c-latest/uscript_8h.html Reviewed-on: https://gerrit.libreoffice.org/6365 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2013-09-07s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar2-3/+3
Change-Id: I059fbee385a109069c70f3869021c8e2ee48fee1
2013-08-11Mark as constTakeshi Abe3-10/+10
Change-Id: I220204cc5ebec15402ae175aef110abad8b00267
2013-08-09Mark as const/staticTakeshi Abe2-4/+4
Change-Id: I5d51d7e01913ac9917578f8c9789312af9be3638
2013-07-29Mark as constTakeshi Abe2-2/+2
Change-Id: Ib78b25641ae20a3eb23545649f08b963e34c74ff
2013-06-03Fix icu version checks.Mark Wielaard1-3/+3
commit 30c303 "Make charmap.cxx compile with icu >= 4.4." was incomplete and had wrong version checks. After ICU 4.8 (4.8.1.1) the next version of ICU was 49 (49.1) so U_ICU_VERSION_MAJOR_NUM contains two digets (49), earlier that it was just one digit (4). The correct header to include to do version checks is unicode/uversion.h. USCRIPT_MANDAEAN is the old alias of USCRIPT_MANDAIC (same numeric value). U_JG_FARSI_YEH is only available since ICU 4.4. Note that on older icu versions (4.2.1) the 200B (ZWSP) Zero Width Space breakiterator testcase fails (others succeed). Change-Id: If73c1402239a28546077437e9382f0bd38642bad Reviewed-on: https://gerrit.libreoffice.org/4139 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák3-13/+12
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-27-Wunused-macrosStephan Bergmann1-22/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-02-23Remove unused preprocessor defined functions in the unicode utilsMartin Brown1-5/+0
Also remove corresponding unusedcode.easy entries and an unusedcode.easy entry that I could not find in the master branch Change-Id: If329fe1226bd40f86cc0fd8d912876bf7a7984b2
2013-02-19make it possible to build with system icu 4.2 (RHEL-6)Caolán McNamara1-9/+11
Change-Id: I69bf7bc33a619c4aa9483e2dc3d5540e4dfa7458
2012-12-06mvoe rtl_(u)string_alloc to salLuboš Luňák1-2/+2
No point in hidding something useful like this in some helper lib. Change-Id: I7332d7f6bd428378cd19e7e95ad130771a541140
2012-10-04sal_Bool->bool in i18nutilNoel Grandin1-2/+2
Change-Id: Iafb0095a1320ad785e1d0ccbaeac9f26cc4dd02f
2012-09-03these 9 scripts are in icu >= 4.8, but not in 4.6.1Caolán McNamara1-4/+9
Change-Id: I418968e0a8959730e5ef0c20769fd07ca1f8f23c
2012-09-03Add a way to get a sample language for a given scriptcodeCaolán McNamara1-0/+473
Change-Id: I3a0f561aa2838870c7fc35b2a976f133f3667104
2012-07-13re-base on ALv2 code. Includes:Michael Meeks4-92/+56
cws mba34issues01: #i117709#: make sure that parent of error message box is visible Patch contributed by Mathias Bauer http://svn.apache.org/viewvc?view=revision&revision=1172346 i#119036 - improve user experience of certification dialog - only shown once Patch contributed by Oliver-Rainer Wittmann http://svn.apache.org/viewvc?view=revision&revision=1299727
2012-07-06fdo#42986 - UI wide screen format (16:10): Add Page sizeRob Snelders1-1/+2
Change-Id: Ie769c9a65e85f91395b3495fadb6f5e688cbe9af
2012-06-21re-base on ALv2 code.Michael Meeks5-115/+70
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-15use new configmgr api and devomit visible codeCaolán McNamara1-52/+7
Change-Id: I386725e07c34336249dfc935b1e9f9624d1d3be8
2012-05-10Fix fdo#49720: Dropped unnecessary "sh -c" from popen callStephan Bergmann1-1/+1
Change-Id: I5de4ce4e26d995c447c99c8558f621dba6cdf110
2012-04-23fdo#42986 Add Presentationsize 16:9 WidescreenRob Snelders1-2/+4
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi1-1/+1
2012-03-08fold i18npaper into i18nutilCaolán McNamara1-0/+522
It's too small to justify standalone existence. We can accumulate i18n things we link to directly into i18nutil and rework i18npool uno implementions in terms of thin wrappers over i18nutil and prefer linking to i18nutil internally and leave the uno forwarders for use by external components and scripting
2012-03-08de-uno-ize ScriptTypeDetectorCaolán McNamara1-0/+141
leave a UnoScriptTypeDetector implementation that points to the trivial ScriptTypeDetector for external consumers, e.g. sdext
2012-02-08unicode: delete unused unicode:getCharType() methodGreg Kroah-Hartman1-64/+0
2012-02-08unicode: delete unused unicode:isTitle() methodGreg Kroah-Hartman1-1/+0
2012-02-08unicode: delete unused unicode:isPunctuation() methodGreg Kroah-Hartman1-1/+0
2012-02-08unicode: delete unused unicode:isBase() methodGreg Kroah-Hartman1-1/+0
2011-12-21callcatcher: remove some unused codeCaolán McNamara1-6/+0
2011-10-21expose an API to map from UScriptCode to i18n::ScriptTypeCaolán McNamara1-0/+57
2011-09-02move to comphelper, and renameCaolán McNamara1-3/+3
2011-09-01refactor x_rtl_uString_new_WithLength to be consistentCaolán McNamara1-5/+6
i.e. change x_rtl_uString_new_WithLength to always create a rtl_uString with ref count of 1, like rtl_uString_new_WithLength, so requiring: either the explicit use of rtl_uString_release or passing ownership to an OUString via OUString(pStr, SAL_NO_ACQUIRE) which will do the same in its dtor