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

Method extract_hex

dlib/gui_widgets/fonts.cpp:364–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362 tokenizer::kernel_1a_c tokzr;
363 std::istream& in_;
364 void extract_hex(std::string& str)
365 {
366 int type;
367 std::string token;
368 while ( 1 )
369 {
370 type = tokzr.peek_type();
371 if ( type == tokenizer::kernel_1a_c::IDENTIFIER || type == tokenizer::kernel_1a_c::NUMBER )
372 {
373 tokzr.get_token( type, token );
374 str += token;
375 continue;
376 }
377 break;
378 }
379 }
380 void trim()
381 {
382 int type;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected