Eike Rathke
6619955e72
introduced Date::IsValidDate() and Date::Normalize()
...
+ IsValidDate() checks only day and month regarding the year, not Gregorian
cut-off date as now does IsValidAndGregorian().
+ Normalize() carries over invalid day and month values to next months and
years.
* All methods that return or internally use a day count now internally
normalize the date values, without modifying the actual Date instance. So,
if the date is not valid you may get unexpected results.
* Previously, a date with month>12 would had accessed the days-of-month
array out of bounds on all such methods. So you would had gotten
unexpected results anyway..
* Affected methods are:
GetDayOfYear()
GetWeekOfYear()
GetDaysInMonth()
static DateToDays()
2011-11-30 02:05:23 +01:00
Eike Rathke
dca69d5bb2
renamed Date::IsValid() to IsValidAndGregorian() to prevent misassumptions
...
Once smaller than 1582-10-15 decrementing a Date will not produce a valid date.
2011-11-30 02:05:22 +01:00
Bjoern Michaelsen
d73e574d8a
move reconfigure into gbuild
2011-11-29 17:25:14 +01:00
Caolán McNamara
3fd28200f1
ByteString->rtl::OString[Buffer]
2011-11-28 09:55:02 +00:00
Norbert Thiebaud
c0bed9c72e
remove precompiled_xxx.hxx/cxx
2011-11-27 18:07:55 -06:00
Norbert Thiebaud
3f2ff54778
remove pch from the include list
2011-11-27 15:24:45 -06:00
Norbert Thiebaud
5f7649aead
remove include of pch header from tools
2011-11-27 13:25:56 -06:00
Norbert Thiebaud
992757cc5e
remove pre-compiled header support in gbuild and gbuildified module
2011-11-27 11:49:38 -06:00
Korrawit Pruegsanusak
c3dc018984
typos fixing
2011-11-27 15:12:07 +07:00
Caolán McNamara
3fc07bb4f1
typo, thanks Guest70165 :-)
2011-11-25 20:51:38 +00:00
Caolán McNamara
cbb2b42f11
ByteString->rtl::OString
2011-11-25 20:17:17 +00:00
Bjoern Michaelsen
f2f0dbd273
make gbuild makefiles run independant of pwd again
2011-11-25 12:04:40 +01:00
Caolán McNamara
6312367fb8
ByteString->rtl::OString
2011-11-25 09:56:38 +00:00
Stephan Bergmann
360043b30e
demoted plentiful DBG_WARNING etc. to SAL_INFO
2011-11-25 10:51:13 +01:00
David Tardon
fba911fea7
gsl_getSystemTextEncoding -> osl_getThreadTextEncoding
2011-11-25 09:07:49 +01:00
Caolán McNamara
e2b73031e8
ByteString->rtl::OString
2011-11-24 21:35:32 +00:00
Caolán McNamara
89f057a09d
ditch dbg_dump
2011-11-24 15:29:52 +00:00
Caolán McNamara
56d168cc59
strip down old string class some more
2011-11-24 15:29:52 +00:00
Caolán McNamara
2dba28faae
add string::strip, can replace EraseLeadingAndTrailingChars
2011-11-23 23:16:44 +00:00
Stephan Bergmann
0c7bff0271
Changed sal/log.h -> sal/log.hxx, drop _S from C++ streaming log macros.
...
A compile time check ensures the common case of streaming just a plain
C-style string literal still produces reasonably compact call-site code.
The format-string variants are still available in sal/detail/log.h, but
only to be used in obsolete osl/diagnose.h etc., and going to be removed
again eventually.
2011-11-23 15:50:58 +01:00
Caolán McNamara
d05f4d3a7e
convert inlines as well
2011-11-23 10:10:08 +00:00
Caolán McNamara
20153742d2
add a stripStart, can replace EraseLeadingChars
2011-11-23 10:10:08 +00:00
Caolán McNamara
4a06a42de4
want to match here, not check for equality
2011-11-22 12:50:14 +00:00
Stephan Bergmann
5de43a57cd
Avoid rtl::OString::copy(getLength() + 1).
2011-11-22 12:15:39 +01:00
Stephan Bergmann
70a6b9ffbd
New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.
...
* New SAL_INFO..., SAL_WARN... macros.
* New SAL_STREAM supersedes OSL_FORMAT.
* oustringostreaminserter.hxx moved from unotest to rtl (and always UTF-8 now).
* TODO to enable GCC __attribute__((format)) in sal/log.h (requires call-site
cleanup).
* Further functionality in tools/debug.hxx (DBG_MEMTEST, DBG_CTOR, etc.) not yet
addressed.
* Some replacements tools String -> rtl::OUString.
2011-11-22 09:41:47 +01:00
Caolán McNamara
2a2fbbecc0
ByteString->rtl::OString
2011-11-21 15:54:39 +00:00
Caolán McNamara
e4d90aef94
ditch last ENABLE_STRING_STREAM_OPERATORS
2011-11-21 09:17:11 +00:00
Caolán McNamara
445065d113
ByteString->rtl::OString[Buffer]
2011-11-19 21:11:03 +00:00
Caolán McNamara
4e7fff380a
remove ENABLE_BYTESTRING_STREAM_OPERATORS
2011-11-19 21:11:02 +00:00
Caolán McNamara
ca02d72808
remove [Byte]String::EraseAllChars
2011-11-19 21:11:02 +00:00
Norbert Thiebaud
993f9f7c89
Re-do Removed tools/dynarray.hxx , now that binfitler is ready for it
2011-11-19 12:43:33 -06:00
Norbert Thiebaud
6db8af3e8b
Revert "Removed tools/dynarray.hxx", break binfilter
...
This reverts commit 89a783cde0
.
2011-11-19 10:14:18 -06:00
August Sodora
89a783cde0
Removed tools/dynarray.hxx
2011-11-18 23:24:34 -05:00
Caolán McNamara
c4927a1b76
ByteString->rtl::OString[Buffer]
2011-11-17 23:04:10 +00:00
Caolán McNamara
f24268cae3
we can drop unqid.hxx entirely post move to binfilter
2011-11-16 13:24:06 +00:00
Norbert Thiebaud
0ea8c014ef
tweak gbuild standart Makefile to allow partial build in unsourced env
...
This allow to run make in a module wihtout the need to source
Env.Host.sh.
2011-11-16 06:18:54 -06:00
Caolán McNamara
f8beaced3d
remove dodgy const_casts
2011-11-14 14:43:31 +00:00
Caolán McNamara
74500c21a4
ByteString->rtl::OString
2011-11-14 07:36:02 +00:00
Tor Lillqvist
e68a920f72
solenv/inc/Xp31 is crack
2011-11-10 13:45:04 +02:00
Tor Lillqvist
97722c8215
Drop unnecessary inclusions of <sal/main.h>
2011-11-05 12:11:16 +02:00
Markus Mohrhard
125aa32e71
we need to assign this value also for non unix platforms (fdo#40801)
2011-11-01 01:00:24 +01:00
Ivan Timofeev
a47a5ed0a5
always explicitly handle empty string of ranges
2011-10-24 00:16:18 +04:00
Ivan Timofeev
3d5caa7ce3
StringRangeEnumerator cleanup
...
* do not allow default unbounded min and max, syntax of the input string
requires them
* simplify logic, remove unused methods, make the class immutable, actualize
documentation
2011-10-24 00:10:33 +04:00
Matúš Kukan
c77a9254dd
no need for SRCDIR parameter here
2011-10-23 13:20:29 +02:00
Ivan Timofeev
d72701bba6
bye-bye old range parser
2011-10-20 23:11:17 +04:00
Stephan Bergmann
0a158b7800
Undo basis/brand split: merge basis program/resource/ into brand program/resource/.
2011-10-19 12:23:01 +02:00
Ivan Timofeev
aaa6e59711
treat "-" as entire range
2011-10-12 17:08:25 +04:00
Caolán McNamara
e8bbb76827
ensure correct export size type in stream operation
2011-10-10 08:51:15 +01:00
Caolán McNamara
2d25e3c354
tidy this a little bit
2011-10-10 08:51:15 +01:00
Ivan Timofeev
9cbc1c3253
no need to return size_t instead of sal_Int32
2011-10-08 22:24:21 +04:00