Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
|
#include "InputHelper.h"
Static Public Member Functions | |
static bool | TryKeyToChar (const FKey &key, TCHAR &output) |
static bool | TryCharToDigit (TCHAR character, int32 radix, int32 &output) |
static bool | TryKeyToDigit (const FKey &key, int32 radix, int32 &output) |
Provides helper methods for working with user input
|
staticFlavor:Static |
Tries to convert a character to a digit.
character | The character to convert |
radix | The radix of digit to convert. Valid range is 2 thru 36. For radices greater than 10, A-Z (case insensitive) are used to supply remaining digits (i.e. 0-9 and A-F for hexadecimal). |
output | On successful return, contains the converted digit. In the case where the conversion fails due to the digit being outside the range of the radix, the converted digit is still returned, but failure is indicated via the return value. |
B ← chtoi4 CH I4 I4&
|
staticFlavor:Static |
Tries to convert an input event key to a character.
key | The key to convert |
output | On successful return, contains the converted character. Otherwise returns null ('\0'); |
B ← kytoch KY CH&
|
staticFlavor:Static |
Tries to convert an input event key to a digit.
key | The key to convert |
radix | The radix of digit to convert. Valid range is 2 thru 36. For radices greater than 10, A-Z (case insensitive) are used to supply remaining digits (i.e. 0-9 and A-F for hexadecimal). |
output | On successful return, contains the converted digit. In the case where the conversion fails due to the digit being outside the range of the radix, the converted digit is still returned, but failure is indicated via the return value. |
B ← kytoi4 KY I4 I4&