edponce commented on a change in pull request #10857:
URL: https://github.com/apache/arrow/pull/10857#discussion_r681705870



##########
File path: cpp/src/arrow/compute/kernels/scalar_string.cc
##########
@@ -443,6 +443,24 @@ struct AsciiLower {
   }
 };
 
+struct AsciiCapitalizeTransform : public StringTransformBase {
+  int64_t Transform(const uint8_t* input, int64_t input_string_ncodeunits,
+                    uint8_t* output) {
+    if (input_string_ncodeunits > 0) {
+      output[0] = ascii_toupper(input[0]);
+      std::memcpy(output + 1, input + 1, input_string_ncodeunits - 1);
+    }
+    return input_string_ncodeunits;
+  }
+
+  Status InvalidStatus() override {

Review comment:
       An artifact of copy-paste from another compute function...removed.




-- 
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]


Reply via email to