]> git.tdb.fi Git - libs/core.git/log
libs/core.git
13 years agoUse the get_item function in Profiler::get_scope
Mikko Rasa [Thu, 9 Jun 2011 13:03:37 +0000 (16:03 +0300)]
Use the get_item function in Profiler::get_scope

13 years agoAdd utility functions for getting an item from an std::map
Mikko Rasa [Thu, 9 Jun 2011 13:02:55 +0000 (16:02 +0300)]
Add utility functions for getting an item from an std::map

13 years agoStyle and comment updates
Mikko Rasa [Thu, 9 Jun 2011 08:43:22 +0000 (11:43 +0300)]
Style and comment updates

13 years agoMake Time::sleep void
Mikko Rasa [Thu, 9 Jun 2011 08:38:40 +0000 (11:38 +0300)]
Make Time::sleep void
Check return value of nanosleep internally and throw if necessary

13 years agoImprove exceptions for Regex and RegMatch
Mikko Rasa [Wed, 8 Jun 2011 13:07:31 +0000 (16:07 +0300)]
Improve exceptions for Regex and RegMatch

13 years agoAvoid using relative paths beginning with .. in #includes
Mikko Rasa [Wed, 8 Jun 2011 08:26:14 +0000 (11:26 +0300)]
Avoid using relative paths beginning with .. in #includes

13 years agoUse unsigned char as element of Regex::Code
Mikko Rasa [Wed, 8 Jun 2011 06:41:03 +0000 (09:41 +0300)]
Use unsigned char as element of Regex::Code

13 years agoUse format instead of stringstream in Regex
Mikko Rasa [Wed, 8 Jun 2011 06:28:09 +0000 (09:28 +0300)]
Use format instead of stringstream in Regex

13 years agoAdd lexical conversion for DateTime
Mikko Rasa [Tue, 7 Jun 2011 13:54:13 +0000 (16:54 +0300)]
Add lexical conversion for DateTime

13 years agoRemove the old commented out MutexPtr implementation
Mikko Rasa [Tue, 7 Jun 2011 13:52:55 +0000 (16:52 +0300)]
Remove the old commented out MutexPtr implementation

13 years agoAllow error mode to be specified when creating the codec object
Mikko Rasa [Tue, 7 Jun 2011 10:16:11 +0000 (13:16 +0300)]
Allow error mode to be specified when creating the codec object

13 years agoException changes
Mikko Rasa [Mon, 6 Jun 2011 20:37:44 +0000 (23:37 +0300)]
Exception changes

13 years agoAvoid using an exception in a non-error situation
Mikko Rasa [Mon, 6 Jun 2011 20:33:29 +0000 (23:33 +0300)]
Avoid using an exception in a non-error situation

13 years agoPut unichar and ustring in their own file
Mikko Rasa [Sun, 5 Jun 2011 19:58:18 +0000 (22:58 +0300)]
Put unichar and ustring in their own file

13 years agoFix unicode replacement character
Mikko Rasa [Sun, 5 Jun 2011 19:52:42 +0000 (22:52 +0300)]
Fix unicode replacement character

13 years agoReturn -1 from decode_char if there is no input
Mikko Rasa [Sat, 4 Jun 2011 18:16:19 +0000 (21:16 +0300)]
Return -1 from decode_char if there is no input
Improve the logic in some decoders

13 years agoRename UnicodeChar to unichar
Mikko Rasa [Fri, 3 Jun 2011 13:45:44 +0000 (16:45 +0300)]
Rename UnicodeChar to unichar

13 years agoRewrite string codec utility functions more compactly
Mikko Rasa [Thu, 2 Jun 2011 15:15:13 +0000 (18:15 +0300)]
Rewrite string codec utility functions more compactly

13 years agoRename namespace Codecs to StringCodec
Mikko Rasa [Wed, 1 Jun 2011 12:53:37 +0000 (15:53 +0300)]
Rename namespace Codecs to StringCodec

13 years agoDrop copyright and license notices from source files
Mikko Rasa [Wed, 1 Jun 2011 10:11:37 +0000 (13:11 +0300)]
Drop copyright and license notices from source files
A single Copying.txt file shall be enough

13 years agoUse new system_error class in TimeZone
Mikko Rasa [Mon, 30 May 2011 21:11:57 +0000 (00:11 +0300)]
Use new system_error class in TimeZone

13 years agoFix incorrect return value check in get_local_timezone
Mikko Rasa [Mon, 30 May 2011 21:10:06 +0000 (00:10 +0300)]
Fix incorrect return value check in get_local_timezone

13 years agoUse format instead of stringstream in TimeZone
Mikko Rasa [Mon, 30 May 2011 20:24:54 +0000 (23:24 +0300)]
Use format instead of stringstream in TimeZone

13 years agoFlip the sign of TimeZone offset so it makes more sense
Mikko Rasa [Mon, 30 May 2011 20:16:00 +0000 (23:16 +0300)]
Flip the sign of TimeZone offset so it makes more sense

13 years agoFix a bug with leap year handling in DateTime::add_days
Mikko Rasa [Mon, 30 May 2011 19:59:48 +0000 (22:59 +0300)]
Fix a bug with leap year handling in DateTime::add_days

13 years agoUse format instead of stringstream in DateTime
Mikko Rasa [Mon, 30 May 2011 19:58:39 +0000 (22:58 +0300)]
Use format instead of stringstream in DateTime

13 years agoChange exception classes and messages in DateTime
Mikko Rasa [Sat, 28 May 2011 13:37:04 +0000 (16:37 +0300)]
Change exception classes and messages in DateTime

13 years agoPut DateTime::init functions to the correct place in .cpp
Mikko Rasa [Sat, 28 May 2011 13:34:54 +0000 (16:34 +0300)]
Put DateTime::init functions to the correct place in .cpp
Eliminate DateTime::validate

13 years agoUse the timespec conversion in Semaphore::wait
Mikko Rasa [Sat, 28 May 2011 13:00:46 +0000 (16:00 +0300)]
Use the timespec conversion in Semaphore::wait

13 years agoSelect RawTime definition based on compiler, not platform
Mikko Rasa [Sat, 28 May 2011 12:57:54 +0000 (15:57 +0300)]
Select RawTime definition based on compiler, not platform
Put time(val|spec) conversion functions to rawtime.h
Use conversion operators in favor of fill_* methods
Add conversions to TimeStamp as well

13 years agoRename time/types.h to rawtime.h
Mikko Rasa [Sat, 28 May 2011 12:25:46 +0000 (15:25 +0300)]
Rename time/types.h to rawtime.h

13 years agoUse format instead of stringstream in TimeDelta
Mikko Rasa [Sat, 28 May 2011 10:23:01 +0000 (13:23 +0300)]
Use format instead of stringstream in TimeDelta

13 years agoRemove the now-unused types.h
Mikko Rasa [Sat, 28 May 2011 10:15:40 +0000 (13:15 +0300)]
Remove the now-unused types.h

13 years agoRefactor Mutex with pimpl
Mikko Rasa [Sat, 28 May 2011 10:05:30 +0000 (13:05 +0300)]
Refactor Mutex with pimpl
Rewrite the win32 implementation to use a critical section
Change the logic of Semaphore, as the win32 condvar-emulation was rather dodgy

13 years agoNew system_error exception class
Mikko Rasa [Sat, 28 May 2011 10:12:34 +0000 (13:12 +0300)]
New system_error exception class

13 years agoRefactor Thread class with pimpl to avoid exposing platform-specific parts
Mikko Rasa [Sat, 28 May 2011 09:52:16 +0000 (12:52 +0300)]
Refactor Thread class with pimpl to avoid exposing platform-specific parts

13 years agoAdd a missing #include <windows.h>
Mikko Rasa [Sat, 28 May 2011 09:14:52 +0000 (12:14 +0300)]
Add a missing #include <windows.h>

13 years agoUse lexical_cast instead of stringstream in GetOpt
Mikko Rasa [Sat, 28 May 2011 09:00:07 +0000 (12:00 +0300)]
Use lexical_cast instead of stringstream in GetOpt

13 years agoException improvements for lexical_cast
Mikko Rasa [Sat, 28 May 2011 09:04:02 +0000 (12:04 +0300)]
Exception improvements for lexical_cast

13 years agoException changes for Fmt and Formatter
Mikko Rasa [Sat, 28 May 2011 08:54:12 +0000 (11:54 +0300)]
Exception changes for Fmt and Formatter

13 years agoRename formatter.* to format.*
Mikko Rasa [Sat, 28 May 2011 07:52:49 +0000 (10:52 +0300)]
Rename formatter.* to format.*

13 years agoImprove error reporting in Variant
Mikko Rasa [Wed, 25 May 2011 20:32:24 +0000 (23:32 +0300)]
Improve error reporting in Variant

13 years agoMake help message printing automatic
Mikko Rasa [Wed, 25 May 2011 18:35:59 +0000 (21:35 +0300)]
Make help message printing automatic
Start making more use of std exception classes

13 years agoMerge branch 'strings-master'
Mikko Rasa [Wed, 25 May 2011 13:46:08 +0000 (16:46 +0300)]
Merge branch 'strings-master'

Conflicts:
.gitignore
Build
Changelog.txt

13 years agoMove files around to prepare for assimilation into core strings-master
Mikko Rasa [Wed, 25 May 2011 07:28:17 +0000 (10:28 +0300)]
Move files around to prepare for assimilation into core

13 years agoFurther style and comment adjustments
Mikko Rasa [Wed, 25 May 2011 07:08:45 +0000 (10:08 +0300)]
Further style and comment adjustments

13 years agoRemove some dead functions
Mikko Rasa [Wed, 25 May 2011 07:01:22 +0000 (10:01 +0300)]
Remove some dead functions

13 years agoConvert svn:ignore to .gitignore
Mikko Rasa [Tue, 24 May 2011 06:21:35 +0000 (09:21 +0300)]
Convert svn:ignore to .gitignore

13 years agoStyle updates
Mikko Rasa [Mon, 23 May 2011 18:50:15 +0000 (21:50 +0300)]
Style updates

13 years agoJoin threads upon object destruction
Mikko Rasa [Mon, 23 May 2011 18:49:41 +0000 (21:49 +0300)]
Join threads upon object destruction

13 years agoPrevent a crash if application destructor throws
Mikko Rasa [Mon, 23 May 2011 18:28:25 +0000 (21:28 +0300)]
Prevent a crash if application destructor throws

13 years agoStreamline application class registration
Mikko Rasa [Mon, 23 May 2011 18:20:23 +0000 (21:20 +0300)]
Streamline application class registration

13 years agoEliminate loop mode from Application
Mikko Rasa [Mon, 23 May 2011 18:07:55 +0000 (21:07 +0300)]
Eliminate loop mode from Application

13 years agoConvert svn:ignore to .gitignore
Mikko Rasa [Tue, 24 May 2011 06:01:57 +0000 (09:01 +0300)]
Convert svn:ignore to .gitignore

14 years agoMake to_unixtime const
Mikko Rasa [Fri, 26 Nov 2010 12:59:20 +0000 (12:59 +0000)]
Make to_unixtime const
Add fill_timeval method

14 years agoRefPtr:
Mikko Rasa [Fri, 8 Oct 2010 19:54:28 +0000 (19:54 +0000)]
RefPtr:
Add templated copy-ctor and copy-assignment
Add assignment from a plain pointer for efficiency
Add keep() method to prevent deletion of data
Fix a potential leak in cast_dynamic
Style updates

14 years agoFix a #include to use relative filename
Mikko Rasa [Thu, 11 Feb 2010 08:13:43 +0000 (08:13 +0000)]
Fix a #include to use relative filename

14 years agoAdd RemoveReference meta-function
Mikko Rasa [Wed, 3 Feb 2010 13:35:47 +0000 (13:35 +0000)]
Add RemoveReference meta-function

14 years agoAdd LogicError exception class
Mikko Rasa [Mon, 21 Dec 2009 07:27:10 +0000 (07:27 +0000)]
Add LogicError exception class
Throw InvalidState in DateTime::get_timestamp for out-of-range values

15 years agoBump version to 1.1 strings-1.1
Mikko Rasa [Mon, 21 Sep 2009 16:47:08 +0000 (16:47 +0000)]
Bump version to 1.1
Update Build file for upcoming Builder release

15 years agoBump version to 1.1 1.1
Mikko Rasa [Mon, 21 Sep 2009 16:40:37 +0000 (16:40 +0000)]
Bump version to 1.1
Update Build file for upcoming Builder release

15 years agoUse transliterate mode in transcode
Mikko Rasa [Mon, 21 Sep 2009 16:28:17 +0000 (16:28 +0000)]
Use transliterate mode in transcode

15 years agoFix compile erorrs on 64-bit systems
Mikko Rasa [Sun, 20 Sep 2009 16:16:36 +0000 (16:16 +0000)]
Fix compile erorrs on 64-bit systems

15 years agoFix a compilation error on 64-bit systems
Mikko Rasa [Sun, 20 Sep 2009 16:16:11 +0000 (16:16 +0000)]
Fix a compilation error on 64-bit systems

15 years agoFix GetOpt to get strings correctly
Mikko Rasa [Fri, 11 Sep 2009 17:34:36 +0000 (17:34 +0000)]
Fix GetOpt to get strings correctly
Handle missing/extraneous arguments in OptBase

15 years agoRewrite Timer to use a heap instead of set to deal with duplicate timeouts
Mikko Rasa [Fri, 11 Sep 2009 17:32:58 +0000 (17:32 +0000)]
Rewrite Timer to use a heap instead of set to deal with duplicate timeouts
Get local timezone from /etc/localtime instead of tzset()
Add TimeStamp::to_unixtime

15 years agoImprove GetOpt help generation
Mikko Rasa [Thu, 7 May 2009 06:01:55 +0000 (06:01 +0000)]
Improve GetOpt help generation

15 years agoFix the UTF-8 decoder
Mikko Rasa [Mon, 23 Mar 2009 11:49:11 +0000 (11:49 +0000)]
Fix the UTF-8 decoder

15 years agoAdd convenience functions to Encoder and Decoder to process a string and return the...
Mikko Rasa [Mon, 23 Mar 2009 11:12:27 +0000 (11:12 +0000)]
Add convenience functions to Encoder and Decoder to process a string and return the result
Fix UTF-8 detection in Codecs::detect_codec

15 years agoFix some win32 compile errors
Mikko Rasa [Sun, 8 Mar 2009 15:41:38 +0000 (15:41 +0000)]
Fix some win32 compile errors

15 years agoFix a problem with MATCH_MASK handling in Regex
Mikko Rasa [Sun, 8 Mar 2009 15:35:26 +0000 (15:35 +0000)]
Fix a problem with MATCH_MASK handling in Regex
Explicitly cast both arguments to pow to the same type so mingw doesn't get confused

15 years agoFix octal escape generation in c_escape
Mikko Rasa [Sat, 21 Feb 2009 10:31:55 +0000 (10:31 +0000)]
Fix octal escape generation in c_escape
Fix mask matching to check for proper range
Don't use uint8_t since it's not supported by MSVC

15 years agoMake codecs able to tell their name
Mikko Rasa [Thu, 25 Dec 2008 08:57:28 +0000 (08:57 +0000)]
Make codecs able to tell their name
Support autodetecting the correct codec for a string

15 years agoAdd utility functions to check the contents of a string
Mikko Rasa [Wed, 24 Dec 2008 07:08:10 +0000 (07:08 +0000)]
Add utility functions to check the contents of a string
Fix str_to_bool

15 years agoMake sure all files have the correct header
Mikko Rasa [Wed, 24 Dec 2008 07:01:36 +0000 (07:01 +0000)]
Make sure all files have the correct header
Update class member order to new style

15 years agoAdd copy constructor and copy assignment to Variant
Mikko Rasa [Mon, 15 Dec 2008 11:40:24 +0000 (11:40 +0000)]
Add copy constructor and copy assignment to Variant

15 years agoAdd support for time zones
Mikko Rasa [Mon, 15 Dec 2008 11:33:48 +0000 (11:33 +0000)]
Add support for time zones
Fix bugs in DateTime addition operations
Add subtraction operators for DateTime

15 years agoRewrite lexical_cast to use internal conversion routines
Mikko Rasa [Tue, 9 Dec 2008 09:12:30 +0000 (09:12 +0000)]
Rewrite lexical_cast to use internal conversion routines
Add getters to Fmt

16 years agoHandle branches in subregexes correctly
Mikko Rasa [Tue, 25 Nov 2008 06:45:28 +0000 (06:45 +0000)]
Handle branches in subregexes correctly

16 years agoMSVC compatibility fixes
Mikko Rasa [Thu, 13 Nov 2008 10:40:34 +0000 (10:40 +0000)]
MSVC compatibility fixes

16 years agoConvert a C-style cast to C++-style
Mikko Rasa [Wed, 24 Sep 2008 16:16:17 +0000 (16:16 +0000)]
Convert a C-style cast to C++-style

16 years agoAdd validation for DateTime constructor parameters
Mikko Rasa [Sun, 31 Aug 2008 00:14:30 +0000 (00:14 +0000)]
Add validation for DateTime constructor parameters

16 years agoImprove BackTrace printing
Mikko Rasa [Sun, 24 Aug 2008 21:35:30 +0000 (21:35 +0000)]
Improve BackTrace printing

16 years agoOnly require -ldl on Linux
Mikko Rasa [Fri, 15 Aug 2008 21:43:59 +0000 (21:43 +0000)]
Only require -ldl on Linux

16 years agoexecinfo.h is a GNU extension so check for glibc
Mikko Rasa [Fri, 15 Aug 2008 17:55:32 +0000 (17:55 +0000)]
execinfo.h is a GNU extension so check for glibc

16 years agoAdd jisx0208.table to tarball strings-1.0
Mikko Rasa [Thu, 14 Aug 2008 13:31:53 +0000 (13:31 +0000)]
Add jisx0208.table to tarball

16 years agoUpdate and clean up svn:ignore 1.0
Mikko Rasa [Sun, 10 Aug 2008 18:25:27 +0000 (18:25 +0000)]
Update and clean up svn:ignore
Bump version number for release
Add License.txt to tarball

16 years agoUpdate svn:ignore
Mikko Rasa [Sun, 10 Aug 2008 18:21:47 +0000 (18:21 +0000)]
Update svn:ignore
Add License.txt

16 years agoMake the programs use the library and headers from installed locations to work correc...
Mikko Rasa [Sun, 10 Aug 2008 16:12:59 +0000 (16:12 +0000)]
Make the programs use the library and headers from installed locations to work correctly with different profiles
Bump version number for release

16 years agoAdd specialization for lexical_cast<std::string> to avoid borking with spaces
Mikko Rasa [Wed, 6 Aug 2008 19:34:49 +0000 (19:34 +0000)]
Add specialization for lexical_cast<std::string> to avoid borking with spaces
Fix handling of parentheses inside bracker expressions in RegEx
Update ignores

16 years agoAdd a "where" property to Exception class
Mikko Rasa [Wed, 6 Aug 2008 16:29:57 +0000 (16:29 +0000)]
Add a "where" property to Exception class

16 years agoHandle constness in Variant
Mikko Rasa [Tue, 5 Aug 2008 06:33:56 +0000 (06:33 +0000)]
Handle constness in Variant
Return a reference from Variant::value()
Add meta.h for metaprogramming stuff

16 years agoReport uncaught exceptions with a MessageBox on win32
Mikko Rasa [Wed, 23 Jul 2008 13:03:21 +0000 (13:03 +0000)]
Report uncaught exceptions with a MessageBox on win32

16 years agoAllow canceling timers
Mikko Rasa [Sat, 19 Jul 2008 13:00:56 +0000 (13:00 +0000)]
Allow canceling timers
Use MutexLocks for more robustness
Add get_next_timeout function

16 years agoRemove an obsolete Makefile
Mikko Rasa [Tue, 24 Jun 2008 19:33:50 +0000 (19:33 +0000)]
Remove an obsolete Makefile
Translate windows error codes to text in SystemError

16 years agoFix a gcc 4.3 style warning
Mikko Rasa [Tue, 24 Jun 2008 14:24:46 +0000 (14:24 +0000)]
Fix a gcc 4.3 style warning

16 years agoFix some more style warnings
Mikko Rasa [Sun, 8 Jun 2008 23:15:05 +0000 (23:15 +0000)]
Fix some more style warnings

16 years agoAdd missing includes
Mikko Rasa [Sun, 8 Jun 2008 16:00:06 +0000 (16:00 +0000)]
Add missing includes
Fix a gcc 4.3 style warning

16 years agoAdd missing includes
Mikko Rasa [Sun, 8 Jun 2008 15:17:34 +0000 (15:17 +0000)]
Add missing includes

16 years agoRemove the "optimization" of omitting MATCH_CHAR instruction for characters >LAST_INS...
Mikko Rasa [Wed, 28 May 2008 23:56:45 +0000 (23:56 +0000)]
Remove the "optimization" of omitting MATCH_CHAR instruction for characters >LAST_INSTRUCTION_ since it caused trouble with -O3 without a measurable benefit
Fix commandline handling in grep