zclllyybb commented on code in PR #60004:
URL: https://github.com/apache/doris/pull/60004#discussion_r2728276994
##########
be/src/util/string_parser.hpp:
##########
@@ -107,6 +107,19 @@ inline const char* skip_leading_whitespace(const char*
__restrict s, T& len) {
return s;
}
+// skip trailing ascii whitespaces,
+// return the pointer to the first char,
+// and update the len to the new length, which does not include
+// trailing whitespaces
+template <typename T>
+inline const char* skip_trailing_whitespaces(const char* s, T& len) {
Review Comment:
can it be abstracted by `skip_qualified_char`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]