We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd0a4a commit 1b8d8e4Copy full SHA for 1b8d8e4
test/llvm/llvmcodebuilder_test.cpp
@@ -246,12 +246,8 @@ class LLVMCodeBuilderTest : public testing::Test
246
case OpType::StrCmpEQCS:
247
return v1.toString() == v2.toString();
248
249
- case OpType::StrCmpEQCI: {
250
- // TODO: Use a custom function for string comparison
251
- std::string str1 = v1.toString();
252
- std::string str2 = v2.toString();
253
- return strcasecmp(str1.c_str(), str2.c_str()) == 0;
254
- }
+ case OpType::StrCmpEQCI:
+ return string_compare_case_insensitive(value_toStringPtr(&v1.data()), value_toStringPtr(&v2.data())) == 0;
255
256
case OpType::And:
257
return v1.toBool() && v2.toBool();
0 commit comments