Commit graph

69 commits

Author SHA1 Message Date
Mirek Fidler
34ff691308 sizeof(wchar) is changed to 4 (32 bits) to support non BMP unicode characters
This might bring some incompatibilities in the code that expects wchar to be 16 bit, which
  escpecially involves dealing with Win32 (and to lesser extend MacOS) APIs, so if your application
  is doing that, please check all instances of WCHAR (UniChar on MacOS) or even wchar
  especially type casts.

  To support host APIs, char16 is introduced (but there is no 16-bit String varian).

  Use ToSystemCharsetW, FromSystemCharsetW to convert texts to Win32 API.

- Support of drawing non-BMP characters in GUI
- Vastly improved character font replacement code (when drawing characters missing with requested font, replacement font is used)
- Last instances of Win32 ANSI calls (those ending with A) are removed
- UTF handling routines are refactored and their's naming is unified
- RTF is now being able to handle non-BMP characters (RTF is used as clipboard format for RichText)

Other minor changes:

- fixed TryRealloc issue
- improved MemoryCheck
- Removed MemoryAlloc48/MemoryFree48
- In theide Background parsing should less often cause delays in the main thread
2021-12-02 12:03:19 +01:00
cxl
9293ed2be0 uppsrc: Visual C++ compiler bug [W]StringBuffer workaround
git-svn-id: svn://ultimatepp.org/upp/trunk@15123 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-09-23 09:37:31 +00:00
cxl
2352d9b58c Core: Mem.h improvements
git-svn-id: svn://ultimatepp.org/upp/trunk@14505 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-05-27 16:39:08 +00:00
cxl
36fadbf7bf uppsrc: Many memcpy, memset converted to new memory functions
git-svn-id: svn://ultimatepp.org/upp/trunk@14493 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-05-22 15:14:16 +00:00
cxl
fc4dfce19e Core: Peek, Poke, Stream: Get16, 32, 64 optimized
git-svn-id: svn://ultimatepp.org/upp/trunk@14440 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-05-08 13:55:42 +00:00
cxl
5656bb4d01 uppsrc: MemoryAlloc instead of new[]
git-svn-id: svn://ultimatepp.org/upp/trunk@13389 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-13 11:37:54 +00:00
cxl
822cfb6bce uppsrc: Removed flagSO #ifdefs (actually to make SO compilation possible)
git-svn-id: svn://ultimatepp.org/upp/trunk@12997 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-04-14 08:34:13 +00:00
cxl
e1b27cb1f4 Core: CopyStream improved
git-svn-id: svn://ultimatepp.org/upp/trunk@12202 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-08-28 07:48:06 +00:00
cxl
f92853bb88 Core: CopyStream progress fix
git-svn-id: svn://ultimatepp.org/upp/trunk@12201 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-08-27 16:06:46 +00:00
cxl
911880c8f7 Core: StringStream ExcLimit exception fixed for big chunks of data
git-svn-id: svn://ultimatepp.org/upp/trunk@11833 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-03-12 15:11:34 +00:00
cxl
587a04b4e2 Core: ReadSecret now using TCSADRAIN (thanks Oblivion)
git-svn-id: svn://ultimatepp.org/upp/trunk@11671 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-01-08 13:24:00 +00:00
cxl
dcaef5c6ee Core: Fixed problem with OutStream destructor
git-svn-id: svn://ultimatepp.org/upp/trunk@11486 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-11-20 10:10:19 +00:00
cxl
143b86293f Core: OutStream Close now calls Flush
git-svn-id: svn://ultimatepp.org/upp/trunk@11483 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-11-19 16:44:23 +00:00
cxl
638c3cf1fd Core: LoadFile now able to load files up to 2GB (was 1GB)
git-svn-id: svn://ultimatepp.org/upp/trunk@11281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-08-03 09:30:18 +00:00
cxl
28efdebbd1 Core: ReadSecret (thanks Oblivion)
git-svn-id: svn://ultimatepp.org/upp/trunk@11238 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-07-15 09:05:42 +00:00
cxl
44037d6a0c 'Event' branch merged into trunk (Callback now deprecated)
git-svn-id: svn://ultimatepp.org/upp/trunk@10260 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-04 08:15:05 +00:00
cxl
33238140d3 Stream::GetErrorText
git-svn-id: svn://ultimatepp.org/upp/trunk@10201 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-09-06 15:35:06 +00:00
cxl
8ebdcbb0d5 uppsrc: NAMESPACE_UPP / END_UPP_NAMESPACE removed
git-svn-id: svn://ultimatepp.org/upp/trunk@10186 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-08-26 17:15:30 +00:00
cxl
058feb5bee Core: Fixed zlib overloading problem
git-svn-id: svn://ultimatepp.org/upp/trunk@10128 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-08-01 07:53:08 +00:00
cxl
786bd24587 Core: zlib compression/decompression streams
git-svn-id: svn://ultimatepp.org/upp/trunk@10119 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-07-31 06:51:07 +00:00
cxl
6ecd1d098b LZ4: developing
git-svn-id: svn://ultimatepp.org/upp/trunk@10094 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-07-25 10:48:05 +00:00
cxl
220f751a03 Core: Optimized OutStream, removed DDUMPs
git-svn-id: svn://ultimatepp.org/upp/trunk@10032 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-07-12 12:21:46 +00:00
cxl
a202a08425 Core: Fixed issue with Stream::Get(Huge&, int)
git-svn-id: svn://ultimatepp.org/upp/trunk@10012 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-07-06 07:41:34 +00:00
cxl
7519e94105 Removed DDUMPs
git-svn-id: svn://ultimatepp.org/upp/trunk@10010 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-07-05 19:49:01 +00:00
cxl
8f11c6f135 Core: Huge class
git-svn-id: svn://ultimatepp.org/upp/trunk@10006 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-07-04 08:02:22 +00:00
cxl
df1784c992 Core: SizeStream
git-svn-id: svn://ultimatepp.org/upp/trunk@9987 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-06-28 14:46:36 +00:00
cxl
37762af597 Core: SizeStream fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@9986 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-06-28 13:13:37 +00:00
cxl
30a1c1ebd9 Core: InFilterStream optimized
git-svn-id: svn://ultimatepp.org/upp/trunk@9984 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-06-28 13:04:56 +00:00
cxl
70efacb472 Core: SerializeRaw now has 64-bit size
git-svn-id: svn://ultimatepp.org/upp/trunk@9788 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-03 20:59:38 +00:00
cxl
5edae0e110 .reorganizing
git-svn-id: svn://ultimatepp.org/upp/trunk@9759 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-01 20:21:16 +00:00
cxl
2c5482f4ab Core: FileMapping now using size_t instead of dword where appropriate
git-svn-id: svn://ultimatepp.org/upp/trunk@8814 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-08-17 11:20:03 +00:00
cxl
4a35689216 plugin/lz4
git-svn-id: svn://ultimatepp.org/upp/trunk@7801 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-10-20 15:43:18 +00:00
cxl
38306901c3 ide: PCH experiments
git-svn-id: svn://ultimatepp.org/upp/trunk@7795 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-10-17 13:13:02 +00:00
cxl
2975f23442 Core: InFilterStream::SetSize
git-svn-id: svn://ultimatepp.org/upp/trunk@7792 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-10-16 19:23:18 +00:00
cxl
133b39d8e4 Core: CoutUTF8, ide: UTF8 console capture
git-svn-id: svn://ultimatepp.org/upp/trunk@7717 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-09-22 12:36:44 +00:00
cxl
571a56aaff Core: Fixed console CP issues (in Cout and LocalProcess)
git-svn-id: svn://ultimatepp.org/upp/trunk@7693 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-09-15 17:46:12 +00:00
cxl
a3120b65f6 Core: Added ValueTypeError catch in for Load by serialize
git-svn-id: svn://ultimatepp.org/upp/trunk@7263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-04-16 06:55:59 +00:00
cxl
3670c6459d ide: In Posix, ide now handles non-owned files and symlinks differently #230
git-svn-id: svn://ultimatepp.org/upp/trunk@6922 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-02-16 13:51:30 +00:00
cxl
9ea152c62e .cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@6828 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-01-30 13:21:09 +00:00
cxl
9766e8d1c6 Core: LoadStream error handling refactored #660
git-svn-id: svn://ultimatepp.org/upp/trunk@6814 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-01-27 08:49:08 +00:00
cxl
cc2668b9e6 Core: Zlib Stream operations refactored (>2GB streams support)
git-svn-id: svn://ultimatepp.org/upp/trunk@6668 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-12-17 19:40:23 +00:00
cxl
6ee868092e .Core: Cerr changes
git-svn-id: svn://ultimatepp.org/upp/trunk@6381 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-09-27 08:03:56 +00:00
cxl
e8e90a33e7 plugin/tif: warning removed (thanks Klugier), Core: Cerr improved
git-svn-id: svn://ultimatepp.org/upp/trunk@6380 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-09-26 17:28:54 +00:00
cxl
c36853e67b upp.src: Reverted some OpenGL related issues, Core: Fixed Stream::Pack
git-svn-id: svn://ultimatepp.org/upp/trunk@6207 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-07-22 20:16:16 +00:00
cxl
2fdc779863 *Core: Fixed bug in Stream::Put(Stream&..)
git-svn-id: svn://ultimatepp.org/upp/trunk@6101 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-05-26 14:49:36 +00:00
cxl
156acf2cbd Core: FilterStream
git-svn-id: svn://ultimatepp.org/upp/trunk@5830 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-02-19 09:32:42 +00:00
cxl
0098735e99 .cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@5827 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-02-18 20:39:52 +00:00
cxl
02544bc7ac Core: Stream support for memory blocks >2GB
git-svn-id: svn://ultimatepp.org/upp/trunk@5824 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-02-18 10:55:25 +00:00
cxl
43e1289eed Core: LoadFile checks whether path is a file (because POSIX opens a dir too), Core/Rpc: StopRpcServerTrace
git-svn-id: svn://ultimatepp.org/upp/trunk@5546 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-11-13 07:53:32 +00:00
cxl
5b78bf89ad Core: Fixed issue with Stream::Put(Stream...)
git-svn-id: svn://ultimatepp.org/upp/trunk@5424 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-10-12 14:37:52 +00:00