Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit c37300b

Browse files
authored
Added tiny_utf8::string typedef
1 parent 61ed602 commit c37300b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/tinyutf8/tinyutf8.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ namespace tiny_utf8
112112
>
113113
class basic_utf8_string;
114114

115+
//! Typedef of string (data type: char)
116+
using string = basic_utf8_string<char32_t, char>;
117+
115118
//! Typedef of utf8_string (data type: char)
116-
using utf8_string = basic_utf8_string<char32_t, char>;
119+
using utf8_string = basic_utf8_string<char32_t, char>; // For backwards compatibility
117120

118121
//! Typedef of u8string (data type char8_t)
119122
#if __cplusplus > 201703L

0 commit comments

Comments
 (0)