code: public AsciiString[] split(char delim) {
          final List<AsciiString> res = InternalThreadLocalMap.get().arrayList();
  
          int start = 0;
          final int length = length();
          for (int i = start; i < length; i++) {
              if (charAt(i) == delim) {
                  if (start == i) {
                      res.add(EMPTY_STRING);
                  } else {
                      res.add(new AsciiString(value, start + arrayOffset(), i - start, false));
                  }
                  start = i + 1;
              }
          }
  
          if (start == 0) { // If no delimiter was found in the value
              res.add(this);
          } else {
              if (start != length) {
                  // Add the last element if it's not empty.
                  res.add(new AsciiString(value, start + arrayOffset(), length - start, false));
              } else {
                  // Truncate trailing empty elements.
                  for (int i = res.size() - 1; i >= 0; i--) {
                      if (res.get(i).isEmpty()) {
                          res.remove(i);
                      } else {
                          break;
                      }
                  }
              }
          }
  
          return res.toArray(new AsciiString[0]);
      }
docs: Splits the specified {@link String} with the specified delimiter..