100+ results results for 'gets' (891 ms)
128{ 129 if( ! ::IsWindow( GetSafeHwnd() ) ) 130 { 137{ 138 if( ::IsWindow( GetSafeHwnd() ) ) 139 OnCancel(); 143{ 144 if( ::IsWindow( GetSafeHwnd() ) ) 145 { 309 { 310 if( pScrollBar->GetSafeHwnd() == m_gearSliderArray[i].GetSafeHwnd() ) 311 {GameRulesStandardScoring.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 391 lines
165 { 166 CryWarning(VALIDATOR_MODULE_GAME, VALIDATOR_COMMENT, "Scoring not setup for %s in gamemode %s", s_gamerulesScoreType[pointsType], gEnv->pConsole->GetCVar("sv_gamerules")->GetString()); 167 } 184 // No scoring at game end 185 IGameRulesStateModule *pStateModule = pGameRules->GetStateModule(); 186 if (pStateModule != NULL && pStateModule->GetGameState() == IGameRulesStateModule::EGRS_PostGame) 251 // No scoring at game end 252 IGameRulesStateModule *pStateModule = pGameRules->GetStateModule(); 253 if (pStateModule != NULL && pStateModule->GetGameState() == IGameRulesStateModule::EGRS_PostGame) 353 354 CStatsRecordingMgr* pRecordingMgr = g_pGame->GetStatsRecorder(); 355 if (pRecordingMgr)boss_forgemaster_garfrost.cpp https://github.com/chicos/TrinityCore.git | C++ | 337 lines
91 { 92 if (!instance || static_cast<InstanceMap*>(me->GetMap())->GetScriptId() != sObjectMgr->GetScriptId(PoSScriptName)) 93 me->IsAIEnabled = false; 172 if (Aura* aura = target->GetAura(SPELL_PERMAFROST_HELPER)) 173 _permafrostStack = std::max<uint32>(_permafrostStack, aura->GetStackAmount()); 174 } 277 prevented = true; 278 target->ApplySpellImmune(GetSpellInfo()->Id, IMMUNITY_ID, GetSpellInfo()->Id, true); 279 PreventHitDefaultEffect(EFFECT_0); 294 { 295 target->ApplySpellImmune(GetSpellInfo()->Id, IMMUNITY_ID, GetSpellInfo()->Id, false); 296 if (prevented) 309 310 SpellScript* GetSpellScript() const 311 {tray_accessibility.cc https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | C++ | 355 lines
67 : TrayItemMore(owner, true) { 68 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance(); 69 SetImage(bundle.GetImageNamed(IDR_AURA_UBER_TRAY_ACCESSIBILITY_DARK). 93 views::Label* label = new views::Label( 94 l10n_util::GetStringUTF16( 95 IDS_ASH_STATUS_TRAY_SPOKEN_FEEDBACK_ENABLED_BUBBLE)); 132 CreateScrollableList(); 133 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance(); 134 182 183 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance(); 184SkFontHost_fontconfig.cpp https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C++ | 354 lines
137 // for something so we need a way to tell if the match which it has found is 138 // "good enough" for us. Otherwise, we can return NULL which gets piped up 139 // and lets WebKit know to try the next CSS family name. However, fontconfig 161 FcChar8* post_config_family; 162 FcPatternGetString(pattern, FC_FAMILY, 0, &post_config_family); 163 171 FcChar8* post_match_family; 172 FcPatternGetString(match, FC_FAMILY, 0, &post_match_family); 173 const bool family_names_match = 240 FcChar8* family; 241 if (FcPatternGetString(face_match, FC_FAMILY, 0, &family)) { 242 FcPatternDestroy(face_match); 272 FcChar8* filename; 273 if (FcPatternGetString(match, FC_FILE, 0, &filename) != FcResultMatch) { 274 FcPatternDestroy(match);boss_forgemaster_garfrost.cpp https://github.com/Antology/Dragon.git | C++ | 337 lines
91 { 92 if (!instance || static_cast<InstanceMap*>(me->GetMap())->GetScriptId() != sObjectMgr->GetScriptId(PoSScriptName)) 93 me->IsAIEnabled = false; 172 if (Aura *aura = target->GetAura(SPELL_PERMAFROST_HELPER)) 173 _permafrostStack = std::max<uint32>(_permafrostStack, aura->GetStackAmount()); 174 } 277 prevented = true; 278 target->ApplySpellImmune(GetSpellInfo()->Id, IMMUNITY_ID, GetSpellInfo()->Id, true); 279 PreventHitDefaultEffect(EFFECT_0); 294 { 295 target->ApplySpellImmune(GetSpellInfo()->Id, IMMUNITY_ID, GetSpellInfo()->Id, false); 296 if (prevented) 309 310 SpellScript* GetSpellScript() const 311 {socket.cpp https://bitbucket.org/ewfiseli/elib.git | C++ | 365 lines
344 ::socklen_t len = sizeof(::sockaddr_in); 345 int ret = ::getsockname( 346 s.raw_socket()ProcessCpuTracker.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 355 lines
185 // This code is trying to avoid issues with idle time going backwards, 186 // but currently it gets into situations where it triggers most of the time. :( 187 if (false || (usertime >= cpuTimeInfo.mBaseUserTime && systemtime >= cpuTimeInfo.mBaseSystemTimeitkImageRegistrationMethodTest_15.cxx https://github.com/paniwani/ITK.git | C++ | 408 lines
187 { 188 center[j] = 0.5 * (double)region.GetSize()[j]; 189 }NBNetBuilder.cpp https://bitbucket.org/sieben/ensiie.git | C++ | 311 lines
66 if (oc.isSet("keep-edges.input-file")) { 67 std::ifstream strm(oc.getString("keep-edges.input-file").c_str()); 68 if (!strm.good()) { 68 if (!strm.good()) { 69 throw ProcessError("Could not load names of edges too keep from '" + oc.getString("keep-edges.input-file") + "'."); 70 } 99 if (oc.exists("junctions.join-exclude") && oc.isSet("junctions.join-exclude")) { 100 myNodeCont.addJoinExclusion(oc.getStringVector("junctions.join-exclude")); 101 } 192 if (oc.isSet("tls.set")) { 193 std::vector<std::string> tlControlledNodes = oc.getStringVector("tls.set"); 194 for (std::vector<std::string>::const_iterator i=tlControlledNodes.begin(); i!=tlControlledNodes.end(); ++i) {NatTypeDetectionServer.cpp https://gitlab.com/computerphilly/openblox | C++ | 438 lines
47 DataStructures::List<RakNetSocket2* > sockets; 48 rakPeerInterface->GetSockets(sockets); 49 char str[64];ScriptedFollowerAI.cpp https://github.com/skypeak/VoragineCore.git | C++ | 407 lines
149 { 150 if (Player* pMember = pRef->getSource()) 151 { 234 { 235 Player* pMember = pRef->getSource(); 236 341 { 342 Player* pMember = pRef->getSource(); 343scl_memmgr.cc https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C++ | 410 lines
63 void * getaddr( void ) const; 64 size_t getsize( void ) const; 65 std::string getsrcfile( void ) const; 65 std::string getsrcfile( void ) const; 66 unsigned int getsrcline( void ) const; 67}; 187 irecord ++ ) { 188 scl_memmgr_error error( irecord->getsrcfile(), irecord->getsrcline() ); 189 ierror = errors.find( error ); 203 // todo: generate error for memory leak 204 printf( "scl_memmgr warning: Possible memory leak in %s line %d\n", ierror->getsrcfile().c_str(), ierror->getsrcline() ); 205 } 259 // Update stats 260 _allocated -= record->getsize(); 261 _deallocated_total += record->getsize();vtkImageDataGeometryFilter.cxx https://github.com/b3c/VTK-5.8.git | C++ | 483 lines
76 outCD = output->GetCellData(); 77 pointScalars=pd->GetScalars(); 78// this->PointData.CopyNormalsOff();HexagonPeephole.cpp https://gitlab.com/Birhetia/platform_external_llvm | C++ | 338 lines
114bool HexagonPeephole::runOnMachineFunction(MachineFunction &MF) { 115 QII = static_cast<const HexagonInstrInfo *>(MF.getSubtarget().getInstrInfo()); 116 QRI = MF.getSubtarget<HexagonSubtarget>().getRegisterInfo(); 211 // Make sure we are copying the lower 32 bits. 212 if (Src.getSubReg() != Hexagon::subreg_loreg) 213 continue;GeometryShaderGen.cpp https://gitlab.com/Hexexpeck/dolphin-emulator | C++ | 337 lines
48 ShaderCode out; 49 // Non-uid template parameters will write to the dummy data (=> gets optimized out) 50CMarker.cpp https://github.com/popovag/multitheftauto.git | C++ | 379 lines
156 BitStream.pBitStream->Write ( vecPosition.fZ ); 157 BitStream.pBitStream->Write ( GetSyncTimeContext () ); 158 BroadcastOnlyVisible ( CLuaPacket ( SET_ELEMENT_POSITION, *BitStream.pBitStream ) );frame.cpp https://bitbucket.org/erwincoumans/dynamicaopencl.git | C++ | 412 lines
23#if wxUSE_LIBHILDON 24 #include <hildon-widgets/hildon-window.h> 25#endif // wxUSE_LIBHILDON 125 wxMenuItem* item = (wxMenuItem*) menu->GetMenuItems().Item(i)->GetData(); 126 if (item->GetSubMenu()) 127 { 127 { 128 wxAddAccelerators(accelEntries, item->GetSubMenu()); 129 }android_media_MediaScanner.cpp https://github.com/doixanh/android_frameworks_base.git | C++ | 347 lines
165 166 const char *pathStr = env->GetStringUTFChars(path, NULL); 167 if (pathStr == NULL) { // Out of memory 170 } 171 const char *extensionsStr = env->GetStringUTFChars(extensions, NULL); 172 if (extensionsStr == NULL) { // Out of memory 193 194 const char *pathStr = env->GetStringUTFChars(path, NULL); 195 if (pathStr == NULL) { // Out of memory 198 } 199 const char *mimeTypeStr = (mimeType ? env->GetStringUTFChars(mimeType, NULL) : NULL); 200 if (mimeType && mimeTypeStr == NULL) { // Out of memory 222 } 223 const char *localeStr = env->GetStringUTFChars(locale, NULL); 224 if (localeStr == NULL) { // Out of memoryqgl_qpa.cpp https://bitbucket.org/kasimling/qt.git | C++ | 412 lines
208 d->workaroundsCached = true; 209 const char *renderer = reinterpret_cast<const char *>(glGetString(GL_RENDERER)); 210 if (renderer && strstr(renderer, "Mali")) { 326 Free up any allocated colormaps. This fn is only called for 327 top-level widgets. 328*/itkCenteredTransformInitializerTest.cxx https://github.com/chrismullins/ITK.git | C++ | 392 lines
50 const typename FixedImageType::RegionType & fixedRegion = fixedImage->GetLargestPossibleRegion(); 51 const typename FixedImageType::SizeType & fixedSize = fixedRegion.GetSize(); 52 const typename FixedImageType::IndexType & fixedIndex = fixedRegion.GetIndex(); 62 const typename MovingImageType::RegionType & movingRegion = movingImage->GetLargestPossibleRegion(); 63 const typename MovingImageType::SizeType & movingSize = movingRegion.GetSize(); 64 const typename MovingImageType::IndexType & movingIndex = movingRegion.GetIndex(); 189 const RegionType & region = image->GetLargestPossibleRegion(); 190 const SizeType & size = region.GetSize(); 191 const IndexType & index = region.GetIndex();RegisterScavenging.cpp https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | C++ | 396 lines
39 40 for (const unsigned *SubRegs = TRI->getSubRegisters(Reg); 41 unsigned SubReg = *SubRegs; ++SubRegs) 112 BV.set(Reg); 113 for (const unsigned *R = TRI->getSubRegisters(Reg); *R; R++) 114 BV.set(*R); 201 bool SubUsed = false; 202 for (const unsigned *SubRegs = TRI->getSubRegisters(Reg); 203 unsigned SubReg = *SubRegs; ++SubRegs)Http.cpp https://bitbucket.org/delroth/dolphin-llvm-dsp.git | C++ | 432 lines
198//////////////////////////////////////////////////////////// 199Http::Response::Status Http::Response::GetStatus() const 200{DBInit.cpp https://gitlab.com/vectorci/rippled | C++ | 329 lines
177 // Table of PublicKeys user has asked to trust. 178 // Fetches are made to the CAS. This gets the ripple.txt so even validators 179 // without a web server can publish a ripple.txt.tab.cpp https://gitlab.com/akkoteru/manaplus | C++ | 480 lines
65 66#include "gui/widgets/tabs/tab.h" 67 72 73#include "gui/widgets/label.h" 74#include "gui/widgets/tabbedarea.h"image.cpp https://gitlab.com/akkoteru/manaplus | C++ | 500 lines
409 410Image* Image::SDLgetScaledImage(const int width, const int height) const 411{ 439 440Image *Image::getSubImage(const int x, const int y, 441 const int width, const int height) 487 sz += CAST_S32(mAlphaCache.size()) * 488 memoryManager.getSurfaceSize(mSDLSurface); 489 }instmgr.cc https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C++ | 413 lines
347SDAI_Application_instance * 348InstMgr::GetSTEPentity( int index ) { 349 MgrNode * mn = ( MgrNode * )( *master )[index]; 386SDAI_Application_instance * 387InstMgr::GetSTEPentity( const char * entityKeyword, int starting_index ) { 388 MgrNode * node; 405void * 406InstMgr::GetSEE( int index ) { 407 MgrNode * mn = ( MgrNode * )( *master )[index];mainwindow.cpp https://bitbucket.org/lukho/libqxt.git | C++ | 445 lines
140 QxtMailAttachment att = msg->attachment(words[1]); 141 QString filename = QFileDialog::getSaveFileName(this, "Save attachment", QString("./") + words[1]); 142 if (!filename.isEmpty())textentrycmn.cpp https://gitlab.com/Hexexpeck/dolphin-emulator | C++ | 472 lines
141 // 142 // Notice that we can't use GetValue() nor wxCommandEvent::GetString() 143 // which uses it internally because this would just forward back to us 257 long from, to; 258 GetSelection(&from, &to); 259 265 long from, to; 266 GetSelection(& from, & to); 267 if (from != -1 && to != -1) 270 271wxString wxTextEntryBase::GetStringSelection() const 272{ 273 long from, to; 274 GetSelection(&from, &to); 275instance_hyjal.cpp https://bitbucket.org/nfeldkamp/lfgfixing.git | C++ | 328 lines
207 { 208 if (i->getSource()) 209 { 211 unit->BuildMonsterChat(&data, CHAT_MSG_MONSTER_YELL, YELL_EFFORTS, 0, YELL_EFFORTS_NAME, i->getSource()->GetGUID()); 212 i->getSource()->GetSession()->SendPacket(&data); 213 215 data2 << 10986; 216 i->getSource()->GetSession()->SendPacket(&data2); 217 } 300 301 std::string GetSaveData() 302 {Console.cpp https://github.com/chrishaukap/GameDev.git | C++ | 509 lines
149 150bool Console::GetSpecialInputDown( int key ) 151{itkMemoryUsageObserver.cxx https://github.com/luisibanez/ITK.git | C++ | 437 lines
281 m_ParseSmaps.ReadFile(); 282 return m_ParseSmaps.GetHeapUsage() + m_ParseSmaps.GetStackUsage(); 283} 298 m_ParseVMMmap.ReadFile(); 299 return m_ParseVMMmap.GetHeapUsage() + m_ParseVMMmap.GetStackUsage(); 300} 357 } 358 if ( fgets(remaining, 256, fp) != NULL ) 359 {TargetAttributesSema.cpp https://gitlab.com/wustl-pctg-pub/clang-cilk | C++ | 353 lines
88 << Attr.getName() << AANT_ArgumentIntegerConstant 89 << NumParamsExpr->getSourceRange(); 90 return; 95 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds) 96 << "interrupt" << (int)NumParams.getSExtValue() 97 << NumParamsExpr->getSourceRange();ofxUDPManager.cpp https://github.com/brolin/openFrameworks.git | C++ | 500 lines
346 347 int ret = getsockopt(m_hSocket, SOL_SOCKET, SO_MAX_MSG_SIZE, (char*)&sizeBuffer, &size); 348 if(ret==-1) ofxNetworkCheckError(); 364 365 int ret = getsockopt(m_hSocket, SOL_SOCKET, SO_RCVBUF, (char*)&sizeBuffer, &size); 366 if(ret==-1) ofxNetworkCheckError(); 383//-------------------------------------------------------------------------------- 384int ofxUDPManager::GetSendBufferSize() 385{ 395 396 int ret = getsockopt(m_hSocket, SOL_SOCKET, SO_SNDBUF, (char*)&sizeBuffer, &size); 397 if(ret==-1) ofxNetworkCheckError(); 459 460 if (getsockopt(m_hSocket, IPPROTO_IP, IP_MULTICAST_TTL, (char FAR *) &nTTL, &nSize) == SOCKET_ERROR) 461 {TextBreakIteratorGtk.cpp https://bitbucket.org/zenoalbisser/webkit.git | C++ | 388 lines
41 int getLength() { return m_length; } 42 glong getSize() { return m_size; } 43 void setIndex(int index); 215 iterator->m_logAttrs = g_new0(PangoLogAttr, charLength + 1); 216 pango_get_log_attrs(iterator->m_charIterator.getText(), iterator->m_charIterator.getSize(), 217 -1, 0, iterator->m_logAttrs, charLength + 1);juce_ScrollBar.cpp https://bitbucket.org/tallen92/physical-modelling-synth.git | C++ | 416 lines
177{ 178 double start = visibleRange.getStart(); // (need to use a temp variable for VC7 compatibility) 179 listeners.call (&ScrollBar::Listener::scrollBarMoved, this, start); 198 if (totalRange.getLength() > visibleRange.getLength()) 199 newThumbStart += roundToInt (((visibleRange.getStart() - totalRange.getStart()) * (thumbAreaSize - newThumbSize)) 200 / (totalRange.getLength() - visibleRange.getLength())); 266{ 267 setComponentEffect (getLookAndFeel().getScrollbarEffect()); 268 290 291 buttonSize = jmin (lf.getScrollbarButtonSize (*this), length / 2); 292 } 331 dragStartMousePos = lastMousePos; 332 dragStartRange = visibleRange.getStart(); 333gl2.cpp https://gitlab.com/amardeep434/du_frameworks_native | C++ | 291 lines
207/* 208 * glGetString() and glGetStringi() are special because we expose some 209 * extensions in the wrapper. Also, wrapping glGetXXX() is required because 214extern "C" { 215 const GLubyte * __glGetString(GLenum name); 216 const GLubyte * __glGetStringi(GLenum name, GLuint index); 222 223const GLubyte * glGetString(GLenum name) { 224 const GLubyte * ret = egl_get_string_for_current_context(name); 226 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl; 227 if(_c) ret = _c->glGetString(name); 228 } 231 232const GLubyte * glGetStringi(GLenum name, GLuint index) { 233 const GLubyte * ret = egl_get_string_for_current_context(name, index);FAT_FileHandle.cpp https://bitbucket.org/pmfsampaio/netmf-lpc.git | C++ | 454 lines
90 { 91 sector = m_logicDisk->SectorCache.GetSector( m_sectIndex, (type == Helper_Write) ? TRUE : FALSE ); 92mfx_dispatcher_log.cpp https://gitlab.com/Ornim/obs-old | C++ | 449 lines
345 346IMsgHandler *ETWHandlerFactory::GetSink(const wchar_t* sguid) 347{ 385 this, 386 pSink = ETWHandlerFactory::get().GetSink(m_sguid)); 387 //need to call only once here all next calls will be done inside dispatcherlog 408 DispatchLog::get().AttachSink( DL_SINK_IMsgHandler 409 , ETWHandlerFactory::get().GetSink(sguid)); 410 }HeightMapModel.cpp https://github.com/abcfantasy/ANDgine.git | C++ | 316 lines
274 275// Gets the interpolated height at the coordinates given 276float HeightMapModel::getHeight( float x, float z ) {unitanimations.cpp https://bitbucket.org/comrad/freecnc.git | C++ | 492 lines
135 if( un->type->isInfantry() ) { 136 un->infgrp->GetSubposOffsets(oldsubpos, un->subpos, &uxoff, &uyoff); 137 un->xoffset += uxoff; 215 } else { 216 un->walkanim.reset(new WalkAnimEvent(((UnitType *)un->getType())->getSpeed(), un, face, 0)); 217 p::aequeue->scheduleEvent(un->walkanim); 485 486 un->type->getWeapon()->fire(un, target->getBPos(un->getPos()), target->getSubpos()); 487 // set delay to reloadtimecs_instance.cpp https://gitlab.com/Eternal-WoW/TrinityCore-1 | C++ | 329 lines
74 { 75 Player* player = handler->getSelectedPlayer(); 76 if (!player) 76 if (!player) 77 player = handler->GetSession()->GetPlayer(); 78 117 118 Player* player = handler->getSelectedPlayer(); 119 if (!player) 119 if (!player) 120 player = handler->GetSession()->GetPlayer(); 121 171 { 172 Player* player = handler->GetSession()->GetPlayer(); 173 Map* map = player->GetMap();var_tree.cpp https://gitlab.com/evilbinary/vlc | C++ | 472 lines
123 { 124 Iterator it = ++(getSelf()); 125 if( it != p_parent->m_children.end() ) 137 { 138 Iterator it = getSelf(); 139 if( it != p_parent->m_children.begin() ) 156 { 157 Iterator it = ++(p_parent->getSelf()); 158 if( it != p_grandparent->m_children.end() ) 176 { 177 Iterator it = p_parent->getSelf(); 178 if( it != p_grandparent->m_children.begin() ) 281 /* Yes, get its parent's it */ 282 it = p_parent->getSelf(); 283 }KX_TrackToActuator.cpp https://bitbucket.org/brita/blender-gl_debug.git | C++ | 491 lines
78 // this is needed to revert the effect of the parent inverse node (TBC) 79 m_parentlocalmat = m_parentobj->GetSGNode()->GetLocalOrientation(); 80 // use registration mechanism rather than AddRef, it creates zombie objects 394 MT_Point3 localpos; 395 localpos = curobj->GetSGNode()->GetLocalPosition(); 396 // Get the inverse of the parent matrixGUIPythonWindowXML.cpp https://github.com/xbmc/xbmc-rbp.git | C++ | 457 lines
152 { 153 int iControl=message.GetSenderId(); 154 // Handle Sort/View internally. Scripters shouldn't use ID 2, 3 or 4. 254{ 255 return m_viewControl.GetSelectedItem(); 256} 447 // allocate a bunch of strings 448 return g_localizeStrings.LoadBlock(m_scriptPath, pathToLanguageFile, g_guiSettings.GetString("locale.language")); 449}SOCK_Connector.cpp https://gitlab.com/mohsencs/SunWellCore | C++ | 350 lines
124 // error state. The error code is then retrieved with 125 // getsockopt(). Good sockets however will return from 126 // the select() with ETIME - in this case returnAutofillPopupMenuClient.cpp https://gitlab.com/f3822/qtwebengine-chromium | C++ | 348 lines
62 63unsigned AutofillPopupMenuClient::getSuggestionsCount() const 64{ 67 68WebString AutofillPopupMenuClient::getSuggestion(unsigned listIndex) const 69{ 151{ 152 return getSuggestion(listIndex); 153} 221{ 222 m_textField->setValue(getSuggestion(listIndex)); 223} 325 // Try to preserve selection if possible. 326 if (getSelectedIndex() >= static_cast<int>(names.size())) 327 setSelectedIndex(-1);arthurwidgets.cpp https://gitlab.com/f3822/qtbase | C++ | 377 lines
50 51#include "arthurwidgets.h" 52#include <QApplication>MultiPoly.cpp https://github.com/fodrek/heekscad.git | C++ | 407 lines
79 80 //This gets the hashtable working 81 bcurves.sort();AssetClass.cpp https://github.com/goofoo/Helium.git | C++ | 330 lines
71 72tstring AssetClass::GetShortName() const 73{ 124 { 125 if ( (int)arraySerializer->GetSize() < 1 ) 126 { 129 130 for ( size_t index = 0; index < arraySerializer->GetSize(); ++index ) 131 { 147 { 148 if ( (int)mapSerializer->GetSize() < 1 ) 149 { 175 { 176 if ( (int)setSerializer->GetSize() < 1 ) 177 {llfloaterexportregion.cpp https://github.com/electronbeam/Momentum.git | C++ | 429 lines
63 bool is_root = true; 64 LLViewerObject* parentp = objectp->getSubParent(); 65 if(parentp) 151 gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID()); 152 gMessageSystem->addUUID(_PREHASH_SessionID, gAgent.getSessionID()); 153 gMessageSystem->nextBlockFast(_PREHASH_ObjectData); 165 gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID()); 166 gMessageSystem->addUUID(_PREHASH_SessionID, gAgent.getSessionID()); 167 } 175 gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID()); 176 gMessageSystem->addUUID(_PREHASH_SessionID, gAgent.getSessionID()); 177 gMessageSystem->nextBlockFast(_PREHASH_ObjectData); 346 LLFilePicker& file_picker = LLFilePicker::instance(); 347 if(file_picker.getSaveFile( LLFilePicker::FFSAVE_XML, LLDir::getScrubbedFileName(default_filename + ".xml"))) 348 {pet_hunter.cpp https://gitlab.com/Xiledria/eluna | C++ | 359 lines
90 if (!me->GetVictim() && me->IsSummon()) 91 if (Unit* Owner = me->ToTempSummon()->GetSummoner()) 92 if (Owner->getAttackerForHelper()) 170 { 171 if (!sSpellMgr->GetSpellInfo(SPELL_PET_SWOOP) || 172 !sSpellMgr->GetSpellInfo(SPELL_PET_CHARGE)) 217 { 218 if (!sSpellMgr->GetSpellInfo(SPELL_PET_GUARD_DOG_HAPPINESS)) 219 return false; 226 // filter by spellIcon instead 227 SpellInfo const* spellInfo = eventInfo.GetSpellInfo(); 228 if (!spellInfo || spellInfo->SpellIconID != PET_ICON_ID_GROWL) 240 241 float addThreat = CalculatePct(static_cast<float>(eventInfo.GetSpellInfo()->Effects[EFFECT_0].CalcValue(caster)), aurEff->GetAmount()); 242 eventInfo.GetProcTarget()->AddThreat(caster, addThreat);dir_access_unix.cpp https://gitlab.com/godotengine/godot | C++ | 514 lines
256 char string[1024]; 257 while (fgets(string, 1024, fd)) { 258 // Parse only file:// linksvdraw.cxx https://github.com/jonasfj/libreoffice-writer.git | C++ | 378 lines
87 //if ( bXorVis ) 88 // pImp->GetDrawView()->ShowShownXor( pImp->GetShell()->GetOut() ); 89//} 105 { 106 SET_CURR_SHELL( GetShell() ); 107 if ( pSh->ISA(SwFEShell) ) 108 ((SwFEShell*)pSh)->HideChainMarker(); //Kann sich geaendert haben 109 //bResetXorVisibility = GetDrawView()->IsShownXorVisible( GetShell()->GetOut()); 110 //GetDrawView()->HideShownXor( GetShell()->GetOut() ); 119 { 120 SET_CURR_SHELL( GetShell() ); 121 //if ( bResetXorVisibility ) 192 if( GetShell()->GetWin() && 193 Application::GetSettings().GetStyleSettings().GetHighContrastMode() && 194 (!GetShell()->IsPreView()||SW_MOD()->GetAccessibilityOptions().GetIsForPagePreviews()))GUIWindowPVRRecordings.cpp https://gitlab.com/freesoftware/xbmc | C++ | 409 lines
104 { 105 const std::shared_ptr<CFileItem> pItem = m_vecItems->Get(m_viewControl.GetSelectedItem()); 106 if (!pItem || pItem->IsParentFolder()) 208 case GUI_MSG_CLICKED: 209 if (message.GetSenderId() == m_viewControl.GetCurrentControl()) 210 { 210 { 211 int iItem = m_viewControl.GetSelectedItem(); 212 if (iItem >= 0 && iItem < m_vecItems->Size()) 289 { 290 const std::shared_ptr<CSettings> settings = CServiceBroker::GetSettingsComponent()->GetSettings(); 291 settings->ToggleBool(CSettings::SETTING_PVRRECORD_GROUPRECORDINGS); 307 CMediaSettings::GetInstance().CycleWatchedMode("recordings"); 308 CServiceBroker::GetSettingsComponent()->GetSettings()->Save(); 309 OnFilterItems(GetProperty("filter").asString());vtkBoxWidget2.cxx https://github.com/aashish24/VTK-old.git | C++ | 332 lines
33{ 34 this->WidgetState = vtkBoxWidget2::Start; 35 this->ManagesCursor = 1; 108 { 109 self->WidgetState = vtkBoxWidget2::Start; 110 return; 153 // We are definitely selected 154 self->WidgetState = vtkBoxWidget2::Active; 155 self->GrabFocus(self->EventCallbackCommand); 186 { 187 self->WidgetState = vtkBoxWidget2::Start; 188 return; 203 // We are definitely selected 204 self->WidgetState = vtkBoxWidget2::Active; 205 self->GrabFocus(self->EventCallbackCommand);sensor.cc https://github.com/chromium/chromium.git | C++ | 371 lines
63 const double max_allowed_frequency = 64 device::GetSensorMaxAllowedFrequency(type_); 65 if (frequency_ > max_allowed_frequency) { 177 auto* provider = SensorProviderProxy::From(window); 178 sensor_proxy_ = provider->GetSensorProxy(type_); 179ChatHandler.cpp https://github.com/freghar/mangos-svn-backup.git | C++ | 381 lines
166 // send whispers from player to GM only if GM accept its (not show online state GM in other case) 167 if(!player || GetSecurity() == 0 && player->GetSession()->GetSecurity() > 0 && !player->isAcceptWhispers()) 168 { 173 } 174 if (!sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION) && GetSecurity() == 0 && player->GetSession()->GetSecurity() == 0 ) 175 { 187 sChatHandler.FillMessageData(&data, this, type, lang, NULL, 0, msg.c_str() ); 188 player->GetSession()->SendPacket(&data); 189 375 Player *player = objmgr.GetPlayer(iguid); 376 if(!player || !player->GetSession()) 377 return; 379 sChatHandler.FillMessageData(&data, this, CHAT_MSG_IGNORED, LANG_UNIVERSAL, NULL, GetPlayer()->GetGUID(), GetPlayer()->GetName()); 380 player->GetSession()->SendPacket(&data); 381}AddonInstanceHandler.cpp https://gitlab.com/h.udo/xbmc | C++ | 374 lines
125 126std::shared_ptr<CSetting> IAddonInstanceHandler::GetSetting(const std::string& setting) 127{ 134 135 auto value = m_addon->GetSettings()->GetSetting(setting); 136 if (value == nullptr) 164 165 auto setting = instance->GetSetting(id); 166 if (setting == nullptr) 179 180 auto setting = instance->GetSetting(id); 181 if (setting == nullptr) 202 203 auto setting = instance->GetSetting(id); 204 if (setting == nullptr)ctrl_text.cpp https://github.com/mstorsjo/vlc.git | C++ | 402 lines
282 // automatically start or stop the timer accordingly 283 const std::string &rState = m_fsm.getState(); 284 if( rState == "moving" || rState == "outMoving" )native_stack_sampler_win.cc https://gitlab.com/jonnialva90/iridium-browser | C++ | 332 lines
74 75// Gets the unique build ID for a module. Windows build IDs are created by a 76// concatenation of a GUID and AGE fields found in the headers of a module. The 195 196 // Gets the index for the Module corresponding to |module_handle| in 197 // |modules|, adding it if it's not already present. ReturnsGlyphPageTreeNodeTest.cpp https://gitlab.com/jonnialva90/iridium-browser | C++ | 253 lines
212 GlyphPageTreeNode* node2 = node1->getNormalChild(dataBtoD.get(), kPageNumber); 213 SystemFallbackGlyphPageTreeNode* node3 = node2->getSystemFallbackChild(kPageNumber); 214 234 GlyphPageTreeNode* node1 = GlyphPageTreeNode::getNormalRootChild(defaultData.get(), kPageNumber); 235 SystemFallbackGlyphPageTreeNode* node2 = node1->getSystemFallbackChild(kPageNumber); 236Graphics.cpp https://gitlab.com/Teo-Mirror/AtomicGameEngine | C++ | 453 lines
372 { 373 SDL_Surface* surface = windowIcon_->GetSDLSurface(); 374 if (surface) 422{ 423 return SDL_GetWindowDisplayIndex((SDL_Window*) this->GetSDLWindow()); 424}boss_netherspite.cpp https://github.com/xiaofeng2009/TC2.git | C++ | 343 lines
73 { 74 if(SpellEntry *spell = (SpellEntry*)GetSpellStore()->LookupEntry(PlayerBuff[i])) 75 spell->AttributesEx |= SPELL_ATTR_EX_NEGATIVE; 90 uint64 BeamerGUID[3]; // guid's of auxiliary beaming portals 91 uint64 BeamTarget[3]; // guid's of portals' current targets 92 174 { 175 Player* p = i->getSource(); 176 if(p && p->isAlive() // aliveCamera.cpp https://github.com/zakki/openhsp.git | C++ | 445 lines
58 if (properties->exists("type")) 59 typeStr = properties->getString("type"); 60 Camera::Type type;X86Subtarget.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 436 lines
9// 10// This file implements the X86 specific subclass of TargetSubtargetInfo. 11// 39ClassifyBlockAddressReference() const { 40 if (isPICStyleGOT()) // 32-bit ELF targets. 41 return X86II::MO_GOTOFF; 90 91 if (isPICStyleGOT()) { // 32-bit ELF targets. 92 // Extra load is needed for all externally visible. 165 166/// getSpecialAddressLatency - For targets where it is beneficial to 167/// backschedule instructions that compute addresses, return a value 169/// should be attempted. 170unsigned X86Subtarget::getSpecialAddressLatency() const { 171 // For x86 out-of-order targets, back-schedule address computations soutrans.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 495 lines
73 */ 74 static UClassID U_EXPORT2 getStaticClassID(); 75filevideocapturer.cc https://gitlab.com/f3822/qtwebengine-chromium | C++ | 377 lines
55bool VideoRecorder::RecordFrame(const CapturedFrame& frame) { 56 if (talk_base::SS_CLOSED == video_file_.GetState()) { 57 LOG(LS_ERROR) << "File not opened yet"; 226 227 if (talk_base::SS_CLOSED == video_file_.GetState()) { 228 LOG(LS_ERROR) << "File not opened yet"; 267 268 fourccs->push_back(GetSupportedFormats()->at(0).fourcc); 269 return true; 317 // 2. Read the next frame. 318 if (talk_base::SS_CLOSED == video_file_.GetState()) { 319 LOG(LS_ERROR) << "File not opened yet";test.cpp https://github.com/goofoo/Helium.git | C++ | 440 lines
18// For all others, include the necessary headers (this file is usually all you 19// need because it includes almost all "standard" wxWidgets headers 20#ifndef WX_PRECOMP 105 106 // Any class wishing to process wxWidgets events must use this macro 107 DECLARE_EVENT_TABLE() 143// ---------------------------------------------------------------------------- 144// event tables and other macros for wxWidgets 145// ---------------------------------------------------------------------------- 186 187 SetVendorName(wxT("wxWidgets")); 188 SetAppName(wxT("wxHtmlTest"));DisableMgr.cpp https://github.com/Titan-Project/TrilliumEMU.git | C++ | 361 lines
82 uint8 flags = fields[2].GetUInt8(); 83 std::string params_0 = fields[3].GetString(); 84 std::string params_1 = fields[4].GetString(); 91 case DISABLE_TYPE_SPELL: 92 if (!(sSpellMgr->GetSpellInfo(entry) || flags & SPELL_DISABLE_DEPRECATED_SPELL)) 93 {LoadingBarReader.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 376 lines
147 148 const rapidjson::Value& imageFileNameDic = DICTOOL->getSubDictionary_json(options, P_TextureData); 149 int imageFileNameType = DICTOOL->getIntValue_json(imageFileNameDic, P_ResourceType); 288 } 289 else if (SpriteFrameCache::getInstance()->getSpriteFrameByName(imageFileName)) 290 { 304 std::string plist = imageFileNameDic->plistFile()->c_str(); 305 SpriteFrame* spriteFrame = SpriteFrameCache::getInstance()->getSpriteFrameByName(imageFileName); 306 if (spriteFrame)vtkSeedWidget.cxx https://github.com/aashish24/VTK-old.git | C++ | 413 lines
139 this->RequestCursorShape( VTK_CURSOR_DEFAULT ); 140 this->WidgetState = vtkSeedWidget::Start; 141 } 152 // Need to distinguish between placing handles and manipulating handles 153 if ( self->WidgetState == vtkSeedWidget::MovingSeed ) 154 { 181 182 self->WidgetState = vtkSeedWidget::PlacingSeeds; 183 double e[3]; e[2]=0.0; 214 // Do something only if we are in the middle of placing the seeds 215 if ( self->WidgetState == vtkSeedWidget::PlacingSeeds ) 216 { 411 412 os << indent << "WidgetState: " << this->WidgetState << endl; 413}mtype.cpp https://github.com/tomka/copo.git | C++ | 477 lines
149ULONG 150CMediaType::GetSampleSize() const { 151 if (IsFixedSize()) {boss_ragefire.cpp https://github.com/chucho/FaceCore.git | C++ | 402 lines
41 42#define TARGETS_10 2 43#define TARGETS_25 5 99 100 uint8 getStage() 101 { 176 { 177 SelectTargetList(playerList, RAID_MODE(TARGETS_10,TARGETS_25,TARGETS_10,TARGETS_25), SELECT_TARGET_RANDOM, 0, true); 178 for (std::list<Unit*>::const_iterator itr = playerList.begin(); itr != playerList.end(); ++itr) 205 206 switch (getStage()) 207 {ConVar.cpp https://bitbucket.org/lennonchan/cafu.git | C++ | 325 lines
51 // whereas under Linux, loading a DLL is more like statically linking a ".a" library - there is only *one* instance of the global data. 52 // assert(!(GetStaticList().Size()>0 && GetStaticList()[0]==NULL)); 53 if (GetStaticList().Size()>0 && GetStaticList()[0]==NULL) return; 90{ 91 if (GetStaticList().Size()>0 && GetStaticList()[0]==NULL) 92 { 147{ 148 if (GetStaticList().Size()>0 && GetStaticList()[0]==NULL) 149 { 175{ 176 if (GetStaticList().Size()>0 && GetStaticList()[0]==NULL) 177 { 203{ 204 if (GetStaticList().Size()>0 && GetStaticList()[0]==NULL) 205 {OgreRenderQueue.cpp https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C++ | 329 lines
106 // Use default base white 107 MaterialPtr baseWhite = MaterialManager::getSingleton().getByName("BaseWhite"); 108 pTech = baseWhite->getTechnique(0); 131 SceneManagerEnumerator::SceneManagerIterator scnIt = 132 SceneManagerEnumerator::getSingleton().getSceneManagerIterator(); 133 239 //----------------------------------------------------------------------- 240 bool RenderQueue::getSplitPassesByLightingType(void) const 241 { 257 //----------------------------------------------------------------------- 258 bool RenderQueue::getSplitNoShadowPasses(void) const 259 { 275 //----------------------------------------------------------------------- 276 bool RenderQueue::getShadowCastersCannotBeReceivers(void) const 277 {devtools_pipe_handler.cc https://github.com/chromium/chromium.git | C++ | 433 lines
296 int offset = 0; 297 for (int i = read_buffer_->GetSize() - bytes_read; 298 i < read_buffer_->GetSize(); ++i) { 361 std::string str_mode = base::ToLowerASCII( 362 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 363 switches::kRemoteDebuggingPipe));chat.cpp https://github.com/Pilen/teeworlds-dikumod.git | C++ | 465 lines
63{ 64 ((CChat*)pUserData)->Say(0, pResult->GetString(0)); 65} 68{ 69 ((CChat*)pUserData)->Say(1, pResult->GetString(0)); 70} 73{ 74 const char *pMode = pResult->GetString(0); 75 if(str_comp(pMode, "all") == 0) 107 { 108 if(m_Input.GetString()[0]) 109 { 109 { 110 Say(m_Mode == MODE_ALL ? 0 : 1, m_Input.GetString()); 111 char *pEntry = m_History.Allocate(m_Input.GetLength()+1);app_info_summary_panel.cc https://gitlab.com/jonnialva90/iridium-browser | C++ | 358 lines
66 launch_type_messages_.push_back( 67 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_TAB)); 68 71 launch_type_messages_.push_back( 72 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_WINDOW)); 73 } 76 launch_type_messages_.push_back( 77 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR)); 78 80 launch_type_messages_.push_back( 81 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_PINNED)); 82 85 launch_type_messages_.push_back( 86 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_WINDOW)); 87 }ssl_error_handler_unittest.cc https://gitlab.com/jonnialva90/iridium-browser | C++ | 339 lines
94 95 bool GetSuggestedUrl(const std::vector<std::string>& dns_names, 96 GURL* suggested_url) const override {boss_bronjahm.cpp https://github.com/Teiby1/lastDivision-Repo.git | C++ | 415 lines
73 { 74 if (!instance || static_cast<InstanceMap*>(me->GetMap())->GetScriptId() != sObjectMgr->GetScriptId(FoSScriptName)) 75 me->IsAIEnabled = false; 171 if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 1, 0.0f, true)) 172 me->CastCustomSpell(SPELL_FEAR, SPELLVALUE_MAX_TARGETS, 1, target, false); 173 events.ScheduleEvent(EVENT_FEAR, urand(8000, 12000), 0, PHASE_2); 248 249 const int32 maxDamage = GetCaster()->GetMap()->GetSpawnMode() == 1 ? 15000 : 10000; 250 int32 newDamage = GetHitDamage(); 262 263 SpellScript* GetSpellScript() const 264 { 392 { 393 OnUnitTargetSelect += SpellUnitTargetFn(spell_bronjahm_soulstorm_targeting_SpellScript::FilterTargetsInitial, EFFECT_1, TARGET_UNIT_AREA_ENEMY_DST); 394 OnUnitTargetSelect += SpellUnitTargetFn(spell_bronjahm_soulstorm_targeting_SpellScript::FilterTargetsSubsequent, EFFECT_2, TARGET_UNIT_AREA_ENEMY_DST);itkDiffeomorphicDemonsRegistrationFilterTest.cxx https://github.com/millerjv/ITK.git | C++ | 427 lines
263 { 264 v[j] = registrator->GetStandardDeviations()[j]; 265 } 289 warper->SetInterpolator( interpolator ); 290 warper->SetOutputSpacing( fixed->GetSpacing() ); 291 warper->SetOutputOrigin( fixed->GetOrigin() );2fluid.cxx https://github.com/bendudson/BOUT.git | C++ | 470 lines
104 Options *globalOptions = Options::getRoot(); 105 Options *options = globalOptions->getSection("2fluid"); 106 OPTION(options, AA, 2.0); 117 118 (globalOptions->getSection("Ni"))->get("evolve", evolve_ni, true); 119 (globalOptions->getSection("rho"))->get("evolve", evolve_rho, true); 119 (globalOptions->getSection("rho"))->get("evolve", evolve_rho, true); 120 (globalOptions->getSection("vi"))->get("evolve", evolve_vi, true); 121 (globalOptions->getSection("te"))->get("evolve", evolve_te, true); 121 (globalOptions->getSection("te"))->get("evolve", evolve_te, true); 122 (globalOptions->getSection("ti"))->get("evolve", evolve_ti, true); 123 (globalOptions->getSection("Ajpar"))->get("evolve", evolve_ajpar, true);packagedialog.cpp https://bitbucket.org/JonSRomero/arduino_motorcycle_gauges.git | C++ | 474 lines
133{ 134 QString s = QFileDialog::getSaveFileName( 135 lastDir.isEmpty() ? QString(".") : lastDir,component_updater_service_unittest.cc https://gitlab.com/0072016/Facebook-SDK- | C++ | 385 lines
169 config_ = new TestConfigurator( 170 pool->GetSequencedTaskRunner(pool->GetSequenceToken()), 171 message_loop_.task_runner());toolbar_action_view.cc https://gitlab.com/0072016/Facebook-SDK- | C++ | 335 lines
114 if (delegate_->ShownInsideMenu()) { 115 return GetNativeTheme()->GetSystemColor( 116 ui::NativeTheme::kColorId_HoverMenuItemBackgroundColor);llvm-readobj.cpp https://gitlab.com/Birhetia/platform_external_llvm | C++ | 452 lines
39#include "llvm/Support/TargetRegistry.h" 40#include "llvm/Support/TargetSelect.h" 41#include <string> 439 // Register the target printer for --version. 440 cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion); 441m_layout.cpp https://bitbucket.org/lennonchan/cafu.git | C++ | 460 lines
338 { 339 wxInputStream *is = fileBgImage->GetStream(); 340 if ( is ) 398 bool issub = (tag.GetName() == wxT("SUB")); 399 wxHtmlScriptMode oldmode = m_WParser->GetScriptMode(); 400 int oldbase = m_WParser->GetScriptBaseline(); 407 m_WParser->SetScriptBaseline( 408 oldbase + c ? c->GetScriptBaseline() : 0); 409DynamicMultiBodyTree.cpp https://github.com/jrl-umi3218/jrl-dynamics.git | C++ | 418 lines
117 // Update the translation vector 118 listInternalLinks[JointID].aJoint->getStaticTranslation(m_listOfBodies[BodyID]->b); 119 ODEBUG(" JointID: " << JointID << "BodyID: " << BodyID << ", static translation: " << m_listOfBodies[BodyID]->b); 120 // Update the rotation matrix 121 listInternalLinks[JointID].aJoint->getStaticRotation(m_listOfBodies[BodyID]->R_static); 122 ODEBUG(" Rotation matrix: " << endl << m_listOfBodies[BodyID]->R_static);browser_utils_unittest.cc https://github.com/Crystalnix/bitpop-omaha.git | C++ | 380 lines
228 _T("C:\\Program Files\\Internet Explorer\\iexplore.exe"))) 229 << _T("Actual path: ") << path.GetString(); 230 } else { 242 _T("C:\\Program Files\\Minefield\\FIREFOX.EXE"))) // Trunk build. 243 << _T("Actual path: ") << path.GetString(); 244 } else { 255 _T("Google\\Chrome\\Application\\chrome.exe"))) 256 << _T("Actual path: ") << path.GetString(); 257 } else {qgsnewspatialitelayerdialog.cpp https://github.com/alexckp/qgis.git | C++ | 376 lines
96{ 97 QString fileName = QFileDialog::getSaveFileName( this, tr( "New SpatiaLite Database File" ), 98 ".",OgreUnifiedHighLevelGpuProgram.cpp https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C++ | 407 lines
73 HighLevelGpuProgramPtr deleg = 74 HighLevelGpuProgramManager::getSingleton().getByName(*i); 75 130 // return a default set 131 GpuProgramParametersSharedPtr params = GpuProgramManager::getSingleton().createParameters(); 132 // avoid any errors on parameter names that don't exist 292 //----------------------------------------------------------------------- 293 size_t UnifiedHighLevelGpuProgram::getSize(void) const 294 { 295 if (!_getDelegate().isNull()) 296 return _getDelegate()->getSize(); 297 elseSectLinker.cpp https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C++ | 404 lines
142 if (!m_pLDDriver->addStandardSymbols() || 143 !m_pLDDriver->addTargetSymbols()) 144 return true;key.cpp https://gitlab.com/Quetzalcoatl/VekitaCoin | C++ | 420 lines
140 141 void GetSecretBytes(unsigned char vch[32]) const { 142 const BIGNUM *bn = EC_KEY_get0_private_key(pkey); 320 return false; 321 key.GetSecretBytes(vch); 322 fCompressed = fCompressedIn;vtkBivariateLinearTableThreshold.cxx https://github.com/b3c/VTK-5.8.git | C++ | 386 lines
187 188vtkIdTypeArray* vtkBivariateLinearTableThreshold::GetSelectedRowIds(int selection) 189{resources.cpp https://github.com/St0rmcrow/scummvm.git | C++ | 501 lines
100 101uint32 MemoryManager::getSize(const byte *p) { 102 int idx = indexOf(p); 198/** 199 * Gets a resource from the currently loaded section 200 */ 379 380byte *TLib::getSubResource(int resNum, int rlbNum, int index, uint *size, bool suppressErrors) { 381 // Get the specified image set 392 uint32 nextOffset = (index == numEntries) ? 393 _memoryManager.getSize(dataIn) : READ_LE_UINT32(dataIn + 2 + index * 4); 394 *size = nextOffset - entryOffset; 474 475byte *ResourceManager::getSubResource(int resNum, int rlbNum, int index, uint *size, bool suppressErrors) { 476 byte *result = NULL;sound.cpp https://github.com/alexbevi/scummvm.git | C++ | 535 lines
70 71Sound *SoundList::getSoundItemById(int id) { 72 for (uint i = 0; i < _soundItems.size(); ++i) { 125 126 StaticANIObject *ani = g_fp->_currentScene->getStaticANIObject1ById(_objectId, -1); 127 if (!ani) 236 237 GameVar *var = gvar->getSubVarByName("MUSIC"); 238 249 250 GameVar *tr = var->getSubVarByName("TRACKS"); 251 if (tr) { 264 265 _musicMinDelay = var->getSubVarAsInt("MINDELAY"); 266 _musicMaxDelay = var->getSubVarAsInt("MAXDELAY");instance_ruby_sanctum.cpp https://github.com/vertrigo/scriptdev2.git | C++ | 376 lines
122 { 123 if(Player* pPlayer = i->getSource()) 124 { 144 { 145 if(Player* pPlayer = i->getSource()) 146 {MBlazeAsmPrinter.cpp https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C++ | 326 lines
53 : AsmPrinter(TM, Streamer) { 54 Subtarget = &TM.getSubtarget<MBlazeSubtarget>(); 55 } 160 unsigned retReg = RI.getRARegister(); 161 unsigned stkSze = MF->getFrameInfo()->getStackSize(); 162 235 case MachineOperand::MO_MachineBasicBlock: 236 O << *MO.getMBB()->getSymbol(); 237 return; 239 case MachineOperand::MO_GlobalAddress: 240 O << *Mang->getSymbol(MO.getGlobal()); 241 break; 243 case MachineOperand::MO_ExternalSymbol: 244 O << *GetExternalSymbolSymbol(MO.getSymbolName()); 245 break;juce_MidiFile.cpp https://bitbucket.org/teamaxe/markingtool.git | C++ | 425 lines
253 { 254 size_t size = data.getSize(); 255 const uint8* d = static_cast <const uint8*> (data.getData());CCUserDefault.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 558 lines
64 65 std::string xmlBuffer = FileUtils::getInstance()->getStringFromFile(UserDefault::getInstance()->getXMLFilePath()); 66 151 { 152 doc->SaveFile(FileUtils::getInstance()->getSuitableFOpen(UserDefault::getInstance()->getXMLFilePath()).c_str()); 153 delete doc; 278 279std::string UserDefault::getStringForKey(const char* pKey) 280{ 280{ 281 return getStringForKey(pKey, ""); 282} 283 284string UserDefault::getStringForKey(const char* pKey, const std::string & defaultValue) 285{ScrollbarThemeWin.cpp https://github.com/weissms/owb-mirror.git | C++ | 374 lines
113 if (!thickness) 114 thickness = ::GetSystemMetrics(SM_CXVSCROLL); 115 return thickness; 247 else { 248 DWORD color3DFace = ::GetSysColor(COLOR_3DFACE); 249 DWORD colorScrollbar = ::GetSysColor(COLOR_SCROLLBAR); 249 DWORD colorScrollbar = ::GetSysColor(COLOR_SCROLLBAR); 250 DWORD colorWindow = ::GetSysColor(COLOR_WINDOW); 251 if ((color3DFace != colorScrollbar) && (colorWindow != colorScrollbar)) 257 SaveDC(hdc); 258 ::SetTextColor(hdc, ::GetSysColor(COLOR_3DHILIGHT)); 259 ::SetBkColor(hdc, ::GetSysColor(COLOR_3DFACE));ClangSACheckersEmitter.cpp https://github.com/okuoku/freebsd-head.git | C++ | 319 lines
64 65static std::string getStringValue(const Record &R, StringRef field) { 66 if (StringInit * 230 OS << R.getName() << ", "; 231 OS << getStringValue(R, "DescFile") << ", "; 232 OS << "\""; 232 OS << "\""; 233 OS.write_escaped(getStringValue(R, "HelpText")) << "\", "; 234 // Group indexgl.cpp https://bitbucket.org/Themaister/libretro-gl.git | C++ | 538 lines
137 GLsizei len = 0; 138 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &len); 139 if (!len) 142 char *buffer = new char[len]; 143 glGetShaderInfoLog(shader, len, &len, buffer); 144 fprintf(stderr, "Info Log: %s\n", buffer); 159 int status = 0; 160 glGetShaderiv(vert, GL_COMPILE_STATUS, &status); 161 if (!status) 165 } 166 glGetShaderiv(frag, GL_COMPILE_STATUS, &status); 167 if (!status)netgamebrowser.cpp https://github.com/simX/d2x-xl.git | C++ | 429 lines
373 //PrintLog (" getting server lists from trackers\n"); 374 tracker.GetServerFromList (choice); 375 }hud.cpp https://github.com/simX/d2x-xl.git | C++ | 395 lines
140 GrSetCurFont (SMALL_FONT); 141 GrGetStringSize (pszMsg, &w, &h, &aw); 142 ClearBackgroundMessages (); 192 return; // Get Rob!! 193 GrGetStringSize (pMsgs->szMsgs [n], &w, &h, &aw); 194 GrSetFontColorRGBi (pMsgs->nColor, 1, 0, 0); 331 GrSetCurFont (HUGE_FONT); 332 GrGetStringSize (TXT_GAME_OVER, &w, &h, &aw); 333 w += 20;PPCTargetTransformInfo.cpp https://gitlab.com/storedmirrors/minix | C++ | 432 lines
50 PPCTTI(const PPCTargetMachine *TM) 51 : ImmutablePass(ID), TM(TM), ST(TM->getSubtargetImpl()), 52 TLI(TM->getSubtargetImpl()->getTargetLowering()) { 97 OperandValueProperties) const override; 98 unsigned getShuffleCost(ShuffleKind Kind, Type *Tp, 99 int Index, Type *SubTp) const override; 150 if (Imm.getBitWidth() <= 64) { 151 if (isInt<16>(Imm.getSExtValue())) 152 return TCC_Basic; 153 154 if (isInt<32>(Imm.getSExtValue())) { 155 // A constant that can be materialized using lis. 182 case Intrinsic::usub_with_overflow: 183 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) 184 return TCC_Free;btGjkPairDetector.cpp https://gitlab.com/dannywillems/mass_collide | C++ | 457 lines
46m_minkowskiB(objectB), 47m_shapeTypeA(objectA->getShapeType()), 48m_shapeTypeB(objectB->getShapeType()), 145 146 btVector3 pInA = m_minkowskiA->localGetSupportVertexWithoutMarginNonVirtual(seperatingAxisInA); 147 btVector3 qInB = m_minkowskiB->localGetSupportVertexWithoutMarginNonVirtual(seperatingAxisInB); 148 149// btVector3 pInA = localGetSupportingVertexWithoutMargin(m_shapeTypeA, m_minkowskiA, seperatingAxisInA,input.m_convexVertexData[0]);//, &featureIndexA); 150// btVector3 qInB = localGetSupportingVertexWithoutMargin(m_shapeTypeB, m_minkowskiB, seperatingAxisInB,input.m_convexVertexData[1]);//, &featureIndexB); 153#ifdef __SPU__ 154 btVector3 pInA = m_minkowskiA->localGetSupportVertexWithoutMarginNonVirtual(seperatingAxisInA); 155 btVector3 qInB = m_minkowskiB->localGetSupportVertexWithoutMarginNonVirtual(seperatingAxisInB); 156#else 157 btVector3 pInA = m_minkowskiA->localGetSupportingVertexWithoutMargin(seperatingAxisInA); 158 btVector3 qInB = m_minkowskiB->localGetSupportingVertexWithoutMargin(seperatingAxisInB);unpack15.cpp https://bitbucket.org/coryp/rarkit.git | C++ | 506 lines
138 139#define GetShortLen1(pos) ((pos)==1 ? Buf60+3:ShortLen1[pos]) 140#define GetShortLen2(pos) ((pos)==3 ? Buf60+3:ShortLen2[pos]) 172 173// not thread safe, replaced by GetShortLen1 and GetShortLen2 macro 174// ShortLen1[1]=ShortLen2[3]=Buf60+3; 178 for (Length=0;;Length++) 179 if (((BitField^ShortXor1[Length]) & (~(0xff>>GetShortLen1(Length))))==0) 180 break; 180 break; 181 faddbits(GetShortLen1(Length)); 182 } 185 for (Length=0;;Length++) 186 if (((BitField^ShortXor2[Length]) & (~(0xff>>GetShortLen2(Length))))==0) 187 break;GitAdminDirTest.cpp https://gitlab.com/cjeight/tortoisegit | C++ | 358 lines
330 331TEST(CGitAdminDir, GetSuperProjectRoot) 332{ 334 335 EXPECT_STREQ(L"", GitAdminDir::GetSuperProjectRoot(tmpDir.GetTempDir())); 336 337 EXPECT_TRUE(::CreateDirectory(tmpDir.GetTempDir() + L"\\.git", nullptr)); 338 EXPECT_STREQ(L"", GitAdminDir::GetSuperProjectRoot(tmpDir.GetTempDir())); 339 340 EXPECT_TRUE(::CreateDirectory(tmpDir.GetTempDir() + L"\\subdir", nullptr)); 341 EXPECT_STREQ(L"", GitAdminDir::GetSuperProjectRoot(tmpDir.GetTempDir())); 342 344 EXPECT_TRUE(CStringUtils::WriteStringToTextFile(gitmodules, L"something")); 345 EXPECT_STREQ(tmpDir.GetTempDir(), GitAdminDir::GetSuperProjectRoot(tmpDir.GetTempDir())); 346 EXPECT_STREQ(tmpDir.GetTempDir(), GitAdminDir::GetSuperProjectRoot(tmpDir.GetTempDir() + L"\\subdir"));ParseOpenMP.cpp https://gitlab.com/pranith/clang | C++ | 366 lines
38 OMPD_unknown : 39 getOpenMPDirectiveKind(PP.getSpelling(Tok)); 40 90 OMPD_unknown : 91 getOpenMPDirectiveKind(PP.getSpelling(Tok)); 92 StmtResult Directive = StmtError(); 116 OMPC_unknown : 117 getOpenMPClauseKind(PP.getSpelling(Tok)); 118 OMPClause *Clause = ParseOpenMPClause(DKind, CKind, 306 unsigned(OMPC_DEFAULT_unknown) : 307 getOpenMPSimpleClauseType(Kind, PP.getSpelling(Tok)); 308 SourceLocation TypeLoc = Tok.getLocation();nmfmapts.cpp https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C++ | 398 lines
227 228// ======= Test getStaticClassID() 229 229 230 logln("Testing getStaticClassID()"); 231 237 238 if(test->getDynamicClassID() != DecimalFormat::getStaticClassID()) { 239 errln("ERROR: getDynamicClassID() didn't return the expected value"); 284 285 static inline UClassID getStaticClassID() 286 {itkVoronoiSegmentationRGBImageFilterTest.cxx https://github.com/paniwani/ITK.git | C++ | 449 lines
401 double stdPercentErrorOut[6]; 402 filter->GetSTDPercentError(stdPercentErrorOut); 403 if (stdPercentErrorOut[0] != 0.1 || 425 double stdTolerance[6]; 426 filter->GetSTDTolerance(stdTolerance); 427 std::cout << "STD Tolerance = ("b2Distance.cpp https://github.com/roxlu/ofxBox2d.git | C++ | 571 lines
127 128 b2Vec2 GetSearchDirection() const 129 { 486 // Get search direction. 487 b2Vec2 d = simplex.GetSearchDirection(); 488 502 b2SimplexVertex* vertex = vertices + simplex.m_count; 503 vertex->indexA = proxyA->GetSupport(b2MulT(transformA.R, -d)); 504 vertex->wA = b2Mul(transformA, proxyA->GetVertex(vertex->indexA)); 505 b2Vec2 wBLocal; 506 vertex->indexB = proxyB->GetSupport(b2MulT(transformB.R, d)); 507 vertex->wB = b2Mul(transformB, proxyB->GetVertex(vertex->indexB));ApmToolBar.cc https://gitlab.com/fsgdez/apm_planner | C++ | 441 lines
304 } 305 QString port = LinkManager::instance()->getSerialLinkPort(linkid); 306 int baud = LinkManager::instance()->getSerialLinkBaud(linkid); 340 341 switch (m_uas->getSystemType()){ 342 case MAV_TYPE_FIXED_WING:boss_darkmaster_gandling.cpp https://gitlab.com/wylathdk/TrinityCore_434 | C++ | 391 lines
237 238 SpellScript* GetSpellScript() const override 239 { 319 320 switch (GetSpellInfo()->Effects[effIndex].MiscValue) 321 { 379 380 SpellScript* GetSpellScript() const override 381 {JSTestOverloadedConstructors.cpp https://gitlab.com/x33n/phantomjs | C++ | 286 lines
135{ 136 return getStaticValueSlot<JSTestOverloadedConstructorsConstructor, JSDOMWrapper>(exec, &JSTestOverloadedConstructorsConstructorTable, jsCast<JSTestOverloadedConstructorsConstructor*>(cell), propertyName, slot); 137} 140{ 141 return getStaticValueDescriptor<JSTestOverloadedConstructorsConstructor, JSDOMWrapper>(exec, &JSTestOverloadedConstructorsConstructorTable, jsCast<JSTestOverloadedConstructorsConstructor*>(object), propertyName, descriptor); 142} 198 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info); 199 return getStaticValueSlot<JSTestOverloadedConstructors, Base>(exec, &JSTestOverloadedConstructorsTable, thisObject, propertyName, slot); 200} 205 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info); 206 return getStaticValueDescriptor<JSTestOverloadedConstructors, Base>(exec, &JSTestOverloadedConstructorsTable, thisObject, propertyName, descriptor); 207}syntax_line_edit.cpp https://gitlab.com/jvelando/wireshark | C++ | 472 lines
20 21#include <ui/qt/widgets/syntax_line_edit.h> 22output_test_helper.cc https://gitlab.com/williamwp/riscv-rv32x-llvm | C++ | 423 lines
33 34SubMap& GetSubstitutions() { 35 // Don't use 'dec_re' from header because it may not yet be initialized. 63std::string PerformSubstitutions(std::string source) { 64 SubMap const& subs = GetSubstitutions(); 65 using SizeT = std::string::size_type; 350 std::initializer_list<std::pair<std::string, std::string>> il) { 351 auto& subs = internal::GetSubstitutions(); 352 for (auto KV : il) {ProgramGL.cpp https://gitlab.com/paretje/qtwebkit | C++ | 419 lines
44 45int ProgramGL::getShaderVersion() const 46{ 92 // Attach the shaders 93 mFunctions->attachShader(mProgramID, vertexShaderGL->getShaderID()); 94 mFunctions->attachShader(mProgramID, fragmentShaderGL->getShaderID()); 333 334GLint ProgramGL::getSamplerMapping(gl::SamplerType type, unsigned int samplerIndex, const gl::Caps &caps) const 335{ 339 340GLenum ProgramGL::getSamplerTextureType(gl::SamplerType type, unsigned int samplerIndex) const 341{DAGISelMatcher.cpp https://github.com/okuoku/freebsd-head.git | C++ | 409 lines
190void CheckComplexPatMatcher::printImpl(raw_ostream &OS, unsigned indent) const { 191 OS.indent(indent) << "CheckComplexPat " << Pattern.getSelectFunc() << '\n'; 192} 263 OS.indent(indent) << "CompleteMatch <todo args>\n"; 264 OS.indent(indent) << "Src = " << *Pattern.getSrcPattern() << "\n"; 265 OS.indent(indent) << "Dst = " << *Pattern.getDstPattern() << "\n";local_file_util_unittest.cc https://gitlab.com/0072016/Facebook-SDK- | C++ | 381 lines
96 97 int64_t GetSize(const char* file_name) { 98 base::File::Info info; 137 EXPECT_TRUE(FileExists(file_name)); 138 EXPECT_EQ(0, GetSize(file_name)); 139 175 EXPECT_TRUE(FileExists(file_name)); 176 EXPECT_EQ(0, GetSize(file_name)); 177 243 EXPECT_TRUE(FileExists(file_name)); 244 EXPECT_EQ(1020, GetSize(file_name)); 245} 260 EXPECT_TRUE(FileExists(from_file)); 261 EXPECT_EQ(1020, GetSize(from_file)); 262GNUArchiveReader.cpp https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C++ | 393 lines
109 // bypass if we already decided to include this symbol or not 110 if (Archive::Symbol::Unknown != pArchive.getSymbolStatus(idx)) 111 continue; 120 Archive::Symbol::Status status = 121 shouldIncludeSymbol(pArchive.getSymbolName(idx)); 122 if (Archive::Symbol::Unknown != status) 233 begin = name_offset; 234 end = pArchiveRoot.getStrTable().find_first_of('\n', begin); 235 member_name.assign(pArchiveRoot.getStrTable().substr(begin, end - begin -1)); 343 sizeof(Archive::MemberHeader) + 344 pArchive.getSymTabSize(); 345 369 370 pArchive.getStrTable().assign(strtab, strtab_size); 371Transaction.cpp https://github.com/libcoin/libcoin.git | C++ | 415 lines
54 55int Transaction::getSigOpCount() const { 56 int n = 0; 57 BOOST_FOREACH(const Input& input, _inputs) 58 n += input.signature().getSigOpCount(); 59 BOOST_FOREACH(const Output& output, _outputs) 59 BOOST_FOREACH(const Output& output, _outputs) 60 n += output.script().getSigOpCount(); 61 return n; 135 136uint256 Transaction::getSignatureHash(Script scriptCode, unsigned int n, int type) const { 137 if (n >= _inputs.size()) { 408 409 return key.verify(_txn.getSignatureHash(scriptCode, _in, hashtype), vchSig); 410 }main.cpp https://github.com/fishman/virtualdub.git | C++ | 369 lines
165 DRIVERMESSAGE(ICM_GETQUALITY), 166 DRIVERMESSAGE(ICM_GETSTATE), 167 DRIVERMESSAGE(ICM_SET_STATUS_PROC), 313 case ICM_COMPRESS_GET_FORMAT: return pi->CompressGetFormat((LPBITMAPINFO)lParam1, (LPBITMAPINFO)lParam2); 314 case ICM_COMPRESS_GET_SIZE: return pi->CompressGetSize((LPBITMAPINFO)lParam1, (LPBITMAPINFO)lParam2); 315 case ICM_COMPRESS_QUERY: return pi->CompressQuery((LPBITMAPINFO)lParam1, (LPBITMAPINFO)lParam2); 348 case ICM_GETQUALITY: return pi->GetQuality((DWORD *)lParam1); 349 case ICM_GETSTATE: return pi->GetState((LPVOID)lParam1, (DWORD)lParam2); 350 case ICM_SET_STATUS_PROC: return pi->SetStatusProc((ICSETSTATUSPROC *)lParam1, (DWORD)lParam2);lluserauth.cpp https://github.com/WindBasevi/imprudence.git | C++ | 482 lines
45 46// NOTE: MUST include these after otherincludes since queue gets redefined!?!! 47#include <curl/curl.h> 144 XMLRPC_VectorAppendString(params, "last", lastname.c_str(), 0); 145 XMLRPC_VectorAppendString(params, "web_login_key", web_login_key.getString().c_str(), 0); 146 XMLRPC_VectorAppendString(params, "start", start.c_str(), 0); 147 XMLRPC_VectorAppendString(params, "version", gCurrentVersion.c_str(), 0); // Includes channel name 148 XMLRPC_VectorAppendString(params, "channel", gSavedSettings.getString("VersionChannelName").c_str(), 0); 149 XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0); 254 XMLRPC_VectorAppendString(params, "version", gCurrentVersion.c_str(), 0); // Includes channel name 255 XMLRPC_VectorAppendString(params, "channel", gSavedSettings.getString("VersionChannelName").c_str(), 0); 256 XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0);FilterGraph.cpp https://github.com/plasm-language/pyplasm.git | C++ | 416 lines
84 85 if (AudioPluginInstance* instance = formatManager.createPluginInstance (*desc, graph.getSampleRate(), graph.getBlockSize(), errorMessage)) 86 node = graph.addNode (instance); 308 MemoryBlock m; 309 node->getProcessor()->getStateInformation (m); 310 state->addTextElement (m.toBase64Encoding()); 327 328 AudioPluginInstance* instance = formatManager.createPluginInstance (pd, graph.getSampleRate(), graph.getBlockSize(), errorMessage); 329 344 345 node->getProcessor()->setStateInformation (m.getData(), (int) m.getSize()); 346 }btCompoundShape.cpp https://gitlab.com/gasabr/flappy-test | C++ | 356 lines
57 child.m_childShape = shape; 58 child.m_childShapeType = shape->getShapeType(); 59 child.m_childMargin = shape->getMargin();qabstractprintdialog.cpp https://bitbucket.org/cvp2ri/qt5-tlsauth.git | C++ | 500 lines
431 432 Set a list of widgets as \a tabs to be shown on the print dialog, if supported. 433renderer9_utils.cpp https://bitbucket.org/cvp2ri/qt5-tlsauth.git | C++ | 500 lines
269 270unsigned int GetStencilSize(D3DFORMAT stencilFormat) 271{ 319 320GLsizei GetSamplesFromMultisampleType(D3DMULTISAMPLE_TYPE type) 321{EventHandlerRegistry.cpp https://gitlab.com/bjwbell/b2 | C++ | 304 lines
81{ 82 EventTargetSet* targets = &m_targets[handlerClass]; 83 if (op == Add) { 177 EventHandlerClass handlerClass = static_cast<EventHandlerClass>(i); 178 const EventTargetSet* targets = &oldFrameHost->eventHandlerRegistry().m_targets[handlerClass]; 179 for (unsigned count = targets->count(&target); count > 0; --count) 238 EventHandlerClass handlerClass = static_cast<EventHandlerClass>(i); 239 const EventTargetSet* targets = &m_targets[handlerClass]; 240 for (const auto& eventTarget : *targets) { 259 Vector<UntracedMember<EventTarget>> targetsToRemove; 260 const EventTargetSet* targets = &m_targets[handlerClass]; 261 for (const auto& eventTarget : *targets) { 285 EventHandlerClass handlerClass = static_cast<EventHandlerClass>(i); 286 const EventTargetSet* targets = &m_targets[handlerClass]; 287 for (const auto& eventTarget : *targets) {