MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / fromHex

Function fromHex

source/MRViewer/MRFileDialogPortal.cpp:347–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347char fromHex( char hex )
348{
349 if ( '0' <= hex && hex <= '9' )
350 return hex - '0';
351 if ( 'A' <= hex && hex <= 'F' )
352 return hex - 'A' + 10;
353 if ( 'a' <= hex && hex <= 'f' )
354 return hex - 'a' + 10;
355 MR_UNREACHABLE
356}
357
358std::string percentDecode( std::string_view str )
359{

Callers 1

percentDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected