More tests

This commit is contained in:
Alexey Milovidov 2019-04-12 03:52:24 +03:00
parent ceef92fa9e
commit 0db5ec9227

View File

@ -279,6 +279,15 @@ struct StringSource
/// Differs to StringSource by having 'offest' and 'length' in code points instead of bytes in getSlice* methods.
/** NOTE: The behaviour of substring and substringUTF8 is inconsistent when negative offset is greater than string size:
* substring:
* hello
* ^-----^ - offset -10, length 7, result: "he"
* substringUTF8:
* hello
* ^-----^ - offset -10, length 7, result: "hello"
* This may be subject for change.
*/
struct UTF8StringSource : public StringSource
{
using StringSource::StringSource;