diff options
Diffstat (limited to 'include/sized_string.h')
| -rw-r--r-- | include/sized_string.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sized_string.h b/include/sized_string.h index c1aac98b..64b01a5a 100644 --- a/include/sized_string.h +++ b/include/sized_string.h @@ -76,6 +76,10 @@ struct SizedString { va_end(list); return printed; } + + size_t len() const { + return strlen(mChars); + } }; // TODO this might be a shared template with SizedString but I'm |
