aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/str.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/str.h b/common/str.h
index 2ad2626dc1..ea2db1d1d6 100644
--- a/common/str.h
+++ b/common/str.h
@@ -235,6 +235,11 @@ public:
public:
typedef char value_type;
+ /**
+ * Unsigned version of the underlying type. This can be used to cast
+ * individual string characters to bigger integer types without sign
+ * extension happening.
+ */
typedef unsigned char unsigned_type;
typedef char * iterator;
typedef const char * const_iterator;