aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--linden/doc/contributions.txt4
-rw-r--r--linden/indra/llcommon/llstring.cpp12
-rw-r--r--linden/indra/llcommon/llstring.h2
3 files changed, 17 insertions, 1 deletions
diff --git a/linden/doc/contributions.txt b/linden/doc/contributions.txt
index 8aab5c8..a48730e 100644
--- a/linden/doc/contributions.txt
+++ b/linden/doc/contributions.txt
@@ -49,6 +49,7 @@ Aleric Inglewood
49 SNOW-86 49 SNOW-86
50 SNOW-103 50 SNOW-103
51 SNOW-119 51 SNOW-119
52 SNOW-129
52 SNOW-196 53 SNOW-196
53 SNOW-203 54 SNOW-203
54 SNOW-240 55 SNOW-240
@@ -201,6 +202,8 @@ Catherine Pfeffer
201Celierra Darling 202Celierra Darling
202 VWR-1274 203 VWR-1274
203 VWR-6975 204 VWR-6975
205Cypren Christenson
206 SNOW-129
204Dale Glass 207Dale Glass
205 VWR-120 208 VWR-120
206 VWR-560 209 VWR-560
@@ -474,7 +477,6 @@ Nicholaz Beresford
474Nicky Perian 477Nicky Perian
475 IMP-680 478 IMP-680
476 IMP-685 479 IMP-685
477 IMP-741
478Nounouch Hapmouche 480Nounouch Hapmouche
479 VWR-238 481 VWR-238
480Patric Mills 482Patric Mills
diff --git a/linden/indra/llcommon/llstring.cpp b/linden/indra/llcommon/llstring.cpp
index 1f653c1..32a75c0 100644
--- a/linden/indra/llcommon/llstring.cpp
+++ b/linden/indra/llcommon/llstring.cpp
@@ -595,6 +595,18 @@ std::string utf8str_removeCRLF(const std::string& utf8str)
595 return out; 595 return out;
596} 596}
597 597
598bool LLStringOps::isHexString(const std::string& str)
599{
600 const char* buf = str.c_str();
601 int len = str.size();
602 while (--len >= 0)
603 {
604 if (!isxdigit(buf[len])) return false;
605 }
606
607 return true;
608}
609
598#if LL_WINDOWS 610#if LL_WINDOWS
599// documentation moved to header. Phoenix 2007-11-27 611// documentation moved to header. Phoenix 2007-11-27
600namespace snprintf_hack 612namespace snprintf_hack
diff --git a/linden/indra/llcommon/llstring.h b/linden/indra/llcommon/llstring.h
index 61767ac..1717479 100644
--- a/linden/indra/llcommon/llstring.h
+++ b/linden/indra/llcommon/llstring.h
@@ -175,6 +175,8 @@ public:
175 175
176 static S32 collate(const char* a, const char* b) { return strcoll(a, b); } 176 static S32 collate(const char* a, const char* b) { return strcoll(a, b); }
177 static S32 collate(const llwchar* a, const llwchar* b); 177 static S32 collate(const llwchar* a, const llwchar* b);
178
179 static bool isHexString(const std::string& str);
178}; 180};
179 181
180/** 182/**