MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / char_val

Function char_val

sql/item.cc:2354–2359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2352}
2353
2354inline uint char_val(char X)
2355{
2356 return (uint) (X >= '0' && X <= '9' ? X-'0' :
2357 X >= 'A' && X <= 'Z' ? X-'A'+10 :
2358 X-'a'+10);
2359}
2360
2361Item_hex_string::Item_hex_string()
2362{

Callers 2

hex_string_initMethod · 0.70
str2intFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected