Commit graph

2569 commits

Author SHA1 Message Date
Eike Rathke
80bbe6d1ca slightly optimized operator==() and equals()
Change-Id: I05bacddf8cf61adbbcaed03c83ae42b06e76160a
2013-03-29 14:09:00 +01:00
Eike Rathke
33f26ca42f added LanguageTag::getGlibcLocaleString()
Change-Id: I5e77026f5c016d912fa342a5e1bca08eb445b15c
2013-03-28 14:59:45 +01:00
Eike Rathke
4fb6281270 explicit 'en' fallback not needed for 'en-US' reference
If 'en-US' was given, 'en' is part of default fallbacks anyway.

Change-Id: I4f78c60bccd55fcf90f7c7fc99cda25ff1213db8
2013-03-28 13:29:58 +01:00
Eike Rathke
a1554c121f added LanguageTag::getFallback()
Similar to comphelper::Locale::getFallback() but implemented
differently. comphelper::Locale is to be removed later.

Change-Id: I99dc7b51029df102705f2608245c91d81dc96788
2013-03-27 22:20:05 +01:00
Eike Rathke
c3763ef570 rtl::OUString to OUString
Change-Id: I546132fbd8dbb621a8b436648d1e21a4dea79591
2013-03-27 20:38:19 +01:00
Eike Rathke
d35ed10d1d handle x-... privateuse
Change-Id: I9ff44e7f3d3fd8fccc5b7134c18184040f797826
2013-03-27 20:38:19 +01:00
Eike Rathke
46f47a6ec2 handle x-... privateuse conversion
Change-Id: I293ba38f02a93d161fd05beba02f2dcd974c63d3
2013-03-27 20:38:18 +01:00
Eike Rathke
a0edc3fc9c rtl::OUString to OUString
Change-Id: I2ce2b88532a22a8f0379605523e5e67b974bb6ba
2013-03-27 20:38:18 +01:00
Eike Rathke
6558e62d58 defined some x-... privateuse language tags
Change-Id: I1a4e00c677f7e5012831c0b36290c8585e45e474
2013-03-27 20:38:18 +01:00
Stephan Bergmann
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
Stephan Bergmann
cd235e389d No (more/apparent) need for LIBO_WERROR
Change-Id: I8483047631f512513cae017fdbb2dee77ce0f52f
2013-03-26 17:21:47 +01:00
Eike Rathke
6013fe19a4 resolved fdo#44286 some historical dates were decremented
Depending on historical timezone data with odd offsets some historical
dates were decremented by one day due to a rounding error.

Change-Id: I3216b1c043fe5ab9035a558031f1a58efa0c3b3d
2013-03-25 21:29:27 +01:00
Peter Foley
db754e891e fix breakiterator with Library_merged
Change-Id: I78327067b977b522d34cc734c83c252e22d208b6
2013-03-24 18:25:04 -04:00
Andras Timar
38fb046257 fdo#54278 Only en-US help pack should contain en-US help
Language of the installer and language of the installed help files are two
separate things. It was not good that they were handled in the same array.
Now all help packs has English + localized installer.
Only en.US help pack isntalls en-US help.
Also, maintaning the list of languages, that are not supported by Windows,
is pointless. What Windows? Windows 8 supports a lot more than Windows XP.

Change-Id: I075a18648796a42609329ead9e8e6a9da9c1fef3
2013-03-19 07:59:52 -07:00
Thomas Arnhold
5bb4a2ba1d further OUString cleanup
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19 14:18:10 +01:00
Andras Timar
83cdc5ca37 fdo#62384 Turkish lira sign shall precede the numerical figure without a space
Change-Id: I5919fbb272f82deeb951906f5b82dc196e856a48
2013-03-17 20:52:11 +01:00
Eike Rathke
fb26196ce6 added LanguageTag::equals(), fdo#62278 related
Change-Id: I6471f8eaa46d9203c75569436b233a09fe337910
2013-03-13 16:48:12 +01:00
Thomas Arnhold
a2454a42ad fdo#43460: use isEmpty()
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
2013-03-09 20:32:39 +01:00
Eike Rathke
ccc349d3ab regex: don't loop 10000 identical matches to find a single $ anchor
Change-Id: Ic130ecc4b0b6d58ba7ef063040bd9a11a90db425
2013-03-09 18:50:33 +01:00
Eike Rathke
3bc5cb3c48 regex: handle zero-length matches, fdo#60259 related
Also in backward search ignore all zero-length matches except the text
end single $ anchor search. The anchor search is a valid match, treat it
as such in Writer.

This still doesn't solve the backward $ backward search, the convoluted
Writer code in that place apparently never worked, someone more familiar
with those internals should straighten out the mess.

Change-Id: I2bc83cdcfe6425f9bebf06e23e879bc79b82daa9
2013-03-09 18:50:33 +01:00
Eike Rathke
c00601dab0 fdo#60259 prevent crash when searching backward for $ anchor regex
Old code wasn't prepared that searching for $ may actually return a
result set pointing behind the search string which it does with the ICU
regex engine.

Change-Id: I95612f676008cf6758a5ade3d674f38168944a4d
2013-03-09 18:50:33 +01:00
Herbert Dürr
f932a3f119 i#121633# fix ignore-case problem caused by i18nsearch API mess
(cherry picked from commit 7644ec176049937b588fe171a553c9a07b375792)

Change-Id: If1a9f2bd3290a264fed280df6d1718652dbdcb5c
2013-03-07 21:23:11 +01:00
Herbert Dürr
5315388927 i#121633# fix search for upper-case character classes
in ignore-case regular expressions

(cherry picked from commit b7ee1803453d3a766ce3a833892e1c208aacf8ff)

Change-Id: I6b0347182b977eda24a1c3c88f8d430b761e075d
2013-03-07 21:19:17 +01:00
Herbert Dürr
b514f0ce86 i#121482# fix backwards regexp search for matches overlapping search start
(cherry picked from commit 854f4ad6c57be62bd922df08f603d8bfb7b918a5)

Additionally fixed unit test, searching backward shall not produce a
different result from searching forward. (erAck)

Change-Id: I952509276875441005e6a4036e6c3089be627dd9
2013-03-07 21:00:36 +01:00
Herbert Dürr
e6288a5d88 #i121482# fix attributed text search for regular expression patterns(cherry picked from commit e7fc662799e7e936753e24db8d6d3849c12b3ff4) 2013-03-07 20:37:05 +01:00
Herbert Dürr
8c26876fea i#120598 better emulation of regexp word-start and word-end operators
The emulation of the word-start and word-end operators provided
the previous regexp engine can be approximated much better
by using the ICU-regexp exngines powerful look-around feature.

Patch-by: Herbert Duerr
Found-by: ldgolds33@yahoo.com
(cherry picked from commit ec7ef30693f10315ce80a8f5d7325a0e40855e66)

Change-Id: If375d6d5bb93b3873f657673f7581f0884b3b35e
2013-03-07 19:44:31 +01:00
Herbert Dürr
9a93475d6e i#118925# enhance textsearch's match-group references
to work for look-ahead/look-behind
(cherry picked from commit 3b83c404c56e5db5bab29ffee41f02822410d625)

Conflicts:
	sw/source/core/crsr/findtxt.cxx

Change-Id: Ia5b31628b0f2af8f93132afa4b2eabd2f533bb91
2013-03-07 19:04:50 +01:00
nccuong
a6b9173005 fdo#60148 Clean up warnings from the Clang compiler plugin
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671
loplugin: clean warnings: unused variables, incorrect indentation and log area.
Reviewed-on: https://gerrit.libreoffice.org/2544
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-03-06 12:59:26 +00:00
Thomas Arnhold
65610d54b4 remove trailing whitespaces
Change-Id: Ib6684fe00e063e150af30477fd704d9b3f029282
2013-03-04 22:22:04 +01:00
Andras Timar
b3f43db9e9 fdo#61602 use the new Turkish Lira sign
Change-Id: Ic07d9147ad559573e4e6a3818ee78b8dfcedf12f
Reviewed-on: https://gerrit.libreoffice.org/2482
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-03-04 19:04:37 +00:00
Thomas Arnhold
33d6a7b2d7 doubled namespaces
Change-Id: I0f6a34a459c1492a69afa3ef6bcbaa8ed7639a22
2013-03-04 13:58:40 +01:00
Noel Grandin
57dbe20c2b fdo#46808, clean up some old queryInterface() calls
clean up stuff like this
  xI->queryInterface( getCppuType((const Reference< XExtendedInputSequenceChecker>*)0) ) >>= xISC;
to
  xISC.set(xI, UNO_QUERY);

Change-Id: I3b16a38c2a363440f6079cfe6ae47f009d3940db
2013-03-04 10:13:19 +02:00
Thomas Arnhold
f5ca04caca Related to fdo#60724: correct spelling
Using the autocorrect list of LibreOffice
extras/source/autotext/lang/en-US/acor/DocumentList.xml

Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657
Script: http://pastebin.ca/2327716
2013-03-03 17:14:16 +01:00
Thomas Arnhold
ecf0040337 loplugin: improve indentation
Change-Id: If0ddaa8fd7cfaf4df8589422cb50ce37f1be2ad1
2013-03-03 17:14:15 +01:00
Markus Mohrhard
39f821c962 coverity#705657: fix memory leak
Change-Id: I326d2d168d48016d6f1784ff947edd17eb398838
2013-03-03 04:35:12 +01:00
Eike Rathke
be16dba682 resolved fdo#60915 force long year only for ROC calendar
Long year was forced unconditionally for all non-Gregorian calendars, do
this only for ROC calendar.

Change-Id: I39d6eb269b3d38046d32dcf0f66edd5617581b9d
2013-02-28 18:48:05 +01:00
Andras Timar
d9fb2a6add fdo#57536 remove 着:著, because it is wrong is some cases
Change-Id: Ia7c5692e1da4d24d985f0813e07631898d7100ce
2013-02-28 08:43:48 +01:00
Thomas Arnhold
dd3e879cfd remove some trivial duplicates
Change-Id: Ie736cb6d5ff7f4d1998338f4a3a3a3b0a67c79ad
2013-02-25 19:34:36 +01:00
Thomas Arnhold
4f4e4e40f5 loplugin: improve indentation
Change-Id: Idb847766d93dc222d6c55889616da21eeac212ee
2013-02-25 17:59:40 +01:00
Caolán McNamara
138e5a0518 make it possible to build with system icu 4.2 (RHEL-6)
Change-Id: I69bf7bc33a619c4aa9483e2dc3d5540e4dfa7458
2013-02-19 15:42:14 +00:00
Eike Rathke
555d88d003 added reset(rtl_Locale)
Change-Id: I1bc83dd4e5286f7102513d8a4c7d5624952eb830
2013-02-19 00:45:26 +01:00
Eike Rathke
2c36a832b8 for now convert using MsLangId::convertUnxByteStringToLanguage()
Change-Id: Iaedd4bd6eda1db293fa3dc6222c7353ce466ec04
2013-02-19 00:27:56 +01:00
Eike Rathke
6c89f2e74a prepare LanguageTag(rtl_Locale) for handling variant/modifier
Change-Id: Ic500bb2eecd090d5568703740c3700c6d50635ae
2013-02-18 23:23:09 +01:00
Eike Rathke
8d23b47454 added LanguageTag::getFallbackStrings()
Change-Id: Ia597cb184e0402e776cde50967541f008e22d4c9
2013-02-18 17:51:20 +01:00
Eike Rathke
ca04dec8b9 added LanguageTag::hasScript()
Change-Id: If9eaca46ef8daa544ee208444f79423122b10739
2013-02-18 17:51:20 +01:00
Eike Rathke
5918c7c84c use LanguageTag(rtl_Locale) ctor
Change-Id: Ie668d40b815ae1cbcdb321649d8e52513cad1aec
2013-02-15 13:57:26 +01:00
Noel Grandin
e2ab5539a4 fdo#46808, convert i18n::InputSequenceChecker to new-style
Change-Id: I29678d74ae3c6dc38d3d09e2cf4a0d4f28f789a1
2013-02-12 10:14:41 +02:00
Noel Grandin
c4d051c5db fdo#46808, Adapt ConversionDictionaryList UNO service to new style
Change-Id: I16efc7466a2dbcccb4dddefdccada8549e7252f8
2013-02-11 08:02:11 +02:00
Jean-Noël Rouvignac
97eb8a6e0e Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd
Reviewed-on: https://gerrit.libreoffice.org/1924
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-30 12:54:40 +00:00
Andras Timar
828dfdd4fb unify the spelling of 'Kazakh' language name
While 'Kazakh' can be written as 'Kazak' or 'Qazaq', the 'Kazakh' form
is the most widespread according to online sources (Wikipedia,
LCID list from Microsoft). Also the 'Kazakh' form is preferred by a
Kazakh contributor, see http://listarchives.libreoffice.org/global/l10n/msg05444.html
In LibreOffice both 'Kazak' and 'Kazakh' was used at different places.

Change-Id: Ief83eb05e92af16cb5b795f2bbb1e3d6f7c9659a
2013-01-26 11:36:53 +01:00