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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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 from 39e8379 to f38409e Compare May 11, 2025 13:08
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 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
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