public class StringFunctionUtil extends Object
Constructor and Description |
---|
StringFunctionUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
getUTF8CharLength(ByteBuf buffer,
int start,
int end) |
static int |
getUTF8CharPosition(ByteBuf buffer,
int start,
int end,
int charLength) |
static int |
stringLeftMatchUTF8(ByteBuf str,
int strStart,
int strEnd,
ByteBuf substr,
int subStart,
int subEnd) |
static int |
utf8CharLen(byte currentByte) |
static int |
utf8CharLen(ByteBuf buffer,
int idx) |
public static int getUTF8CharLength(ByteBuf buffer, int start, int end)
public static int getUTF8CharPosition(ByteBuf buffer, int start, int end, int charLength)
public static int stringLeftMatchUTF8(ByteBuf str, int strStart, int strEnd, ByteBuf substr, int subStart, int subEnd)
public static int utf8CharLen(ByteBuf buffer, int idx)
public static int utf8CharLen(byte currentByte)
Copyright © 2022 The Apache Software Foundation. All rights reserved.