diff options
author | Gilbert Gonzales <gilbert@lindenlab.com> | 2013-05-30 17:05:56 -0700 |
---|---|---|
committer | Gilbert Gonzales <gilbert@lindenlab.com> | 2013-05-30 17:05:56 -0700 |
commit | 2bb7b3f6bcb2318d96f1be45093e5bae7b7f8167 (patch) | |
tree | 2f4053f539cfa9d2978686278c88862fc52586a7 /indra/llcommon/llstring.cpp | |
parent | 296377a64f1fee320e4f86a858116e2831c6e4aa (diff) | |
parent | 1f84fe88c66558411382e515f6abe8b677f9b98d (diff) |
merge
Diffstat (limited to 'indra/llcommon/llstring.cpp')
-rwxr-xr-x | indra/llcommon/llstring.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/llcommon/llstring.cpp b/indra/llcommon/llstring.cpp index 0c32679744..22c8681983 100755 --- a/indra/llcommon/llstring.cpp +++ b/indra/llcommon/llstring.cpp @@ -52,6 +52,23 @@ std::string ll_safe_string(const char* in, S32 maxlen) return std::string(); } +bool is_char_hex(char hex) +{ + if((hex >= '0') && (hex <= '9')) + { + return true; + } + else if((hex >= 'a') && (hex <='f')) + { + return true; + } + else if((hex >= 'A') && (hex <='F')) + { + return true; + } + return false; // uh - oh, not hex any more... +} + U8 hex_as_nybble(char hex) { if((hex >= '0') && (hex <= '9')) |