Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpp: added to_lowercase and to_uppercase to SharedString #6869

Merged
merged 14 commits into from
Nov 21, 2024
Prev Previous commit
Next Next commit
Update internal/core/string.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
FloVanGH and github-actions[bot] authored Nov 21, 2024
commit 832ce9dc9968285abec2e15fc7b39efab8cf22e3
5 changes: 4 additions & 1 deletion internal/core/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,10 @@ pub(crate) mod ffi {
}

#[no_mangle]
pub unsafe extern "C" fn slint_shared_string_to_lowercase(out: *mut SharedString, ss: &SharedString) {
pub unsafe extern "C" fn slint_shared_string_to_lowercase(
out: *mut SharedString,
ss: &SharedString,
) {
core::ptr::write(out, SharedString::from(ss.to_lowercase()));
}
#[test]
Expand Down