Class StringFunctionUtil
java.lang.Object
org.apache.drill.exec.expr.fn.impl.StringFunctionUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getUTF8CharLength
(io.netty.buffer.ByteBuf buffer, int start, int end) static int
getUTF8CharPosition
(io.netty.buffer.ByteBuf buffer, int start, int end, int charLength) static int
stringLeftMatchUTF8
(io.netty.buffer.ByteBuf str, int strStart, int strEnd, io.netty.buffer.ByteBuf substr, int subStart, int subEnd) static int
utf8CharLen
(byte currentByte) static int
utf8CharLen
(io.netty.buffer.ByteBuf buffer, int idx)
-
Constructor Details
-
StringFunctionUtil
public StringFunctionUtil()
-
-
Method Details
-
getUTF8CharLength
public static int getUTF8CharLength(io.netty.buffer.ByteBuf buffer, int start, int end) -
getUTF8CharPosition
public static int getUTF8CharPosition(io.netty.buffer.ByteBuf buffer, int start, int end, int charLength) -
stringLeftMatchUTF8
public static int stringLeftMatchUTF8(io.netty.buffer.ByteBuf str, int strStart, int strEnd, io.netty.buffer.ByteBuf substr, int subStart, int subEnd) -
utf8CharLen
public static int utf8CharLen(io.netty.buffer.ByteBuf buffer, int idx) -
utf8CharLen
public static int utf8CharLen(byte currentByte)
-