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

Method required_keyword

dlib/gui_widgets/fonts.cpp:395–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393 }
394 }
395 bool required_keyword( int kw )
396 {
397 int type;
398 std::string token;
399 while ( 1 )
400 {
401 tokzr.get_token( type, token );
402 if ( type == tokenizer::kernel_1a_c::WHITE_SPACE || type == tokenizer::kernel_1a_c::END_OF_LINE )
403 continue;
404 if ( type != tokenizer::kernel_1a_c::IDENTIFIER || keyword_map.is_in_domain( token ) == false || ( keyword_map[token] & kw ) == 0 )
405 return false;
406 break;
407 }
408 return true;
409 }
410 int find_keywords( int find )
411 {
412 int type;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected