You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Ziy1-Tan (via GitHub)" <gi...@apache.org> on 2025/06/29 10:12:16 UTC
Re: [I] [C++][FlightSQL] Remove boost/algorithm/string.h dependency [arrow]
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org