Make hex_to_int and bin_to_int handle the prefix automatically
Also add BinToInt to C#
This commit is contained in:
parent
726967f453
commit
a3e3bf8227
7 changed files with 84 additions and 37 deletions
|
|
@ -318,8 +318,8 @@ public:
|
|||
bool is_numeric() const;
|
||||
|
||||
double to_float() const;
|
||||
int64_t hex_to_int(bool p_with_prefix = true) const;
|
||||
int64_t bin_to_int(bool p_with_prefix = true) const;
|
||||
int64_t hex_to_int() const;
|
||||
int64_t bin_to_int() const;
|
||||
int64_t to_int() const;
|
||||
|
||||
static int64_t to_int(const char *p_str, int p_len = -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue