Ziy1-Tan commented on issue #46914:
URL: https://github.com/apache/arrow/issues/46914#issuecomment-3016537523

   this snippet may work:
   ```c++
   bool ci_start_with(std::string_view str, std::string_view prefix) {
       if (str.size() < prefix.size()) {
           return false;
       }
   
       for (size_t i = 0; i < prefix.size(); ++i) {
           if (std::tolower(static_cast<unsigned char>(str[i])) != 
               std::tolower(static_cast<unsigned char>(prefix[i]))) {
               return false;
           }
       }
   
       return true;
   }


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to