public static int codePointOffsetByByteOffset(byte[] stringBytes, int byteOffset) {
    if (byteOffset <= 0) {
      return 0;
    }
    return NonStrictUTF8Encoding.INSTANCE.strLength(stringBytes, 0, byteOffset);
  }
public static int codePointOffsetByByteOffset(byte[] stringBytes, int byteOffset)