本文整理汇总了C++中StrPtrLen::FindStringIgnoreCase方法的典型用法代码示例。如果您正苦于以下问题:C++ StrPtrLen::FindStringIgnoreCase方法的具体用法?C++ StrPtrLen::FindStringIgnoreCase怎么用?C++ StrPtrLen::FindStringIgnoreCase使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StrPtrLen
的用法示例。
在下文中一共展示了StrPtrLen::FindStringIgnoreCase方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdatePrintfOptions
void QTSServerPrefs::UpdatePrintfOptions()
{
StrPtrLen* theOptions = this->GetValue(qtssPrefsPacketHeaderPrintfOptions);
if (theOptions == NULL || theOptions->Len == 0)
return;
fPacketHeaderPrintfOptions = 0;
if (theOptions->FindStringIgnoreCase("rtp"))
fPacketHeaderPrintfOptions |= kRTPALL;
if (theOptions->FindStringIgnoreCase("sr"))
fPacketHeaderPrintfOptions |= kRTCPSR;
if (theOptions->FindStringIgnoreCase("rr"))
fPacketHeaderPrintfOptions |= kRTCPRR;
if (theOptions->FindStringIgnoreCase("app"))
fPacketHeaderPrintfOptions |= kRTCPAPP;
if (theOptions->FindStringIgnoreCase("ack"))
fPacketHeaderPrintfOptions |= kRTCPACK;
}
示例2: UpdatePrintfOptions
//获取服务器RTP/RTCP包头打印选项的预设值,解析并重新设置数据成员fPacketHeaderPrintfOptions
void QTSServerPrefs::UpdatePrintfOptions()
{
//首先获得服务器RTP/RTCP包头打印选项的预设值,假如没有,立即返回
StrPtrLen* theOptions = this->GetValue(qtssPrefsPacketHeaderPrintfOptions);
if (theOptions == NULL || theOptions->Len == 0)
return;
//解析该预设值,重新设置数据成员fPacketHeaderPrintfOptions
fPacketHeaderPrintfOptions = 0;
if (theOptions->FindStringIgnoreCase("rtp"))
fPacketHeaderPrintfOptions |= kRTPALL;
if (theOptions->FindStringIgnoreCase("sr"))
fPacketHeaderPrintfOptions |= kRTCPSR;
if (theOptions->FindStringIgnoreCase("rr"))
fPacketHeaderPrintfOptions |= kRTCPRR;
if (theOptions->FindStringIgnoreCase("app"))
fPacketHeaderPrintfOptions |= kRTCPAPP;
if (theOptions->FindStringIgnoreCase("ack"))
fPacketHeaderPrintfOptions |= kRTCPACK;
}