summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-09-21Stop throwing out of range exception from dateTimeToLocalStringTobias Markmann
The dateTimeToLocalString uses boost functions that may throw an out of range exception for times earlier than 1970. This commit caches this exception and just returns an empty string in this case. Test-Information: Added a unit test to verify this behavior. Change-Id: I05eb17605331e14d9eac04fbfd286362e7d4eb46
2014-12-15Update Copyright in SwiftenKevin Smith
Change-Id: I94ab4bbb68c603fe872abeb8090575de042f5cb4
2013-05-17Fixed unicode path handling.Remko Tronçon
- Use boost::filesystem::path consistently for referring to files. - Use boost::filesystem streams for I/O, such that paths are always handled correctly. - Use stringToPath and pathToString for conversion between strings and boost::filesystem::path, to ensure we have consistent unicode handling across platforms and environments. The default constructor and string conversion uses platform-dependent encoding, depending on the global locale set in the application, which causes problems. So, unless you are in platform dependent code, the default constructor and string() function should not be used. When constructing paths from other paths (e.g. using operator/), also use stringToPath (instead of string arguments) if the path can contain unicode characters. Change-Id: If286bd9e71c8414afc0b24ba67e26ab7608ef6ea
2012-11-13Allow BOSH URL setting again.Kevin Smith
Also fixes use of getPort() so that HTTP headers aren't all for port :1. Change-Id: I8ead8a7f4826d1105bf1feafea21e6139e803de7 Resolves: #1178
2012-10-05Strip leading '/' from BOSH paths.Remko Tronçon
Resolves: #1167
2012-09-17Fixed URL parsing/serializing.Remko Tronçon
Resolves: #1157,#1158
2012-09-15Added URL parser.Remko Tronçon
2011-10-14Resurrecting simple ID generator.Remko Tronçon
2011-06-09DateTime refactoring.Remko Tronçon
Moved DateTime serializing into Base. Fixed a bug when XEP82 dates are non-UTC. Added unit tests.
2011-05-05Replace ByteArray by typedef.Remko Tronçon
2011-04-30Replace #icnlude "" by #include <> in Swiften.Remko Tronçon
2011-04-18Chop off trailing \0 in ByteArray::toString().Remko Tronçon
2011-04-18Added ByteArray unit tests for null termination.Remko Tronçon
2011-03-12Allow empty hashes in cache.Remko Tronçon
2011-03-12Make ByteArray an std::vector<unsigned char>.Remko Tronçon
2011-02-14Removed Swift::String.Remko Tronçon
2011-02-14String refactoring.Remko Tronçon
Removed String::getLength(). Rewrote String::removeAll().
2010-08-19Added getExecutablePath().Remko Tronçon
2010-04-08Added copyrights to Swiften.Kevin Smith
2010-03-28Moving submodule contents back.Remko Tronçon
2010-03-28Removing submodules.Remko Tronçon
2010-03-28Moved Swiften to a separate module.Remko Tronçon
2009-12-22Add a PreviousStatusStore.Kevin Smith
2009-09-30Fix ByteArray::getData() when bytearray is empty.Remko Tronçon
Also did similar fix for ByteArray constructor.
2009-08-22Fix expanded tab characters.Remko Tronçon
2009-08-16Remove autoconf/make files.Remko Tronçon
2009-07-31Add String::split().Remko Tronçon
2009-06-22Use lowercase app name for application dir on Un*x systems.Remko Tronçon
2009-06-01Import.Remko Tronçon