From 1a6f9378aa32b3d2877c1ee90e212bde82ef832b Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 23 Nov 2013 21:34:54 +0100 Subject: COMMON: Add underlying type names to Common::String. The value_type is analogous to std::basic_string::value_type. The unsigned_type on the other hand is an unsigned type of the value_type which allows to obtain an character without nasty sign extension. --- common/str.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/str.h b/common/str.h index 6b4475e1c4..2ad2626dc1 100644 --- a/common/str.h +++ b/common/str.h @@ -234,6 +234,8 @@ public: static String vformat(const char *fmt, va_list args); public: + typedef char value_type; + typedef unsigned char unsigned_type; typedef char * iterator; typedef const char * const_iterator; -- cgit v1.2.3