summaryrefslogtreecommitdiff
path: root/i18nutil/source/utility/unicode.cxx
AgeCommit message (Collapse)AuthorFilesLines
2018-07-02Explicitly qualify ICU types with icu:: namespaceEike Rathke1-4/+4
It will be required by ICU 61 anyway, see https://ssl.icu-project.org/repos/icu/trunk/icu4c/readme.html#RecBuild Change-Id: Ia051e8e2aa64b0e32a7f16a2afebaef0e4ebf531 Reviewed-on: https://gerrit.libreoffice.org/46739 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit ad3b7c27cdc957a8a38876c040e86a81c3cf7003) Reviewed-on: https://gerrit.libreoffice.org/56713 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> (cherry picked from commit 63ebde2117d768c974252db9c4d9cce1ef4334c6)
2017-11-20Upgrade to ICU 60.1Eike Rathke1-0/+11
Change-Id: I6d90f51ee88c4e1005edbaa93d23cfb94cb2acfb Reviewed-on: https://gerrit.libreoffice.org/44871 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2017-11-17Revert "Upgrade to ICU 60.1"Eike Rathke1-11/+0
This reverts commit f643e1f687e27e7f46c53d7298772d4dddb3e660. Failing in firebird, back to the drawing board.. Change-Id: I087d2fa6e81cf713458b1c9645edc7c1facf148c Reviewed-on: https://gerrit.libreoffice.org/44843 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2017-11-17Upgrade to ICU 60.1David Tardon1-0/+11
Change-Id: I07837be7faac0b2238b0cba8fb981e4c4d24c498
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 Grandin1-276/+17
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-22Use rtl::isAscii* instead of ctype.h is* with sal_Unicode argStephan Bergmann1-1/+1
Change-Id: I6eba985f41b78160d2377b2cd4c27ec85ade33df
2017-02-08coverity#1371289 Missing move assignment operatorCaolán McNamara1-1/+1
Change-Id: Idc26faf904f0c89cfd66f53bb311d8ce9b41eaab
2017-01-14coverity#1371289 avoid the need for an assignmentCaolán McNamara1-5/+5
Change-Id: I7f9b8d21652c79642f9a2f916ad0609c8abd430b
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-02-15Rename rtl::isValidCodePoint -> rtl::isUnicodeCodePointStephan Bergmann1-2/+2
...and fix its documentation, and use it throughout the code base. Change-Id: I349bc2009b1b0aa7115ea90bc6ecd0a812f63698
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 Grandin1-3/+3
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-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-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-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
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-02-18i18nutil: sal_Bool -> boolStephan Bergmann1-2/+2
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
2013-11-14-Werror,-Wshift-sign-overflowStephan Bergmann1-1/+1
Change-Id: I8a7974baab4e32aa7fc53c4220ec4cb79e7b3074
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-08-09Mark as const/staticTakeshi Abe1-2/+2
Change-Id: I5d51d7e01913ac9917578f8c9789312af9be3638
2013-07-29Mark as constTakeshi Abe1-1/+1
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-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-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 Meeks1-23/+14
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-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-04-27i18nutil-glibc-braindamage-workaround.diff: build failure with glibc-2.4Petr Mladek1-0/+5
glibc 2.4's langinfo.h does "#define CURRENCY_SYMBOL __CURRENCY_SYMBOL" which (obviously) breaks UnicodeType::CURRENCY_SYMBOL
2010-10-14Add vim/emacs modelines to all source filesSebastian Spaeth1-0/+2
Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun ↵Jens-Heiner Rechtien1-4/+1
Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision)
2008-04-10INTEGRATION: CWS changefileheader (1.5.46); FILE MERGEDRüdiger Timm1-23/+18
2008/03/31 16:01:56 rt 1.5.46.1: #i87441# Change license header to LPGL v3.