MCPcopy Create free account
hub / github.com/davisking/dlib / find_keywords

Method find_keywords

dlib/gui_widgets/fonts.cpp:410–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408 return true;
409 }
410 int find_keywords( int find )
411 {
412 int type;
413 std::string token;
414 while ( 1 )
415 {
416 tokzr.get_token( type, token );
417 if ( type == tokenizer::kernel_1a_c::END_OF_FILE )
418 return NO_KEYWORD;
419 if ( type == tokenizer::kernel_1a_c::IDENTIFIER && keyword_map.is_in_domain( token ) == true )
420 {
421 int kw = keyword_map[token];
422 if ( kw & find )
423 return kw;
424 }
425 }
426 return true;
427 }
428
429 };
430

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected