Federico Cuello
4a10fdb2df
fix compile warning: -Wstringop-truncation / -Wstringop-overflow
2018-12-27 14:49:17 +01:00
Andrey Prygunkov
1e59b9976a
#136 , #127 : forcing extended paths with unrar (Windows)
...
Instead of using extended (extra long) path notation only if the path
is really long, we now always use extended notation since we don’t know
how long the paths inside archive are.
2016-03-22 18:25:42 +01:00
Andrey Prygunkov
f3f7fbd0de
#176 : updated copyright notice in source files
...
- added link to http://nzbget.net ;
- replaced FSF Post address with a web link;
- removed unusable subversion-tags;
- updated year.
2016-03-01 19:45:07 +01:00
Andrey Prygunkov
27eb78faab
#168 : unique smart pointers in regex
...
instead of new/delete.
2016-02-25 18:50:00 +01:00
Andrey Prygunkov
e8afb4e331
#172 : use system objects directly
...
instead of dynamic creation, which were used to avoid system includes;
that’s become unimportant after using of precompiled headers.
2016-02-23 22:31:27 +01:00
Andrey Prygunkov
8f84132218
#156 : new class "CharBuffer" for temporary buffers
...
Replaced everywhere plain “char”-buffers with new class. Avoid using
“malloc/free”.
2016-01-17 00:06:27 +01:00
Andrey Prygunkov
be852d0a9b
#143 : using <CString> instead of <char*> in containers
2016-01-03 19:58:11 +01:00
Andrey Prygunkov
04c3e0d263
#138 : use "nullptr" instead of "NULL"
2015-12-30 16:35:07 +01:00
Andrey Prygunkov
99d8cee0db
#126 : class BString supports initialization via assignment
...
which makes the code clearer.
2015-12-20 23:46:22 +01:00
Andrey Prygunkov
d87d6ac2ac
#126 : using CString for ref-parameters and return values
...
1) for parameters use references to CString instead of pointers to
buffers;
2) when returning strings use CString instead of pointer to char buffer
which caller needs to deallocate;
3) use BString even more.
2015-12-20 16:27:01 +01:00
Andrey Prygunkov
9e2d8544da
#126 : full use of class BString
...
1) replaced characters arrays with class BString through the whole
program. The string formatting code has become much cleaner.
2) class Util returns error message via CString instead of character
buffers.
3) few more places to use CString.
2015-12-19 18:43:52 +01:00
Andrey Prygunkov
ecc7fc9695
#126 : extended string classes
...
- Append/AppendFmt-methods;
- CString stores length internally for faster appends;
- removed class StringBuilder, replaced usages with CString;
- binding to existing C-style null-terminated strings with methods
Bind/Unbind.
2015-12-13 16:02:57 +01:00
Andrey Prygunkov
6b0fdc881e
#126 : new string classes
...
which can be easily used as replacement for C-style null-terminated
strings and C-style char arrays.
2015-12-12 16:34:45 +01:00
Andrey Prygunkov
ec17d119a1
#115 : put all external headers together
...
into “nzbget.h”
2015-11-19 23:51:02 +01:00
Andrey Prygunkov
1fb21b330e
#103 : normalized (renamed) acronyms
2015-10-30 23:54:37 +01:00
Andrey Prygunkov
57bee2447e
#103 : in "tests": renamed local, member variables and function parameters
2015-10-30 21:50:26 +01:00
hugbug
059bd2b54e
set correct file permissions for source code
2015-07-06 21:56:25 +02:00
Andrey Prygunkov
ec29f55f53
fixed: compiler error when building tests on Windows
2015-07-06 21:49:58 +02:00
Andrey Prygunkov
0027df28a3
fixed #8 : spaces in URLs are now automatically encoded
2015-06-26 17:05:07 +02:00
Andrey Prygunkov
708b9d93ff
#32 : replacing unknown html-entities (better version)
...
When fetching rss feeds the unknown html-entities in the description
field are now replaced with spaces (example: —).
2015-06-24 23:05:16 +02:00
Andrey Prygunkov
08c9c8f5fb
#32 , 517f860c6b: reverted
...
Reverted the replacing of unknown xml-entities. It was buggy and not a
good idea. Replacing of unknown html-entities should be separate
function (if needed).
2015-06-24 22:37:28 +02:00
hugbug
eceb7bd14b
#32 : fixed test-unit compilation error on Linux
2015-06-23 23:54:57 +02:00
Andrey Prygunkov
517f860c6b
#32 : replacing unknown html-entities
...
Function **XmlDecode** replaces unknown xml-entities with spaces.
Example: — It’s better to replace them than keep unchanged.
2015-06-23 23:41:04 +02:00
Andrey Prygunkov
0e4da5719c
#32 : created cleanup-function
...
… and a test for it.
2015-06-23 22:48:49 +02:00