tiny-utf8
tiny-utf8 copied to clipboard
Unicode (UTF-8) capable std::string
Is there any support for a string view handled by tiny-utf8 (`tiny_utf8::string_view`)? I did not find an implementation for string view, maybe that would be nice to have as a...
For example we can make a separate typedef using std::string class to behave like case insensitive class. I tried same approach with tiny-utf8 class and i got too many errors....
I've tested these cases (windows 11, msvc 2022 with ninja): ``` tiny_utf8::string utf8str(u8"q🌍"); utf8str.length() is 2. ``` but if you do this: ``` tiny_utf8::string utf8str(u8"q🌍\0\0"); utf8str.length() is 4.( This should...
First of all, thanks a lot for providing this project! It makes it so much easier to work with UTF-8 data. I'm aware that this might be out of the...
This allows to get rid of various unnecessary copies in my code. E.g., data passed as `std::string_view` can be used to directly construct an UTF-8 string without having to create...
@DuffsDevice First of all, really cool project! It just makes it so much easier to deal with UTF-8 data. When compiling my code with tinyutf8 with gcc, I got the...
There are a few functions that have been added in ::std::basic_string in C++23 (most notably the function **contains()**) that are missing from tinyutf8::string. Can you please add them? Thanks in...
The test suite seems to assume that `sizeof(tiny_utf8::string)` is 32 chars and bases some asserts on this, e.g. inside [`AppendString`](https://github.com/DuffsDevice/tiny-utf8/blob/v4.4.3/test/src/test_manipulation.cpp#L8): ```c++ tiny_utf8::string str = U"Hello ツ"; str.append(U" ♫ World"); EXPECT_EQ(str.length(),...
error now in tinyutf-8: include\libs\tinyutf8\tinyutf8.h|2360|error: cannot increment value of type 'const value_type[LITLEN]' (aka 'const ValueType[LITLEN]')| here: ... while( it != end && str_len ){ if( *it != *str ) return...
This fixes the C++23 main code compile errors, but I can't get the tests to compile due to [this error](https://github.com/DuffsDevice/tiny-utf8/issues/79). Fixes https://github.com/DuffsDevice/tiny-utf8/issues/71