code: public static StringBuffer delete(StringBuffer target, int offset16) {
          int count = 1;
          switch (bounds(target, offset16)) {
          case LEAD_SURROGATE_BOUNDARY:
              count++;
              break;
          case TRAIL_SURROGATE_BOUNDARY:
              count++;
              offset16--;
              break;
          }
          target.delete(offset16, offset16 + count);
          return target;
      }
docs: Removes the codepoint at the specified position in this target (shortening target by 1
  character if the codepoint is a non-supplementary, 2 otherwise).
  
  @param target String buffer to remove codepoint from
  @param offset16 Offset which the codepoint will be removed
  @return a reference to target
  @exception IndexOutOfBoundsException Thrown if offset16 is invalid.