--------------------------------------------------------------------------
| 1587 | |
| 1588 | //-------------------------------------------------------------------------- |
| 1589 | static 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 | //-------------------------------------------------------------------------- |
| 1601 | GuiMLTextCtrl::Style *GuiMLTextCtrl::allocStyle(GuiMLTextCtrl::Style *style) |