这篇教程C++ wxStrcmp函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中wxStrcmp函数的典型用法代码示例。如果您正苦于以下问题:C++ wxStrcmp函数的具体用法?C++ wxStrcmp怎么用?C++ wxStrcmp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了wxStrcmp函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: whilebool Envelope::HandleXMLTag(const wxChar *tag, const wxChar **attrs){ // Return unless it's the envelope tag. if (wxStrcmp(tag, wxT("envelope"))) return false; int numPoints = 0; long nValue = -1; while (*attrs) { const wxChar *attr = *attrs++; const wxChar *value = *attrs++; if (!value) break; const wxString strValue = value; if( !wxStrcmp(attr, wxT("numpoints")) && XMLValueChecker::IsGoodInt(strValue) && strValue.ToLong(&nValue)) numPoints = nValue; } if (numPoints < 0) return false; WX_CLEAR_ARRAY(mEnv); mEnv.Alloc(numPoints); return true;}
开发者ID:dannyflax,项目名称:audacity,代码行数:26,
示例2: whilebool WaveClip::HandleXMLTag(const wxChar *tag, const wxChar **attrs){ if (!wxStrcmp(tag, wxT("waveclip"))) { double dblValue; while (*attrs) { const wxChar *attr = *attrs++; const wxChar *value = *attrs++; if (!value) break; const wxString strValue = value; if (!wxStrcmp(attr, wxT("offset"))) { if (!XMLValueChecker::IsGoodString(strValue) || !Internat::CompatibleToDouble(strValue, &dblValue)) return false; SetOffset(dblValue); } } return true; } return false;}
开发者ID:tuanmasterit,项目名称:audacity,代码行数:27,
示例3: whilebool CommandManager::HandleXMLTag(const wxChar *tag, const wxChar **attrs){ if (!wxStrcmp(tag, wxT("audacitykeyboard"))) { mXMLKeysRead = 0; } if (!wxStrcmp(tag, wxT("command"))) { wxString name; wxString key; while(*attrs) { const wxChar *attr = *attrs++; const wxChar *value = *attrs++; if (!value) break; if (!wxStrcmp(attr, wxT("name")) && XMLValueChecker::IsGoodString(value)) name = value; if (!wxStrcmp(attr, wxT("key")) && XMLValueChecker::IsGoodString(value)) key = KeyStringNormalize(value); } if (mCommandNameHash[name]) { if (GetDefaultKeyFromName(name) != key) { mCommandNameHash[name]->key = KeyStringNormalize(key); mXMLKeysRead++; } } } return true;}
开发者ID:tuanmasterit,项目名称:audacity,代码行数:33,
示例4: VisitEnter /// Visit an element. virtual bool VisitEnter( const TiXmlElement& element, const TiXmlAttribute* firstAttribute ) { if (element.Value()!=0x0 && !wxStrcmp(element.Value(), "tr")) { if (!wxStrcmp(element.Attribute("bgcolor"), "#FFFFFF")) { // first num const TiXmlElement *pChild = element.FirstChildElement(); if (pChild) { // child pChild = pChild->NextSiblingElement(); wxString host = wxString(pChild->GetText(), wxConvUTF8); // port pChild = pChild->NextSiblingElement(); wxString port = wxString(pChild->GetText(), wxConvUTF8); if (port.Len()>0 && wxAtoi(port)!=0) { m_pProxyData = new CProxyData(host, port); m_pArray->Add(m_pProxyData); } } } } return true; }
开发者ID:caicry,项目名称:wxUrlRefresh,代码行数:29,
示例5: SortFunction// Sorting function of the flat profile columnsint wxCALLBACK SortFunction(wxIntPtr item1, wxIntPtr item2, wxIntPtr sortData){ CBProfilerExecDlg *dialog = (CBProfilerExecDlg*) sortData; wxListCtrl *listCtrl = dialog->GetoutputFlatProfileArea(); int col = dialog->GetsortColumn(); long itemId1 = listCtrl->FindItem(-1, item1); long itemId2 = listCtrl->FindItem(-1, item2); wxListItem listItem1, listItem2; listItem1.SetId(itemId1); listItem1.SetColumn(col); listItem1.SetMask(wxLIST_MASK_TEXT); listCtrl->GetItem(listItem1); listItem2.SetId(itemId2); listItem2.SetColumn(col); listItem2.SetMask(wxLIST_MASK_TEXT); listCtrl->GetItem(listItem2); // All the columns are composed with numbers except the last one if (col == 6) { if (dialog->GetsortAscending()) return wxStrcmp(listItem1.GetText(), listItem2.GetText()); else return wxStrcmp(listItem2.GetText(), listItem1.GetText()); } else { double num1, num2; double success = listItem1.GetText().ToDouble(&num1); if (!success) { if (dialog->GetsortAscending()) return -1; else return 1; } success = listItem2.GetText().ToDouble(&num2); if (!success) { if (dialog->GetsortAscending()) return 1; else return -1; } if (dialog->GetsortAscending()) { if (num1 < num2) return -1; else if (num1 > num2) return 1; else return 0; } else { if (num1 > num2) return -1; else if (num1 < num2) return 1; else return 0; } }}
开发者ID:Three-DS,项目名称:codeblocks-13.12,代码行数:59,
示例6: wxTbool OyunApp::OnInit(){ // Play like a nice Linux application for (int i = 1 ; i < argc ; i++) { if (!wxStrcmp(argv[i], wxT("--version"))) { const wchar_t *version = wxT(STRINGIZE( OYUN_VERSION )); const wxString verstring = _("Oyun %ls/n" "Copyright (C) 2004-2011 Charles Pence/n" "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>/n" "This is free software: you are free to change and redistribute it./n" "There is NO WARRANTY, to the extent permitted by law./n"); wxPrintf(verstring, version); return false; } else if (!wxStrcmp(argv[i], wxT("--help"))) { const wxString helpstring = _("Usage: oyun [OPTION].../n" "Run an evolutionary game theory tournament./n" "/n" " --test run the Oyun testing suite/n" " --help display this help and exit/n" " --version output version information and exit/n" "/n" "Report bugs to: <[email C++ wxString函数代码示例 C++ wxSscanf函数代码示例
|