diff options
author | Oz Linden <oz@lindenlab.com> | 2013-06-06 16:46:31 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-06-06 16:46:31 -0400 |
commit | a2fa9a2bc26bb67c0bb952d3295c380dcb853eb5 (patch) | |
tree | 5f2e8de9027fc924947b304c20e1aaf81ce1234a /indra/llcommon/llstring.cpp | |
parent | 72e7269da376d660385f3c66ac2a25a5e50871ea (diff) | |
parent | dcfb18373eca7986a73d8b9a1d34970cc0a23ed9 (diff) |
merge changes for 3.5.3-release
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')) |