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

Add trim method to string_rt #702

Merged
merged 3 commits into from
Jan 11, 2025
Merged

Add trim method to string_rt #702

merged 3 commits into from
Jan 11, 2025

Conversation

marcauberer
Copy link
Member

Add trim method to string_rt.

Example:

f<int> main() {
  String test = String("   \t String to be trimmed    ");
  String testTrimmed = test.trim();
  printf("'%s'\n", testTrimmed);
}

Output:

'String to be trimmed'

@marcauberer marcauberer added the enhancement New feature or request label Jan 11, 2025
@marcauberer marcauberer added this to the 0.21.0 milestone Jan 11, 2025
@marcauberer marcauberer self-assigned this Jan 11, 2025
@marcauberer marcauberer requested review from a team as code owners January 11, 2025 21:20
@github-actions github-actions bot added std Prs / issues regarding the standard lib bootstrap Change regarding the bootstrap compiler labels Jan 11, 2025
@marcauberer marcauberer enabled auto-merge (squash) January 11, 2025 21:33
@marcauberer marcauberer merged commit 70ef9af into main Jan 11, 2025
5 checks passed
@marcauberer marcauberer deleted the std/string-trim branch January 11, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bootstrap Change regarding the bootstrap compiler enhancement New feature or request size/M std Prs / issues regarding the standard lib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant