@Private
@Unstable
public class UTF8ByteArrayUtils
extends java.lang.Object
| Constructor | Description |
|---|---|
UTF8ByteArrayUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
findByte(byte[] utf,
int start,
int end,
byte b) |
Find the first occurrence of the given byte b in a UTF-8 encoded string
|
static int |
findBytes(byte[] utf,
int start,
int end,
byte[] b) |
Find the first occurrence of the given bytes b in a UTF-8 encoded string
|
static int |
findNthByte(byte[] utf,
byte b,
int n) |
Find the nth occurrence of the given byte b in a UTF-8 encoded string
|
static int |
findNthByte(byte[] utf,
int start,
int length,
byte b,
int n) |
Find the nth occurrence of the given byte b in a UTF-8 encoded string
|
public static int findByte(byte[] utf,
int start,
int end,
byte b)
utf - a byte array containing a UTF-8 encoded stringstart - starting offsetend - ending positionb - the byte to findpublic static int findBytes(byte[] utf,
int start,
int end,
byte[] b)
utf - a byte array containing a UTF-8 encoded stringstart - starting offsetend - ending positionb - the bytes to findpublic static int findNthByte(byte[] utf,
int start,
int length,
byte b,
int n)
utf - a byte array containing a UTF-8 encoded stringstart - starting offsetlength - the length of byte arrayb - the byte to findn - the desired occurrence of the given bytepublic static int findNthByte(byte[] utf,
byte b,
int n)
utf - a byte array containing a UTF-8 encoded stringb - the byte to findn - the desired occurrence of the given byteCopyright © 2008–2025 Apache Software Foundation. All rights reserved.