本文整理汇总了C++中TStr::EqI方法的典型用法代码示例。如果您正苦于以下问题:C++ TStr::EqI方法的具体用法?C++ TStr::EqI怎么用?C++ TStr::EqI使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TStr
的用法示例。
在下文中一共展示了TStr::EqI方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: IsFldClass
bool TNodeJsUtil::IsFldClass(v8::Local<v8::Object> Obj, const TStr& FldNm, const TStr& ClassId) {
if (!IsObjFld(Obj, FldNm)) { return false; }
v8::Isolate* Isolate = v8::Isolate::GetCurrent();
v8::HandleScope HandleScope(Isolate);
v8::Local<v8::Value> FldVal = Obj->Get(v8::String::NewFromUtf8(Isolate, FldNm.CStr()));
v8::Handle<v8::Object> FldObj = v8::Handle<v8::Object>::Cast(FldVal);
TStr ClassStr = GetClass(FldObj);
return ClassStr.EqI(ClassId);
}
示例2: IsArgWrapObj
bool TNodeJsUtil::IsArgWrapObj(const v8::FunctionCallbackInfo<v8::Value>& Args, const int& ArgN, const TStr& ClassNm) {
v8::Isolate* Isolate = v8::Isolate::GetCurrent();
v8::HandleScope HandleScope(Isolate);
// check we have enough arguments
EAssertR(Args.Length() > ArgN, TStr::Fmt("Missing argument %d of class %s", ArgN, ClassNm.CStr()));
// check argument is an object
if (!Args[ArgN]->IsObject()) return false;
// check it's class name
v8::Handle<v8::Value> Val = Args[ArgN];
v8::Handle<v8::Object> Data = v8::Handle<v8::Object>::Cast(Val);
TStr ClassStr = GetClass(Data);
return ClassStr.EqI(ClassNm);
}
示例3:
TEST(TStr, EqI) {
TStr Mixedcase = "AbCd";
TStr Empty = "";
EXPECT_TRUE(Mixedcase.EqI(Mixedcase.GetUc()));
EXPECT_TRUE(Empty.EqI(Empty));
}