MCPcopy Create free account
hub / github.com/buggins/coolreader / decodeHTMLChar

Function decodeHTMLChar

crengine/src/lvstring.cpp:3993–4005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3991}
3992
3993static lChar16 decodeHTMLChar( const lChar16 * s )
3994{
3995 if ( s[0]=='%' ) {
3996 int d1 = decodeHex( s[1] );
3997 if ( d1>=0 ) {
3998 int d2 = decodeHex( s[2] );
3999 if ( d2>=0 ) {
4000 return d1*16 + d2;
4001 }
4002 }
4003 }
4004 return 0;
4005}
4006
4007/// decodes path like "file%20name" to "file name"
4008lString16 DecodeHTMLUrlString( lString16 s )

Callers 1

DecodeHTMLUrlStringFunction · 0.85

Calls 1

decodeHexFunction · 0.85

Tested by

no test coverage detected