Commit graph

11 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
Mirek Fidler
8b88b59652 Core: Atof fix 2021-11-20 16:45:47 +01:00
Mirek Fidler
ac77bc500e Atof now does not consider ',' as decimal point 2021-11-08 17:59:38 +01:00
Mirek Fidler
9458f03c96 Core: %n fix improved 2021-09-12 00:51:03 +02:00
Mirek Fidler
e52cead22b Core: FormatDouble slightly refactored 2021-09-11 11:31:42 +02:00
Mirek Fidler
95de0de094 Core: New double formatters (%m, %mf, %me) 2021-09-05 14:58:30 +02:00
Mirek Fidler
e6d00d8697 Core: AsString(double) now empty for IsNull, autotest: Atof test fixed 2021-08-31 10:54:51 +02:00
Mirek Fidler
039903de67 Core: FormatDouble precision is now 15 (DBL_DIGITS) 2021-08-31 10:11:12 +02:00
Mirek Fidler
ba737d3ece Core: Fixed issue with FormatDouble with 32bit CPUs 2021-08-29 20:26:08 +02:00
Mirek Fidler
420697e463 Core: FormatDouble sign for nans 2021-08-29 13:42:42 +02:00
Mirek Fidler
f3031736b7 Core: FormatDouble, ScanDbl refactored 2021-08-29 13:27:37 +02:00