Skip to content

Commit

Permalink
COMMON: Add underlying type names to Common::String.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Johannes Schickel committed Nov 23, 2013
1 parent 67ce244 commit 1a6f937
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/str.h
Expand Up @@ -234,6 +234,8 @@ class String {
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;

Expand Down

0 comments on commit 1a6f937

Please sign in to comment.