Commit graph

2136 commits

Author SHA1 Message Date
Matúš Kukan
f958657cc5 gcc-trunk: fix error: unable to find string literal operator 'operator"" FOO' 2011-12-16 21:20:08 +01:00
Jesse
6a8f6c4b13 Removed extra semicolons 2011-12-15 16:38:50 +00:00
Caolán McNamara
5c1490fa4b add some comments 2011-12-15 12:22:50 +00:00
Caolán McNamara
66c3655a07 convert ReadCString from ByteString to OString
Nobody ever checked the return value anyway, so just return the string
and use the stream state bits if necessary to find failures.

Doesn't need to be a member, make a standalone function

Rename it to read_zeroTerminated_uInt8s_AsO[U]String, stupid perhaps,
but *shrug*, unambiguous.

Drop misleading overloaded String variants use:
read_zeroTerminated_uInt8s_AsOString or
read_zeroTerminated_uInt8s_AsOUString

added a unit test, valgrinded it, found and fixed invalid read
in original implementation.
2011-12-15 12:22:49 +00:00
Caolán McNamara
ace8398c57 drop unused ReadCString with hidden StreamCharSet monstrosity 2011-12-15 12:22:49 +00:00
Caolán McNamara
f356303302 strip ByteClass down some more 2011-12-14 13:40:07 +00:00
Rafael Dominguez
37785dde4b Remove unused macros. 2011-12-12 12:28:59 +00:00
Tor Lillqvist
c682be8ba5 I don't see VCL or NT351 being checked in any ifdef
So drop the GVER thing and -DVCL and -DNT351.
2011-12-12 12:08:39 +02:00
Caolán McNamara
87ec1f8857 callcatcher: remove unused code post automation removal 2011-12-09 13:57:16 +00:00
August Sodora
2ef7f7efbf Remove testtoolloader 2011-12-07 14:57:24 -05:00
Bjoern Michaelsen
2acd8fbac9 in modules, when we have a env we are in stage gbuild 2011-12-07 15:53:06 +01:00
Bjoern Michaelsen
3f7e6fe611 use gbuild_simple in tools 2011-12-07 15:53:03 +01:00
Caolán McNamara
a064924652 ditch some ByteStrings 2011-12-06 23:54:36 +00:00
Caolán McNamara
66a8b58a6e aSourceFile member unused 2011-12-06 23:54:35 +00:00
Marcel Metz
072b137387 Remove unused tools/stack.hxx 2011-12-05 22:54:55 +01:00
Stephan Bergmann
98aa853504 Also demote DBG_ASSERTWARNING to SAL_INFO, to reduce output clutter. 2011-12-02 11:28:17 +01:00
Eike Rathke
86adb5cacb get rid of class Date and Time default ctor with system time penalty 2011-12-01 21:04:29 +01:00
Eike Rathke
b20ea84970 pull in module headers before solver 2011-12-01 21:04:29 +01:00
August Sodora
443a7229f9 Remove uses of charAt 2011-12-01 11:10:28 +01:00
Eike Rathke
2b2f6abfcc 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:46:55 +01:00
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