edponce commented on a change in pull request #10855:
URL: https://github.com/apache/arrow/pull/10855#discussion_r681279659
##########
File path: cpp/src/arrow/compute/kernels/scalar_string.cc
##########
@@ -443,6 +488,17 @@ struct AsciiLower {
}
};
+void TransformAsciiSwapCase(const uint8_t* input, int64_t length, uint8_t*
output) {
+ std::transform(input, input + length, output, ascii_swapcase);
+}
+
+template <typename Type>
+struct AsciiSwapCase {
+ static Status Exec(KernelContext* ctx, const ExecBatch& batch, Datum* out) {
+ return StringDataTransform<Type>(ctx, batch, TransformAsciiSwapCase, out);
+ }
+};
+
Review comment:
Add `Utf8SwapCase`
--
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]