summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/utils.cpp
AgeCommit message (Collapse)Author
2018-01-26code optimizationGeorge Hazan
2017-12-06convert all files exept curl and new_gpg to utf-8 BOM (reverted from commit ↵Kirill Volinsky
62202ed10617927d5429bc59898e12a366abe744)
2017-12-06convert all files exept curl and new_gpg to utf-8 BOMKirill Volinsky
2017-11-13Code modernize ...Goraf
* replace 0/NULL with nullptr [using clang-tidy]
2017-02-06Msg_Export: Fix exporting unicode messages, make it even faster (addresses #609)Robert Pösel
Previously code worked with opening file and loading BOM at writing each event. When we stopped closing/opening file at each event it couldn't read BOM anymore, so it wrote messages in wrong codepage. This is not fixed by parameter defining we are just appending the file, so it doesn't need to determing BOM or even check file size. Thanks to this exporting is now about 70% faster than the initial optimization commit (in sum 13.5x faster than before).
2017-02-06Msg_Export: Allow entering "0" for no limit of line widthRobert Pösel
2017-02-06Msg_Export: Optimize checking ignored contacts/protocols (addresses #609)Robert Pösel
Makes export about 20% faster.
2017-02-05Msg_Export: Optimize exporting all history (fixes #609)Robert Pösel
Makes export about 10x faster.
2017-01-17useless field DBEVENTINFO::cbSize removedGeorge Hazan
2016-09-13mode old database junk to dieGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17291 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-29no more TCHARsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-27less TCHARsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-26less TCHARs:George Hazan
- TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-25hello, Unix.George Hazan
phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-05-18these tons of code aren't needed anymore...George Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@16850 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-05-18fixes #733: (MsgExport : write JabberID to exported history log as UIN ↵George Hazan
field, for example) git-svn-id: http://svn.miranda-ng.org/main/trunk@16845 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-11-06Msg_Export: Fixed crash after r15554 (fixes #1082)Tobias Weimer
git-svn-id: http://svn.miranda-ng.org/main/trunk@15690 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-10-14fix for bug #754 (MsgExport write in text file nick as (Unknown Contact))George Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@15554 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-28mir_sntprintf / mir_snprintf: obsoleted second parameter removed wherever ↵George Hazan
possible git-svn-id: http://svn.miranda-ng.org/main/trunk@15064 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-16fixes warning & 64-bit issuesGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14973 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-16name conflicts solvedGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14971 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-07-25msg_export: common projectKirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@14700 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-30MS_CLIST_GETSTATUSMODEDESCRIPTION & MS_CLIST_GETCONTACTDISPLAYNAME replaced ↵George Hazan
with pcli->* members git-svn-id: http://svn.miranda-ng.org/main/trunk@14459 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-19SIZEOF replaced with more secure analog - _countofGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-19MsgExport:Tobias Weimer
- fixed truncation of exported messages (#939) - minor other fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14267 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-19timezone api migrated to mir_coreGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14266 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-19various quirks during MS_DB_TIME_TIMESTAMPTOSTRINGT callsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14265 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-04new mir_sntprintf templates without SIZEOFGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14004 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-04new mir_snprintf templates without SIZEOFGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-22T2Utf - handy replacement for ptrA<mir_utf8decodeT()>George Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@13758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-22replace strlen to mir_strlenKirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@13747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-16cleanupKirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@13622 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-01-16MEVENT - the strict type for events, they are not HANDLE anymoreGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@11866 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-01ZeroMemory -> memset, few bugs fisedRozhuk Ivan
git-svn-id: http://svn.miranda-ng.org/main/trunk@11184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-30Fix buf size for Get/Set text, open/save file nameRozhuk Ivan
SMS: SIZE_T -> size_t MRA: small code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@11175 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-02-12another bunch of useless conversions diedGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@8109 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-02-10HCONTACT is not needed anymoreGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@8086 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-02-10- HANDLE hContact => HCONTACTGeorge Hazan
- GCF_* prefix was added to chat constants to avoid name conflicts git-svn-id: http://svn.miranda-ng.org/main/trunk@8078 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-01-08db => databaseDart Raiden
git-svn-id: http://svn.miranda-ng.org/main/trunk@7556 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-12-27old nasty perversion EVENTTYPE_STATUSCHANGE removed foreverGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@7396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-10-05spelling correction (thanks RMN)Vadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@6343 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-08-10code cleaningGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@5635 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-07-25replace sprintf to mir_snprintf (part 5)Kirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@5481 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-05-16words of wisdom were well receivedGeorge Hazan
now the shortened types are called ptrA, ptrT & ptrW respectively git-svn-id: http://svn.miranda-ng.org/main/trunk@4682 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-05-16shortened typedefs for string buffers:George Hazan
MCBuf -> mir_ptr<char> MTBuf -> mir_ptr<TCHAR> MWBuf -> mir_ptr<WCHAR> git-svn-id: http://svn.miranda-ng.org/main/trunk@4680 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-04-09- short function names allows to write database loops in one string;George Hazan
- 'continue' operator can be used then; - multiple bugs fixed in clists; - code becomes much more compact; git-svn-id: http://svn.miranda-ng.org/main/trunk@4403 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-04-05- rest of menus cleared;George Hazan
- old database macroses wiped out from all plugins (left in m_database.h for compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@4324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-03-30MS_DB_EVENT_* services remained, but their calls removedGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@4255 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-03-18various memory allocation problemsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@4090 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-03-14fix: various problems with memory George Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@4025 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c