MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / HexDigit

Method HexDigit

Source/Engine/Platform/Base/StringUtilsBase.cpp:408–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408int32 StringUtils::HexDigit(Char c)
409{
410 int32 result = 0;
411 if (c >= '0' && c <= '9')
412 result = c - '0';
413 else if (c >= 'a' && c <= 'f')
414 result = c + 10 - 'a';
415 else if (c >= 'A' && c <= 'F')
416 result = c + 10 - 'A';
417 return result;
418}
419
420template<typename C, typename T>
421bool ParseFloat(const C* str, T* ret)

Callers 2

FromHexMethod · 0.45
TryParseHexMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected