21 bool FallbackCaseSensitive) {
22 size_t MinSize = std::min(
A.size(),
B.size());
23 if (
int Res =
A.substr(0, MinSize).compare_insensitive(
B.substr(0, MinSize)))
27 if (
A.size() ==
B.size())
28 return FallbackCaseSensitive ?
A.compare(
B) : 0;
30 return (
A.size() == MinSize) ? 1
37 for (
const auto &[APre, BPre] :
zip(APrefixes, BPrefixes)) {
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.
detail::zippy< detail::zip_shortest, T, U, Args... > zip(T &&t, U &&u, Args &&...args)
zip iterator for two or more iteratable types.
int StrCmpOptionName(StringRef A, StringRef B, bool FallbackCaseSensitive=true)
int StrCmpOptionPrefixes(ArrayRef< StringRef > APrefixes, ArrayRef< StringRef > BPrefixes)