mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
String -> Float conversions
This commit is contained in:
parent
3d7b69ecad
commit
11e55dd8d2
10 changed files with 177 additions and 7 deletions
|
@ -82,6 +82,9 @@ struct SharedString
|
|||
return cbindgen_private::sixtyfps_shared_string_bytes(this);
|
||||
}
|
||||
|
||||
const char *begin() const { return data(); }
|
||||
const char *end() const { return std::string_view(*this).end(); }
|
||||
|
||||
/// Creates a new SharedString from the given number \a n. The string representation of the
|
||||
/// number uses a minimal formatting scheme: If \a n has no fractional part, the number will be
|
||||
/// formatted as an integer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue