Skip to content

String formatting: support padding, alignment and precision #1161

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

Merged
merged 2 commits into from
Jun 2, 2025

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented May 11, 2025

Allows to use format!("{s:>6}") and similar expressions, yielding expected results.

Tries to not allocate extra strings if no custom formatting options are needed.

@Bromeon Bromeon added this to the 0.3.x milestone May 11, 2025
@Bromeon Bromeon added feature Adds functionality to the library c: core Core components labels May 11, 2025
@Bromeon Bromeon force-pushed the feature/string-padding branch 2 times, most recently from f38409e to 670ba19 Compare May 11, 2025 13:13
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1161

@godot-rust godot-rust deleted a comment from GodotRust May 11, 2025
Allows to use `format!("{s:>6}")` and similar expressions, yielding expected results.
Tries to not allocate extra strings if no custom formatting options are needed.
@Bromeon Bromeon force-pushed the feature/string-padding branch from 2bfc16e to 81a04f0 Compare June 2, 2025 18:48
@Bromeon Bromeon force-pushed the feature/string-padding branch from 81a04f0 to ada3750 Compare June 2, 2025 18:52
@Bromeon Bromeon enabled auto-merge June 2, 2025 18:53
@Bromeon Bromeon added this pull request to the merge queue Jun 2, 2025
Merged via the queue into master with commit f67a1ae Jun 2, 2025
17 checks passed
@Bromeon Bromeon deleted the feature/string-padding branch June 2, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: core Core components feature Adds functionality to the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants