Commit graph

7 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
9d34bf831e Core: Utf8BOM (skips UTF8 file header) 2021-08-24 18:05:56 +02: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
2a75ef39f2 ide: UTF16 support, UTF BOM autodetection #1049
git-svn-id: svn://ultimatepp.org/upp/trunk@8680 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-07-13 14:29:44 +00:00
cxl
231b6cdc83 Core: BOM* functions now have variant with def_charset parameter (instead of using host platform charset)
git-svn-id: svn://ultimatepp.org/upp/trunk@5534 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-11-08 11:05:56 +00:00
cxl
0e98933885 CtrlLib, ide: Support for UTF8-BOM encoding (RM #129)
git-svn-id: svn://ultimatepp.org/upp/trunk@4169 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-11-13 16:41:15 +00:00
cxl
5d7b666c41 BOM unicode files support, fixed problem with scroll in frame area
git-svn-id: svn://ultimatepp.org/upp/trunk@859 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-02-13 11:41:52 +00:00