Commit Graph

457 Commits

Author SHA1 Message Date
Aleksandar Fabijanic
130f6cba72 added zlib 1.2.8 files 2013-06-04 00:40:39 -05:00
Aleksandar Fabijanic
5feae5243a removed zlib files 2013-06-04 00:39:40 -05:00
Aleksandar Fabijanic
b2d72dcacb Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2013-06-03 23:46:34 -05:00
Aleksandar Fabijanic
4826523831 fixed few GH issues
- fixed GH #209: Poco::NumberFormatter double length
- fixed GH #204: Upgrade zlib to 1.2.8
- fixed GH #198: The "application.configDir" property is not always
created.
2013-06-03 23:45:06 -05:00
Aleksandar Fabijanic
37a7c3bca7 Merge pull request #210 from ptarabbia/develop
Develop
2013-06-03 05:01:23 -07:00
aleks-f
282374980c gcc alignment and warning suppression 2013-06-02 22:56:18 -05:00
Aleksandar Fabijanic
e5eaffb790 removed Var iterators, fixed SOO alignment
- removed unnecessary using directives in Data library
- removed iterator pointers from Var (reduce size, always return copy)
- added Alignment header (adapted from LLVM infrastructure)
- added alignment guards to SOO implementations
2013-05-29 23:36:45 -05:00
Aleksandar Fabijanic
38131d452d Var/JSON changes
- JSON support for Dynamic Struct and Array
- added VarIterator
- modified behavior of empty Var
2013-05-27 21:33:27 -05:00
Guenter Obiltschnig
a0dfc58396 fix std::ios::internal usage in Poco::format() 2013-05-25 00:32:30 +02:00
Guenter Obiltschnig
0434ee2b6b fixed GH# 65: Poco::format() misorders sign and padding specifiers 2013-05-24 23:54:15 +02:00
Guenter Obiltschnig
6f48b4469e fixed GH# 194: MessageNotification constructor is inefficient. 2013-05-24 20:05:25 +02:00
Mike Naquin
ee77d05ab5 Remove the need for a debug build or debugger when setting Win32 thread names. 2013-05-20 12:47:14 -05:00
Mike Naquin
29a9a2cf1d Remove the need for a debug build or debugger when setting POSIX thread names. 2013-05-20 12:46:03 -05:00
Mike Naquin
44ba01648d Add operators to Timestamp for Timespan.
Timestamp  operator +  (const Timespan& span) const;
Timestamp  operator -  (const Timespan& span) const;
Timestamp& operator += (const Timespan& span);
Timestamp& operator -= (const Timespan& span);
2013-05-06 15:29:52 -05:00
Patrice Tarabbia
c59f8865ac Don't call CloseHandle() twice on Windows (as it causes crashes, or unexpected behavior). This would happen with the following test case:
ProcessHandle handle = Process.launch(...);
handle.kill();
Then as handle gets out of scope, ~ProcessHandle would call CloseHandle() on an already closed handle.
2013-05-01 06:41:45 -04:00
Aleksandar Fabijanic
225401743f case-insensitivity for SessionPool 2013-04-21 21:39:37 -05:00
Aleksandar Fabijanic
1cc5cd93f4 Merge pull request #156 from mar-na/f154497a9f0f9b408917c07180cdf1e20a5647c6
Possible buffer overrun in Foundation/EventLogChannel
2013-04-21 10:50:51 -07:00
mar-na
f154497a9f Possible buffer overrun in Foundation/EventLogChannel 2013-04-18 13:28:16 +02:00
Aleksandar Fabijanic
f9aea9acdf GH #144: Poco::Dynamic emits invalid JSON
GH #144: Poco::Dynamic emits invalid JSON
2013-04-06 11:04:33 -05:00
Rangel Reale
d93472fe46 * BUGFIX: URI::addQueryParameter was adding an extra '?' to the query string 2013-04-03 14:10:18 -03:00
aleks-f
6719d3448f GH #140: Poco::Runnable threading cleanup issue 2013-03-29 14:02:53 -05:00
Aleksandar Fabijanic
0fe58b7668 GH #139: FileChannel::PROP_FLUSH is invalid
GH #139: FileChannel::PROP_FLUSH is invalid (contains a tab character)
2013-03-27 21:02:57 -05:00
Aleksandar Fabijanic
4668c13af7 GH #59: Poco::Environment::osDisplayName()
GH #59: Poco::Environment::osDisplayName() not recognized Windows
8/Server 2012
2013-03-24 14:47:55 -05:00
aleks-f
b1c6065ffc GH #75: Poco::Uri addQueryParameter method
- added GH #75: Poco::Uri addQueryParameter method
2013-03-19 22:51:04 -05:00
aleks-f
2c5601ea69 GH #130 and #131
- fixed GH #130: Patch: prefer sysconf over sysctlbyname
- fixed GH #131: Patch: no timezone global var on OpenBSD
2013-03-19 21:15:21 -05:00
Alex
3efbbdc1f7 GH #79: Poco::Thread leak on Linux
fixed GH #79: Poco::Thread leak on Linux
2013-03-17 21:13:04 -05:00
aleks-f
2392f34974 GH #127: Eliminate -Wshadow warnings
- fixed GH #127: Eliminate -Wshadow warnings
- SocketAddress small object optimization
2013-03-17 01:28:01 -05:00
aleks-f
42ff341cb9 GH #119: JSON::Object holds values in ordered map
- fixed GH #119: JSON::Object holds values in ordered map
- added PrintHandler
- renamed DefaultHandler to ParseHandler
- redefined DefaultHandler as typedef to ParseHandler
2013-03-16 11:33:27 -05:00
aleks-f
ad66c4aac4 GH124: Possible buffer overrun in EventLogChannel 2013-03-12 23:13:02 -05:00
aleks-f
46c3d74c5f RecursiveDirectoryIterator and ListMap
1) Recursive and SortedDirectoryIterator

- added to VS projects
- fixed some style/formatting
- fxed windows tests

2) Added ListMap

Poco::ListMap is a std::mulitimap-like container that preserves
insertion order (needed to prevent Net message headers)
2013-03-10 12:25:47 -05:00
Guenter Obiltschnig
dc5c8c87da - fixed GH# 116: Wrong timezone parsing in DateTimeParse (fix by Matej Knopp) 2013-03-06 07:50:02 +01:00
aleks-f
f98fa4b05a couple of cosmetic fixes 2013-02-27 15:13:43 -06:00
Mike Naquin
13a1a0b9a2 Fix JSON parsing of large unsigned 64-bit integers 2013-02-21 12:57:51 -06:00
Marian Krivos
8ddba0bcd1 SF Feature requests #168 and #163 - part 3 2013-02-20 09:44:25 +01:00
Marian Krivos
4573b5e6be SF Feature requests #168 and #163 2013-02-19 21:29:58 +01:00
Marian Krivos
9349786415 cmake and gcc warning fixes 2013-02-19 06:16:12 +01:00
aleks-f
f78a4e8965 factor out Var destruction 2013-02-17 17:05:36 -06:00
aleks-f
9378680c0b Merge remote-tracking branch 'origin/ip-address-soo' into develop 2013-02-17 16:33:44 -06:00
Guenter Obiltschnig
e9ec584733 On Linux, Poco::Environment::nodeId() first always tries to obtain the MAC address of eth0 before trying other interfaces 2013-02-14 16:26:19 +01:00
aleks-f
72b5b7acae GH #80: NumberFormatter::append broken
fixed GH #80: NumberFormatter::append broken
2013-02-07 21:43:40 -06:00
aleks-f
21da0129b6 Dynamic::Var SOO
Dynamic::Var  small object optimization and some refactoring
2013-02-05 22:12:21 -06:00
aleks-f
911f22508e Any SOO 2013-01-31 21:12:13 -06:00
Aleksandar Fabijanic
a44758f1ac Merge pull request #35 from syvex/POSIXThreadNames
Enable debugging thread names in Thread_POSIX
2013-01-19 21:58:49 -08:00
Alex
7094df540f GH 46: 1.5.1 build fails on OS X when using libc++ 2012-12-30 09:50:59 -06:00
aleks-f
9a67596f00 Revert "Base64Decoder drops 0x0d characters on windows"
This reverts commit 79549f85dd.
2012-12-20 20:05:10 -06:00
aleks-f
a4e781f487 Revert "enable skipws"
This reverts commit 9c851f0d1b.
2012-12-20 20:04:46 -06:00
Alex
9c851f0d1b enable skipws 2012-12-19 22:06:33 -06:00
aleks-f
79549f85dd Base64Decoder drops 0x0d characters on windows
SF #605 Base64Decoder drops 0x0d characters on windows
2012-12-19 21:48:26 -06:00
aleks-f
8fe3a398af Net Windows automatic (un)initialize
automatic network (un)initialization on windows
NumericString 64-bit compile/warning fixes
2012-12-19 00:38:18 -06:00
aleks-f
e75081af94 added Token::asInteger64(); ODBC tests fix for case-sensitive DB 2012-12-16 19:45:38 -06:00
aleks-f
1ea4b41dad added ifconfig to samples Makefile 2012-12-14 15:30:24 -06:00
aleks-f
5d463c3a1c GH 30:Poco::Path::home() throws
GH #30: Poco::Path::home() throws when called from Windows Service
done for Win32 and Win32U, return root for WinCE
2012-12-14 12:09:23 -06:00
Mike Naquin
5cd3d194ef Add pthread_setname_np in Thread_POSIX. User can enable this with -DPOCO_POSIX_DEBUGGER_THREAD_NAMES. 2012-12-14 09:35:48 -06:00
Mike Naquin
27616fb0e6 Change token to use 64-bit integers by default (when available) 2012-12-13 09:39:23 -06:00
Aleksandar Fabijanic
e21d1f5fcc Merge pull request #21 from patrickjwhite/logger_patternFormatter
PatternFormatter specific-length source and optimizations.
2012-12-11 09:03:01 -08:00
aleks-f
7327be4735 Poco::URI::decode() doesn't properly handle '+'
GH #27: Poco::URI::decode() doesn't properly handle '+'
2012-12-05 22:28:43 -06:00
aleks-f
134558f926 double-conversion floating-point conversions
- using double-conversion library for floating-point numeric/string
conversions
- added string replace[InPlace], remove[InPlace]
- reverted overwritten FileChannel purge age and count features
- file size value checks in SMTPClient
2012-12-01 14:10:09 -06:00
Alex
dd2e677f8a separate function for unsigned to string conversion
Separated unsigned integer conversion to eliminate warnings (and
slightly improve performance). Added Darwin-clang warning suppression
for unused functions/variables
2012-12-01 14:10:06 -06:00
aleks-f
b0ae034a94 a couple of minor changes 2012-12-01 14:10:05 -06:00
aleks-f
91d5be438b replaced stream-based number formatting
embedded a portion of double-conversion library
(http://code.google.com/p/double-conversion/)and replaced stream-based
number formatting
2012-12-01 14:10:04 -06:00
aleks-f
9cd0f0b4f7 integer to string conversion
replaced sprintf-based  int-to-string functionality with built-in
intToString
2012-12-01 14:10:02 -06:00
Patrick White
b4aa3cedfa PatternFormatter specific-length source and optimizations.
Optimize the pattern formatter by doing time-zone calculations
once and using it's offset. Parse the format string once and
setup a vector of the fields wanted so parsing the %[name] is
much faster.

Add ability to easily enforce a specific length for the source
fields which is nicer for reading log files.
2012-11-28 15:09:10 -05:00
aleks-f
08ae9aee18 Merge remote-tracking branch 'origin/Base32Encoding' into develop 2012-11-15 20:02:53 -06:00
Philip Prindeville
e92baf7258 Correct alphabet; fix compilation issues on linux; add padding and make it on by default. 2012-11-13 16:02:36 -07:00
aleks-f
df8f4eb7c0 Replaced space indentations with tabs
Replaced intermittent space indentations with tabs; removed test.txt
file
2012-11-12 20:45:16 -06:00
aleks-f
9b89394b5b Base32 Encoder/Decoder
Base 32 Encoder/Decoder
2012-11-12 20:00:37 -06:00
Guenter Obiltschnig
79eab26377 the great line endings cleanup 2012-11-11 09:57:01 +01:00
Guenter Obiltschnig
b402881343 - Poco::FileChannel now supports a new rotateOnOpen property (true/false) which can be used
to force rotation of the log file when it's opened.
2012-11-10 11:55:54 +01:00
Guenter Obiltschnig
45fa903880 - fixed SF# 586: Poco::DateTimeParser and ISO8601 issues when seconds fraction has more than 6 digits 2012-11-10 11:45:55 +01:00
Guenter Obiltschnig
12b0255f58 - fixed SF# 581: Out-of-bound array access in Unicode::properties() function. 2012-11-10 11:44:44 +01:00
aleks-f
67a27ac2fa StringTokenizer trailing empty tokens consistency
Modified StringTokenizer to eith include or exclude all empty tokens
(including trailing ones based on TOK_IGNORE_EMPTY option.
2012-11-07 00:30:01 -06:00
aleks-f
15d27daea6 Route on Windows
Route on Windows tentatively complete, Mac/Linux TODO
2012-11-06 22:17:17 -06:00
Guenter Obiltschnig
b6963f0bc9 WinCE fixes 2012-10-15 09:29:26 +00:00
Aleksandar Fabijanic
ada0ec20e7 extract locale dependency from numeric string parsing 2012-10-13 03:51:32 +00:00
Aleksandar Fabijanic
bf74a4be8b FreeBSD build and threading 2012-10-01 00:31:28 +00:00
Aleksandar Fabijanic
f70ac1ca07 - added NumericString.h
- NumberParser improvements (internal Poco locale-awareness and parsing)
2012-09-30 05:17:56 +00:00
Aleksandar Fabijanic
e7ee78baa5 remove Var::operator const std::string & () 2012-09-25 23:50:15 +00:00
Aleksandar Fabijanic
7f02626724 FreeBSD fix for DirectoryWatcher 2012-09-25 07:28:38 +00:00
Aleksandar Fabijanic
142120ee86 FreeBSD fix for DirectoryWatcher 2012-09-25 07:22:14 +00:00
Aleksandar Fabijanic
bf4a5ee3bb SF#102 Fix building Poco on Debian GNU/kFreeBSD 2012-09-24 04:06:19 +00:00
Aleksandar Fabijanic
d8397b9153 - VS2012: build/tests
- JSON: style and exceptions catch by ref fix
- NumberParser: case-insensitive hex parsing
- Dynamic::Var: const std::string& cast operator specialization (coaxing std::string ctor)
- LocalDateTime: strftime fix (buffer too small for full tz string, use %Z instead of %z - makes no difference on windows but is more portable)
- small buildwin.cmd vsvars32.bat call fix
2012-09-24 03:51:40 +00:00
Aleksandar Fabijanic
d22ba992c8 align with 1.4.4 2012-09-15 15:09:27 +00:00
Aleksandar Fabijanic
e5d3d23c92 integers parsing 2012-09-13 06:06:08 +00:00
Aleksandar Fabijanic
b7957f8cd0 - cleanup config macros inconsistencies
- convert spaces to tabs
2012-09-12 00:20:07 +00:00
Marian Krivos
70dbe84a31 Latin2Encoding: source code cleanup 2012-09-10 08:43:32 +00:00
Aleksandar Fabijanic
3f23af80c3 porting rev. 1994 from 1.4.4 2012-09-08 02:54:42 +00:00
Aleksandar Fabijanic
69bb6e4461 SF #3561464: Poco::File::isDevice() can throw due to sharing violation 2012-09-08 01:02:46 +00:00
Aleksandar Fabijanic
9ca1a770bc SF#3562244: Portability fix for AF_LINK 2012-09-07 04:31:09 +00:00
Aleksandar Fabijanic
a522c31765 SF# 3558012 Compilation fails when building with -ansi or -std=c++0x 2012-09-06 03:14:17 +00:00
Aleksandar Fabijanic
a221b14522 porting rev.1998 from 1.4.4 (except ODBC, which will be done later, and SQLite, which was ported in rev.1999) 2012-09-05 02:43:06 +00:00
Aleksandar Fabijanic
d384a499d5 porting 1.4.4 rev. 1989 (except for File_WIN32(U)/FileImpl::isDeviceImpl() where GENERIC_ACCESS was left due to breaking testFileAtributes3() test case) 2012-08-26 03:40:12 +00:00
Aleksandar Fabijanic
2a6d58c7f2 porting 1.4.4 rev. 1968 (fixed SF# 3559665, etc.) 2012-08-23 03:15:19 +00:00
Aleksandar Fabijanic
0ca3bbc848 porting 1.4.4. rev. 1926 (SF#3478665: Permission checks in Poco::File not correct for root) 2012-08-22 03:44:30 +00:00
Aleksandar Fabijanic
801b2485f4 port from 1.4.4 (rev. 1925 fixed SF# 3483174) 2012-08-22 03:25:25 +00:00
Aleksandar Fabijanic
d9cf671330 fixed SF# 3496493, 3495656 2012-08-22 02:40:41 +00:00
Aleksandar Fabijanic
7a177a0d79 fixed SF# 3556975 2012-08-20 03:21:09 +00:00
Aleksandar Fabijanic
88134859e4 - fix of the Timer fix from rev. 1953
- improved UTFString definitions
- allow empty Glob (testMatchEmptyPattern() failing)
- fixed SF#3535990: POCO_HAVE_IPv6 without POCO_WIN32_UTF8 conflict
2012-08-18 21:09:50 +00:00
Aleksandar Fabijanic
4328b7cba3 porting rev. 1915 from 1.4.4 branch (fixed SF# 3539695) 2012-08-18 04:16:16 +00:00
Aleksandar Fabijanic
2adfe178c0 porting rev. 1914 from 1.4.4 branch (fixed SF# 3543047) 2012-08-18 02:41:15 +00:00
Marian Krivos
2f0ab58544 check for initialization with an empty pattern (backport from old trunk) 2012-08-07 20:56:38 +00:00
Marian Krivos
9e27531c68 check for initialization with an empty pattern (backport from old trunk) 2012-08-07 20:45:44 +00:00
Marian Krivos
f74b10bf1b zlib updated to the version 1.2.7 2012-08-07 20:43:25 +00:00
Marian Krivos
871cdaff44 zlib updated to the version 1.2.7 2012-08-07 20:42:25 +00:00
Aleksandar Fabijanic
0bcf08b3f7 Linux fixes for UnicodeConverter 2012-08-02 05:01:00 +00:00
Aleksandar Fabijanic
416cc7a630 Unicode portability improvements (only tested on Windows at this time) 2012-08-02 04:41:24 +00:00
Marian Krivos
bd401297e7 UnicodeConverter: added support for native wchar_t via UTF16 or UTF32 2012-07-31 18:37:04 +00:00
Marian Krivos
24225d39ec fix UTF32Encoder 2012-07-31 18:35:47 +00:00
Marian Krivos
c86b54cf77 fix: byte flipping in UTF16Encoding::queryConvert() 2012-07-31 16:27:30 +00:00
Aleksandar Fabijanic
c48b06221a SF 3538786: Use size_t for describing data-blocks in DigestEngine 2012-07-20 02:48:41 +00:00
Marian Krivos
6ebb20ca4c class UTF32Encoding added 2012-06-21 16:19:19 +00:00
Aleksandar Fabijanic
69bd6f6ee9 FIFOBufferStream (g++ pacify) 2012-06-08 02:24:36 +00:00
Aleksandar Fabijanic
cfbcce0481 FIFOBuferStream and tests (Windows/VS2010 only compiled/tested) 2012-06-07 03:59:13 +00:00
Aleksandar Fabijanic
1863c26cfc spaces to tabs 2012-05-30 00:39:30 +00:00
Aleksandar Fabijanic
9b952a29c7 ported 1.4.4 branch changes (needs build checks and test runs!) 2012-05-19 03:04:51 +00:00
Aleksandar Fabijanic
369ca9cd52 fixed SF# 3522906: Unregistering handlers from SocketReactor 2012-05-04 03:39:24 +00:00
Aleksandar Fabijanic
5a639074d9 change EOL to 'native' 2012-04-29 18:52:25 +00:00
Marian Krivos
c33bf13bdc fix typo 2012-04-29 11:24:44 +00:00
Marian Krivos
0ad8b3c924 formatting fix and few tests from the old trunk 2012-04-29 11:04:08 +00:00
Marian Krivos
c816693153 FileChannel: added "none" to the PURGE_AGE and PURGE_COUNT 2012-04-29 10:58:27 +00:00
Marian Krivos
53fe184bfa fix from old trunk for TemporaryFile 2012-04-29 10:52:55 +00:00
Marian Krivos
1e2b816d7e added Latin2, CP1250, CP-1251 encodings to the TextEncoding Manager 2012-04-29 10:52:12 +00:00
Marian Krivos
51c8a14ae1 ThreadPool fix from trunk 2012-04-29 10:51:00 +00:00
Aleksandar Fabijanic
fae6d780b7 replaced indentation spaces with tabs 2012-04-28 19:15:17 +00:00
Franky Braem
5086b562fd Add missing functions 2012-04-28 18:59:25 +00:00
Marian Krivos
a4931bb9af added DigestEngine::digestFromHex(const std::string& digest) method 2012-04-28 09:32:25 +00:00
Marian Krivos
bd59670069 backport bool support to the NumberParser/NumberFormatter 2012-04-28 09:30:38 +00:00
Aleksandar Fabijanic
d75e68c027 new trunk (base for 1.5)
windows build only
2012-04-23 01:14:34 +00:00
Aleksandar Fabijanic
f9b60296f7 removing old trunk files 2012-04-23 00:43:14 +00:00
Marian Krivos
a002f13be2 trunk: updated standard VS2010 sln to include x64 support (all in one) 2012-02-11 12:13:15 +00:00
Marian Krivos
7c3339c549 trunk: TextEncoding fixes 2012-02-09 15:15:39 +00:00
Marian Krivos
7d7c02c579 trunk: backport eventing from 1.4.3 2012-02-05 12:16:58 +00:00
Marian Krivos
59fe68edbe trunk: File_UNIX, NumberParser/NumberFormatter from 1.4.3 2012-02-05 07:53:05 +00:00
Marian Krivos
8b70c37260 trunk: sync from 1.4.3
make & cmake fixes
2012-02-04 17:03:09 +00:00
Marian Krivos
6268aa3865 backport changes from 1.4.3 branch 2012-01-07 11:06:14 +00:00
Marian Krivos
97ec3f5bf6 backport SharedLibrary changes from 1.4.2-p1 2011-11-04 18:56:08 +00:00
Marian Krivos
5084562770 feature request #3432362 (native AtomicCounter for GCC) 2011-11-04 12:52:31 +00:00
Marian Krivos
eb266f8a57 Set cmake produced shared libraries numbering to standard scheme (trunk = 12)
Sync latest Foundation changes from 1.4.2
2011-09-15 08:31:51 +00:00
Marian Krivos
8fc17fecfa trunk/branch integration: compile fix 2011-08-23 13:07:44 +00:00
Marian Krivos
60050ce87a trunk/branch integration: Inflating/Deflating update, test updates, NotificationCenter update 2011-08-23 09:55:09 +00:00
Marian Krivos
86c574612c trunk/branch integration: compile fix 2011-08-23 09:20:26 +00:00
Marian Krivos
fd733bcca4 trunk/branch integration: VxWorks & Wince 2011-08-23 07:13:59 +00:00
Marian Krivos
35f44e5a2d trunk/branch integration: refactoring 2011-08-23 07:13:42 +00:00
Marian Krivos
8bc1691e16 trunk/branch integration: bugfix 2011-08-23 07:13:08 +00:00
Marian Krivos
c349742cf5 trunk/branch integration: VxWorks & Wince 2011-08-23 07:12:01 +00:00
Marian Krivos
4d860e1b18 trunk/branch integration: source indentation 2011-08-23 07:10:45 +00:00
Marian Krivos
a535226b86 trunk/branch integration: source indentation 2011-08-23 07:09:52 +00:00
Marian Krivos
24a844d68b trunk/branch integration: VxWorks & Wince 2011-08-23 07:05:47 +00:00
Marian Krivos
d5b85fe31c trunk/branch integration: using Poco::Ascii 2011-08-23 07:04:21 +00:00
Marian Krivos
6951be35de trunk/branch integration: bugfix 2011-08-23 07:03:43 +00:00
Marian Krivos
60bbdd7a6e trunk/branch integration: fix 2011-08-23 07:03:10 +00:00