Commit graph

74 commits

Author SHA1 Message Date
Mirek Fidler
c5924c2288 Core: Fixed sizeof(String) with MSBT 2024-08-23 16:37:30 +02:00
Mirek Fidler
3638778b2e Core: trivially_relocatable 2024-08-23 08:35:19 +02:00
Mirek Fidler
73e6667a7e Core: IsVoid(String) 2022-05-19 00:23:26 +02:00
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
86982f15c3 Ctrl: TextCtrl View mode optimized, Core: String::Make for int conversions 2021-09-18 20:54:31 +02:00
Mirek Fidler
3237585d7d .autotest 2021-09-14 10:28:44 +02:00
Mirek Fidler
54226f44d3 Core: String::Make 2021-09-13 08:59:05 +02:00
Mirek Fidler
f3031736b7 Core: FormatDouble, ScanDbl refactored 2021-08-29 13:27:37 +02:00
Mirek Fidler
1d018151f1 Core: Integer formatting optimised 2021-08-04 11:24:05 +02:00
cxl
8a186a089e Core: String small hint constructor variant
git-svn-id: svn://ultimatepp.org/upp/trunk@16014 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-07-07 14:20:14 +00:00
cxl
5f3d978442 CtrlCore: Pen processing completely separated from mouse
git-svn-id: svn://ultimatepp.org/upp/trunk@15884 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-03-30 09:59:09 +00:00
cxl
6cc2317175 Core: Fixed std::[w]string conversion issues
git-svn-id: svn://ultimatepp.org/upp/trunk@15735 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-02-03 22:54:53 +00:00
cxl
ff78c94435 Core: std::[w]string Value and String support
git-svn-id: svn://ultimatepp.org/upp/trunk@15733 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-02-03 16:44:48 +00:00
cxl
1eec4a3a3f Core: String::Compare optimised
git-svn-id: svn://ultimatepp.org/upp/trunk@15322 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-10-29 11:49:45 +00:00
cxl
699bbb7345 Core: Sort/CoSort refactored, LambdaConvert
git-svn-id: svn://ultimatepp.org/upp/trunk@15301 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-10-25 13:15:12 +00:00
cxl
3a3e40bf16 Core: Minor StringBuffer optimisation
git-svn-id: svn://ultimatepp.org/upp/trunk@14891 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-24 15:10:42 +00:00
cxl
1af6908ff9 Core: get_i
git-svn-id: svn://ultimatepp.org/upp/trunk@14594 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-06-14 17:08:20 +00:00
cxl
c7c31ae740 Core: String / char * literal comparison optimised
git-svn-id: svn://ultimatepp.org/upp/trunk@14540 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-06-03 09:30:29 +00:00
cxl
9a09df576b Core Now using 64 bit hashes on 64 bit CPUS (faster)
git-svn-id: svn://ultimatepp.org/upp/trunk@14532 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-06-01 13:37:31 +00:00
cxl
d2967e13f1 uppsrc: In preparation to move to 64 bit hash codes, hash code type is now hash_t (replaces unsigned, dword)
git-svn-id: svn://ultimatepp.org/upp/trunk@14521 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-05-31 16:13:28 +00:00
cxl
80a7a09c67 Core: String cleanup
git-svn-id: svn://ultimatepp.org/upp/trunk@14519 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-05-30 17:27:54 +00:00
cxl
ab2547885d Core: String compare optimizations
git-svn-id: svn://ultimatepp.org/upp/trunk@14517 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-05-30 17:15:06 +00:00
cxl
6dd87dc738 Core: Value::Compare optimised for standard types
git-svn-id: svn://ultimatepp.org/upp/trunk@13416 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-18 11:44:20 +00:00
cxl
3d0e1db02f CtrlLib: TextCtrl, LineEdit, CodeEditor: view mode
git-svn-id: svn://ultimatepp.org/upp/trunk@11592 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-12-20 12:10:24 +00:00
cxl
3a5b312bf4 Core: String.ReverseFindAfter
git-svn-id: svn://ultimatepp.org/upp/trunk@10381 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-28 16:56:50 +00:00
cxl
14f7820525 Core: [W}StringBuffer completing operators
git-svn-id: svn://ultimatepp.org/upp/trunk@10328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-17 10:42:18 +00:00
cxl
8596db606b StringBuffer/WStringBuffer now have casts to void *, byte *, int16 *, CodeEditor now highlights THISFN
git-svn-id: svn://ultimatepp.org/upp/trunk@10317 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-15 06:53:49 +00:00
cxl
2cbf467ac8 RichText: Qtf: Fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@10198 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-09-01 14:57:10 +00:00
cxl
32e7ff5599 Core: String: Fixed to compile
git-svn-id: svn://ultimatepp.org/upp/trunk@10007 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-07-05 06:47:19 +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
da07262264 Core: [W]StringBuffer begin/end aliases (to Begin/End)
git-svn-id: svn://ultimatepp.org/upp/trunk@9995 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-07-02 15:34:50 +00:00
cxl
0767a2770a Core: Fast compress + xxHash adopted to Core
git-svn-id: svn://ultimatepp.org/upp/trunk@9954 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-06-21 18:57:18 +00:00
cxl
c901dfcfc6 String::begin/end
git-svn-id: svn://ultimatepp.org/upp/trunk@9940 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-06-15 07:05:03 +00:00
cxl
475151a09e Fixed ambiguity between <<lambda and <<(String&&, T)
git-svn-id: svn://ultimatepp.org/upp/trunk@9921 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-06-11 15:55:50 +00:00
cxl
c988c9c1bc Core: Fixed to compile with GCC
git-svn-id: svn://ultimatepp.org/upp/trunk@9854 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-21 10:42:26 +00:00
cxl
747a26458e Core: String: TrimLast, TrimStart, TrimEnd
git-svn-id: svn://ultimatepp.org/upp/trunk@9847 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-20 11:25:28 +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
2480852657 Core: Optimizing String
git-svn-id: svn://ultimatepp.org/upp/trunk@9403 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-01-16 13:55:25 +00:00
cxl
6ae7ffb23c Core: Value now convertible with std::[w]string, Value operator~
git-svn-id: svn://ultimatepp.org/upp/trunk@8248 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-03-09 09:02:14 +00:00
cxl
e4286f57c9 ide: Layout designer and Icon designer now have 'search' field #772
git-svn-id: svn://ultimatepp.org/upp/trunk@7406 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-06-02 11:13:18 +00:00
cxl
040913b8fd Core: Split/Join/Merge refactored
git-svn-id: svn://ultimatepp.org/upp/trunk@7285 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-04-21 15:22:49 +00:00
cxl
9a312f1e9f Core: String::FindAfter
git-svn-id: svn://ultimatepp.org/upp/trunk@7225 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-04-12 11:56:58 +00:00
cxl
afdbf717e2 Core: Fail__ for String::operator+(String, int)
git-svn-id: svn://ultimatepp.org/upp/trunk@7161 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-04-04 11:45:35 +00:00
cxl
bb954782e8 Core: String/WString compiler error on operator+(int), (size_t)
git-svn-id: svn://ultimatepp.org/upp/trunk@7155 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-04-03 10:29:14 +00:00
cxl
40415309ac Core: operator+(String, int) removed (confusing)
git-svn-id: svn://ultimatepp.org/upp/trunk@7110 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-03-28 12:19:53 +00:00
cxl
b109812220 ide: Comment/Uncomment block, Core: WString::Replace issue fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@7085 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-03-24 14:34:50 +00:00
cxl
51ff437d49 Core: String::Find(String) optimizations, refactoring
git-svn-id: svn://ultimatepp.org/upp/trunk@6977 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-03-02 10:01:14 +00:00
cxl
419f2a246d Core: Fixed String::ReverseFind with empty string
git-svn-id: svn://ultimatepp.org/upp/trunk@6211 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-07-25 13:47:38 +00:00
cxl
68d58c2fc4 CtrlCore: Jsonize, Xmlize, CtrlLib: 'the_box' in ScrollBars is now ParentCtrl
git-svn-id: svn://ultimatepp.org/upp/trunk@5582 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-11-26 13:12:22 +00:00
cxl
304df59cb0 Core: TrimLeft(prefix, s), TrimRight(suffix, s), ide: Support for force_inline
git-svn-id: svn://ultimatepp.org/upp/trunk@5542 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-11-10 14:31:24 +00:00