aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohannes Schickel2013-11-23 21:34:54 +0100
committerJohannes Schickel2013-11-23 21:34:54 +0100
commit1a6f9378aa32b3d2877c1ee90e212bde82ef832b (patch)
treef2a855909fb9ce6585d28cf8a921db049bc53abf /common
parent67ce244567c8962d2a7f2a799966ad997f7b7881 (diff)
downloadscummvm-rg350-1a6f9378aa32b3d2877c1ee90e212bde82ef832b.tar.gz
scummvm-rg350-1a6f9378aa32b3d2877c1ee90e212bde82ef832b.tar.bz2
scummvm-rg350-1a6f9378aa32b3d2877c1ee90e212bde82ef832b.zip
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.
Diffstat (limited to 'common')
-rw-r--r--common/str.h2
1 files changed, 2 insertions, 0 deletions
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;