private void setCurrentPosition(int currentPosition) {
    this.currentPosition = currentPosition;
    currentCharPosition = currentPosition > 0
                          ? RegexUtil.codePointOffsetByByteOffset(myStringBytes, currentPosition)
                          : currentPosition;
  }
private void setCurrentPosition(int currentPosition)