Compare commits

...

15 commits

Author SHA1 Message Date
657f560510 ImStrv: marked with IM_NODEBUGSTEP.
Reduce cognitive/debug-stepping load.
2026-10-26 13:59:41 +01:00
3626e2df2b ImStrv: detect and fixed misuses of CalcTextSize() old signature. (9321) 2026-10-26 13:59:41 +01:00
David Mentler
b8274df9c9 ImStrv: Added ImStrv formatter for LLDB (e.g. Xcode) 2026-10-26 13:59:40 +01:00
ocornut
e3854498fa ImStrv: made length() returns an int as it simplify the most common case (of passing %.*s to printf) 2026-10-26 13:59:40 +01:00
ocornut
0bf9a6ac49 ImStrv: allow constructing from two null pointers. 2026-10-26 13:59:40 +01:00
ocornut
71ce91097a ImStrv: Combo(), ListBox(): seems better to not introduce the ImStrv [] versions?
As 1) user is unlikely to store that on their end. 2) nowadays with lambdas isn't an easy user-side conversion.
Then we limit explosion of an already messy API.
2026-10-26 13:59:40 +01:00
ocornut
81c9a72e9f ImStrv: convert Combo()/ListBox() to use ImStrv in their getters.
Didn't convert Combo() "const char* items_separated_by_zeros" as this doesn't translate well when used via a ImStrv constructor, may actually aim to obsolete.
Fixed for shadowing local variable warning on 2025/06/25.
2026-10-26 13:59:40 +01:00
ocornut
b57179a046 ImStrv: add needed disambiguishing functions for const char* now being ambiguous. (5079)
amended for gcc/clang warnings
amended to facilitate merge with docking
2026-10-26 13:59:40 +01:00
ocornut
09f7ec1ba5 ImStrv: backtracked for now on supporting ImStrv for format strings.
It's widely incomplete and slow, requires a printf function taking non-zero-terminated format string to work.
Might do it eventually but it's much less a problem than labels. Format string are more frequently inlined in code and tend to be small, so existing solutions at call site can work better for now.
2026-10-26 13:59:40 +01:00
璀境石
4d477b5084 ImStrv: enhanced VS debugger .natvis support. build fixes. (5333, 5906) 2026-10-26 13:59:40 +01:00
ocornut
84971a4993 ImStrv: standardized code doing format copy, optimized ImStrStr 2026-10-26 13:59:40 +01:00
ocornut
1845eabf86 ImStrv: moved double char* function signatures under #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS blocks + fixed various compiles errors/warnings. 2026-10-26 13:59:40 +01:00
ocornut
3de2c4b14c ImStrv: changed ImStrv xxx=NULL args to an explicit xxx=ImStrv()
This is mostly for the benefit of cimgui parser, ideally we would do without.
2026-10-26 13:59:40 +01:00
ocornut
ac9042899f ImStrv: Step 2 - change ImStrv typedef to struct, perform all other logic conversion.
Squashed commits (initially a commit from rokups + many rework by ocornut. keeping them separate commits made rebasing unnecessarily tricking so merged from 2024/02)
ImStrv: many fixes (see details), added imconfig class extension example, added natvis description.
ImStrv: rework toward ensuring End is always set to constant can be compile time calculated
ImStrv: using length(), fix ambiguous empty() function, fix altered behaviors, removed unused operators.
ImStrv: various tweaks and fixes. removed ImGuiTextRange from ImGuiTextFilter, fix test engine hooks, removed constructor only used twice.
2026-10-26 13:59:40 +01:00
Rokas Kupstys
652998ed0b ImStrv: Step 1 - change string type to ImStrv in API. (REBASED)
(last rebase amend 2024/12/11)
2026-10-26 13:59:39 +01:00
10 changed files with 1011 additions and 814 deletions