-
-
Notifications
You must be signed in to change notification settings - Fork 16
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 extended trim #104
Comments
In what cases is this necessary? |
I'm using it to sanitize user input data. |
Sanitize it from what exactly? Why exactly this characters set but not, for example, |
Updated method for advanced trimming ascii and utf8 strings
List of unicode whitespace characters https://en.wikipedia.org/wiki/Whitespace_character#Unicode |
|
Generalized version
|
I think need use another name... May be:
? But I not sure. May be |
It can be applied to utf8 and ascii strings, not only to utf8. |
trim() is well known function name for string trimming. Does the implementation details matter? |
@olegbaturin Will you undertake to do PR? |
What about ltrim()/rtrim()? |
The implementations matter when performance is a goal, but otherwise developers may use regular |
Regular |
So would you like to implement it? |
I think all |
#109) Co-authored-by: Sergei Tigrov <rrr-r@ya.ru>
Done by #109 |
The text was updated successfully, but these errors were encountered: