本文整理汇总了C++中ZtringListList::Find方法的典型用法代码示例。如果您正苦于以下问题:C++ ZtringListList::Find方法的具体用法?C++ ZtringListList::Find怎么用?C++ ZtringListList::Find使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZtringListList
的用法示例。
在下文中一共展示了ZtringListList::Find方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Export_Run
void TExportF::Export_Run()
{
//Create text for the file
Ztring Text;
Ztring Append_Separator=__T("\r\n");
if (Export->ActivePage==Export_CSV)
{
//Full information
bool MediaInfo_Complete;
if (CSV_Advanced->Checked)
MediaInfo_Complete=true;
else
MediaInfo_Complete=false;
//General
ZtringListListF CSV;
ZtringListList Parameters;
Parameters.Write(MediaInfo::Option_Static(__T("Info_Parameters_CSV")));
int Pos_Start=1;
int Pos_End=Parameters.Find(__T("Video"))-1;
int CSV_Pos=0;
for (int I1=0; I1<Pos_End-Pos_Start; I1++)
if (MediaInfo_Complete || ToExport->Get(0, Stream_General, 0, I1, Info_Options)[InfoOption_ShowInInform]==__T('Y'))
{
CSV(0, CSV_Pos)=Ztring(__T("General "))+Parameters(Pos_Start+I1, 0);
for (int FilePos=0; FilePos<ToExport->Count_Get(); FilePos++)
CSV(1+FilePos, CSV_Pos)=ToExport->Get(FilePos, Stream_General, 0, I1);
CSV_Pos++;
}
//Video
Pos_Start=Pos_End+2;
Pos_End=Parameters.Find(__T("Audio"))-1;
for (int I1=0; I1<Pos_End-Pos_Start; I1++)
{
for (int Count=0; Count<CSV_Stream_Video->ItemIndex; Count++)
if (MediaInfo_Complete || ToExport->Get(0, Stream_Video, 0, I1, Info_Options)[InfoOption_ShowInInform]==__T('Y'))
{
CSV(0, CSV_Pos)=Ztring(__T("Video "))+Ztring::ToZtring(Count)+__T(" ")+Parameters(Pos_Start+I1, 0);
for (int FilePos=0; FilePos<ToExport->Count_Get(); FilePos++)
CSV(1+FilePos, CSV_Pos)=ToExport->Get(FilePos, Stream_Video, 0, I1);
CSV_Pos++;
}
}
//Audio
Pos_Start=Pos_End+2;
Pos_End=Parameters.Find(__T("Text"))-1;
for (int Count=0; Count<CSV_Stream_Audio->ItemIndex; Count++)
{
for (int I1=0; I1<Pos_End-Pos_Start; I1++)
if (MediaInfo_Complete || ToExport->Get(0, Stream_Audio, 0, I1, Info_Options)[InfoOption_ShowInInform]==__T('Y'))
{
CSV(0, CSV_Pos)=Ztring(__T("Audio "))+Ztring::ToZtring(Count)+__T(" ")+Parameters(Pos_Start+I1, 0);
for (int FilePos=0; FilePos<ToExport->Count_Get(); FilePos++)
CSV(1+FilePos, CSV_Pos)=ToExport->Get(FilePos, Stream_Audio, Count, I1);
CSV_Pos++;
}
}
//Text
Pos_Start=Pos_End+2;
Pos_End=Parameters.Find(__T("Chapters"))-1;
for (int Count=0; Count<CSV_Stream_Text->ItemIndex; Count++)
{
for (int I1=0; I1<Pos_End-Pos_Start; I1++)
if (MediaInfo_Complete || ToExport->Get(0, Stream_Text, 0, I1, Info_Options)[InfoOption_ShowInInform]==__T('Y'))
{
CSV(0, CSV_Pos)=Ztring(__T("Text "))+Ztring::ToZtring(Count)+__T(" ")+Parameters(Pos_Start+I1, 0);
for (int FilePos=0; FilePos<ToExport->Count_Get(); FilePos++)
CSV(1+FilePos, CSV_Pos)=ToExport->Get(FilePos, Stream_Text, Count, I1);
CSV_Pos++;
}
}
//Chapters
Pos_Start=Pos_End+2;
Pos_End=Parameters.size()-1;
for (int Count=0; Count<CSV_Stream_Other->ItemIndex; Count++)
{
for (int I1=0; I1<Pos_End-Pos_Start; I1++)
if (MediaInfo_Complete || ToExport->Get(0, Stream_Other, 0, I1, Info_Options)[InfoOption_ShowInInform]==__T('Y'))
{
CSV(0, CSV_Pos)=Ztring(__T("Chapters "))+Ztring::ToZtring(Count)+__T(" ")+Parameters(Pos_Start+I1, 0);
for (int FilePos=0; FilePos<ToExport->Count_Get(); FilePos++)
CSV(1+FilePos, CSV_Pos)=ToExport->Get(FilePos, Stream_Other, Count, I1);
CSV_Pos++;
}
}
//Separators
Ztring Separator_Col=ZEN_UNICODE(CSV_Separator_Col->Text);
if (Separator_Col==__T("(Tab)"))
Separator_Col=__T("\t");
Ztring Separator_Line=ZEN_UNICODE(CSV_Separator_Line->Text);
if (Separator_Line==__T("(Default)"))
#ifdef WIN32
//.........这里部分代码省略.........