Use empty()/IsEmpty() when possible instead of size(), GetLength() or empty string.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/Utils@24313 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Add helper methods to encrypt and decrypt a string.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/Utils@24316 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
StringUtils: add missing includes and linker library.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/Utils@24323 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Remove using namespace std.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/Utils@24324 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Avoid assigning an std::unique_ptr but create it directly.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/Utils@24417 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
* don't make any parameters optional when saving
* when loading, check for the optional parameter to allow loading hooks saved with 1.7.x
(Fixes issue #482) : user hook scripts not loaded and saved correctly


git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/Utils@24419 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
If the GetLongPathName() API fails, return the original path without trying to handle the path further.
(Fixes issue #487) : Crash when parsing urls from the command line


git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/Utils@24431 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
leave room for the terminating 0 char and use the _countof() macro instead of the fixed value.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/Utils@24439 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac