mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
More tests
This commit is contained in:
parent
ceef92fa9e
commit
0db5ec9227
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user