Commit graph

1391 commits

Author SHA1 Message Date
Stephan Bergmann
9ab0b38e95 Various string function clean up
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-15 15:41:09 +01:00
Elton Chung
806bec7107 Fix typos in comments 2012-02-13 15:27:24 +00:00
Takeshi Abe
e7e0455b02 Prefer equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("...")) to equalsAscii("...") 2012-02-10 01:59:26 +09:00
Caolán McNamara
970ccf4f69 drop unnecessary includes 2012-01-31 22:42:22 +00:00
Caolán McNamara
bbc94edb9a refactor ConvertLineEnd 2012-01-30 13:18:38 +00:00
Luboš Luňák
6b2e9ebf77 fprintf -> SAL_INFO 2012-01-30 14:10:48 +01:00
Ivan Timofeev
93236fcdf2 remove '#define UNOOUSTRING ::rtl::OUString' 2012-01-30 12:23:34 +04:00
Caolán McNamara
0c5ed3541b String->rtl::OUString 2012-01-25 15:37:19 +00:00
Caolán McNamara
1d4e0d9ec5 reduce unnecessary includes 2012-01-25 15:37:18 +00:00
Olivier Hallot
806dce17d6 Fix for fdo43460 Part XXXIV getLength() to isEmpty()
Part XXXIV
Modules
shell, slideshow, sot, starmath
2012-01-11 18:43:07 -02:00
Marcel Metz
5845c5b6ec Removed unnecessary tools/link.hxx includes. 2012-01-06 23:55:50 +01:00
Luboš Luňák
608c927c0f symbolic names instead of hex values for math symbols where possible 2012-01-06 12:46:22 +01:00
Luboš Luňák
6977d658e1 write TBAR rather as an accent, use over/underline for m:bar
seems to match the docx semantics better, despite the names
2012-01-06 12:25:37 +01:00
Joshua Cogliati
b90ac7d682 smath does not handle accents in MathML 2012-01-06 10:48:59 +00:00
Marcel Metz
53d27eb207 Removed unnecessary tools includes. 2012-01-05 15:38:51 +01:00
Marcel Metz
571ad11bc0 Removed unnecessary tools includes. 2012-01-05 15:36:41 +01:00
Marcel Metz
79646372a0 Removed unnecessary tools includes.
Hello lo-devs,

this patch series removes a lot of unnecessary includes for the various
tools header. The patches without suffix should be applied to the core
repository, the .binfilter.patch suffix should be applied to the
binfilter repository. I've tested the build with the configuration
--enable-binfilter --enable-dbgutil --enable-debug, is this sufficient
or did I miss another important configuration, that enables some
conditional compiled code? I've only build this on linux-x86_64, but the
patch also touches some of the mac specific code like
fpicker/source/aqua/SalAquaFilePicker.mm so it would be maybe a good
idea to test this patch.

regards Marcel Metz
2012-01-05 15:31:29 +01:00
Caolán McNamara
bacfd2dc4c add a comphelper::string::getTokenCount
suitable for conversion from [Byte]String::GetTokenCount
converted low-hanging variants to rtl::O[UString]::getToken loops
added unit test
2012-01-05 09:18:19 +00:00
Julien Nabet
74b675cb69 Some cppcheck cleaning 2011-12-29 11:36:13 +01:00
Takeshi Abe
5451e9c702 catch exception by constant reference 2011-12-26 03:38:50 +09:00
August Sodora
4d4a67748e SV_DECL_VARARR->std::vector 2011-12-23 14:52:09 -05:00
Luboš Luňák
643de3b64e "*.*" is not "all files" (bnc#738021)
Not on any Unix, at least. I have no idea how deep entrenched is this
mistake all over the code, so I'll play safe and just fix the KDE4 fpicker
(GNOME/KDE3 seem to handle it fine), but at least in the UI show just
"All files" instead of "All files (*.*)").
2011-12-22 19:32:53 +01:00
Luboš Luňák
170d75c3f5 remove obsolete comment 2011-12-20 16:12:45 +01:00
Luboš Luňák
577bb0dc29 if a bracket pair has no left/right bracket, it needs to explicit (fdo#32636) 2011-12-20 10:49:41 +01:00
Luboš Luňák
d607e5cda6 import m:eqArr (part of fdo#32636) 2011-12-20 10:49:41 +01:00
Luboš Luňák
a69d808021 export vertical stack as m:eqArr, seems to fit much better 2011-12-20 10:49:41 +01:00
Luboš Luňák
0acff1783a skip unknown elements when reading multiple elements from docx mathml 2011-12-20 10:49:40 +01:00
Jesse
6a8f6c4b13 Removed extra semicolons 2011-12-15 16:38:50 +00:00
Eike Rathke
cabf25372c old class Stack pop'ed 0 from empty stack, which std::stack doesn't
Some places in the code assumed that if the stack is empty a null pointer is
returned by top() (or old Pop()), this doesn't work anymore with ::std::stack
that instead has undefined behavior in that case, so check !stack.empty()
first before accessing top.
(cherry picked from commit ac40f7d650)
2011-12-07 17:27:31 +01:00
Luboš Luňák
7be8bac42a make the linear xml processing API more generic
I'm pretty sure I'll love to use it in writerfilter instead of the normal
API whenever I get the chance.
2011-12-07 14:47:11 +01:00
Luboš Luňák
1e4fb45c03 disable error logs for now, until the new log macros get sorted out 2011-12-07 14:47:11 +01:00
Luboš Luňák
efe72126d9 merge two duplicates of a function 2011-12-07 14:47:10 +01:00
Luboš Luňák
5799813f5b properly xml-escape written text in docx formula 2011-12-07 14:47:10 +01:00
Stephan Bergmann
b419bb21a7 Looks like the old stack implementation returned 0 on empty stack Pop(). 2011-12-07 00:25:55 +01:00
Marcel Metz
f5b63844cc Replace SmNodeStack with std::stack< SmNode* > 2011-12-05 22:53:17 +01:00
Ivan Timofeev
68c1f75796 visual formula editor: implement selection by mouse 2011-12-04 19:24:58 +04:00
Ivan Timofeev
558b5ea32a visual formula editor: copy/cut/paste for any keyboard layout 2011-12-04 19:24:58 +04:00
Ivan Timofeev
5a22774509 visual formula editor: place cursor on numerator when creating empty fraction 2011-12-04 19:24:57 +04:00
Ivan Timofeev
8fb78b1221 visual formula editor: optimize some buildings a bit 2011-12-04 19:24:57 +04:00
Michael Stahl
db74fdf534 sfx2::DocumentInserter: remove nFlags ctor param 2011-12-03 00:48:13 +01:00
Ivan Timofeev
c1baeb25ad visual formula editor: fix insertion of symbols from catalog 2011-12-02 20:56:21 +04:00
Ivan Timofeev
2292904f85 visual formula editor: fix insertion of "-" 2011-12-02 17:23:02 +04:00
Luboš Luňák
d5effb40f2 create placeholders properly in docx mathml import 2011-11-30 16:11:46 +01:00
Luboš Luňák
baaf0aa029 do not add unnecessary spaces in docx mathml import 2011-11-30 16:11:46 +01:00
Luboš Luňák
f606abf36b try with at least somewhat more generic handling of docx m:groupChr 2011-11-30 16:11:46 +01:00
Luboš Luňák
0ca8b2c700 do not ignore docx m:box contents (but m:box itself is not implemented) 2011-11-30 16:11:45 +01:00
Luboš Luňák
03f950d64f import docx m:limUpp/m:limLow properly 2011-11-30 16:11:45 +01:00
Luboš Luňák
c56e4ab667 export all sub/superscripts LO can handle to docx mathml 2011-11-30 16:11:45 +01:00
Luboš Luňák
53c9a92cc8 fix writing of docx m:sPre 2011-11-30 16:11:45 +01:00
Luboš Luňák
cb0965a860 import docx m:sPre, m:sSub, m:sSubSup and m:Sup 2011-11-30 16:11:44 +01:00