MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getHexVal

Function getHexVal

Engine/source/gui/controls/guiMLTextCtrl.cpp:1589–1598  ·  view source on GitHub ↗

--------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1587
1588//--------------------------------------------------------------------------
1589static S32 getHexVal(char c)
1590{
1591 if(c >= '0' && c <= '9')
1592 return c - '0';
1593 else if(c >= 'A' && c <= 'Z')
1594 return c - 'A' + 10;
1595 else if(c >= 'a' && c <= 'z')
1596 return c - 'a' + 10;
1597 return -1;
1598}
1599
1600//--------------------------------------------------------------------------
1601GuiMLTextCtrl::Style *GuiMLTextCtrl::allocStyle(GuiMLTextCtrl::Style *style)

Callers 1

reflowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected