code: private static boolean isWhitespace(byte biditype) {
          switch (biditype) {
              case LRE:
              case RLE:
              case LRO:
              case RLO:
              case PDF:
              case BN:
              case WS:
                  return true;
              default:
                  return false;
          }
      }
docs: Return true if the type is considered a whitespace type for the line break rules.