17 Commits

Author SHA1 Message Date
Joonas Javanainen
5ea969d273
Implement fmt::Write for ImString 2020-01-12 15:27:21 +02:00
Joonas Javanainen
d82bc65934
Fix ImString nul terminator handling
This also changes the semantics slightly: it's now *required* to call
`refresh_len` after the buffer is modified via a mutable raw pointer.
2020-01-12 15:27:21 +02:00
Joonas Javanainen
bb792d9b18
Add some ImString tests 2020-01-12 15:02:23 +02:00
Joonas Javanainen
9618683b99
Fix various clippy nits 2020-01-12 14:09:28 +02:00
Joonas Javanainen
f7f9deb321
Pull string updates from 0.1 2019-06-27 18:03:55 +03:00
AlphaModder
a3af145327 Allow ImStrings to resize automatically when used by InputText and InputTextMultiline. 2019-03-17 18:31:07 -07:00
Joonas Javanainen
da9ee9302b
Fixes recommended by clippy 2018-08-12 19:20:14 +03:00
Joonas Javanainen
319f7aa4c6
Reformat everything 2018-08-12 14:16:56 +03:00
Joonas Javanainen
b9e0de93b0
Various ImStr/ImString updates 2017-11-04 09:05:43 +02:00
Joonas Javanainen
907f9dbdeb
Reformat with rustfmt 0.9.0 2017-11-02 22:01:02 +02:00
Joonas Javanainen
8a27431133
Remove deprecated string functions 2017-10-25 21:50:51 +03:00
Joonas Javanainen
96fe2a8e15
Builder constructors take &Ui instead 2017-07-13 00:15:13 +03:00
Joonas Javanainen
932319256f
Restructure ImString/ImStr creation functions 2017-07-12 23:30:27 +03:00
Joonas Javanainen
ace021b94a
Let's use encode_utf8 2017-05-12 23:35:43 +03:00
Joonas Javanainen
c6343d207b
ImString/ImStr fixes 2017-05-12 23:25:17 +03:00
Joonas Javanainen
cfd887d2ab
Add capacity_with_nul to ImString 2017-04-25 23:26:19 +03:00
Joonas Javanainen
cf587e4de4
Split ImStr to ImStr and ImString
It might be better to use the utf8-cstr crate, but it doesn't have the
owned<->borrowed duality, so it would be used as an implementation
detail only.
2017-04-25 23:26:19 +03:00