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

Function getHexVal

Engine/source/gui/controls/guiMLTextCtrl.cpp:1585–1594  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

reflowMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected