Append Boundary Elements

@param array|string $multiPart

@return $this
186516
function addElements($multiPart)
    {
        if (! is_array($multiPart) )
            throw new \InvalidArgumentException(sprintf(
                'Accept array of Files; given: "%s".'
                , \Poirot\Std\flatten($multiPart)
            ));


        foreach($multiPart as $name => $element)
            $this->addElement($name, $element);
        
        $this->addElementDone();
        
        return $this;
    }
16016
function append(element, content) {
  if (isString(content)) {
    return element.insertAdjacentHTML('beforeEnd', content);
  } else {
    return element.appendChild(normalizeContent(content));
  }
}
727544
public function append($str)
    {
        $value = $this->val();
        $this->val($value . $str);

        return $this;
    }
1014694
public function append(string ...$pieces): self
    {
        $piece = implode($pieces);

        return self::make(sprintf('%s%s', $this->text, $piece));
    }
276680
function append() {
  var i, l = this.length, el, args = this.slice.call(arguments);
  function it(node, index) {
    // content elements to insert
    el.each(function(ins) {
      ins = (index < (l - 1)) ? ins.cloneNode(true) : ins;
      node.appendChild(ins);
    });
  }
  for(i = 0;i < args.length;i++) {
    // wrap content
    el = this.air(args[i]);
    // matched parent elements (targets)
    this.each(it);
  }
  return this;
}
1198779
public function append($s)
    {
        if ($s instanceof Buffer) {
            $s = $s->buffer;
        }
        $this->buffer .= $s;
        $this->length = strlen($this->buffer);
        return $this;
    }
174825
public function append(Box $b) : Box
    {
        if ($this->next === null && $b->prev === null) {
            $this->next = $b;
            $b->prev = $this;
        } else {
            $this->tail()->append($b->head());
        }
        return $this;
    }
783744
public function appendChild(Element $element)
	{
		$this->beforeInsert($element);
		
		array_push($this->children, $element);
		
		$this->afterInsert();
		
		return $this;
	}
515180
private function build_alternative_multipart() {
    $boundary =  "ba".md5(uniqid(time()));

    $multipart =  "Content-Type: multipart/alternative; boundary = $boundary\n\n";

    for($i = sizeof($this->altparts)-1; $i >= 0; $i--)
    {
      $multipart .=  "\n--$boundary\n".$this->build_message($this->altparts[$i]);
    }
    return $multipart.=  "\n--"."$boundary"."--\n";
  }
412531
def _build_multipart(cls, data):
        
        boundary = b'--------------GHSKFJDLGDS7543FJKLFHRE75642756743254'
        sep_boundary = b'\n--' + boundary
        end_boundary = sep_boundary + b'--'
        end_items = end_boundary, b"\n",
        builder = functools.partial(
            cls._build_part,
            sep_boundary=sep_boundary,
        )
        part_groups = map(builder, data.items())
        parts = itertools.chain.from_iterable(part_groups)
        body_items = itertools.chain(parts, end_items)
        content_type = 'multipart/form-data; boundary=%s' % boundary.decode('ascii')
        return b''.join(body_items), content_type
952114
public function append()
    {
        if (!$this->hasMultiHandle()) {
            $this->setMultiHandle(curl_multi_init());
        }

        // init
        $this
            ->initOption()
            ->buildBody();

        $curl = curl_init();
        curl_setopt_array($curl, $this->getOptions());
        curl_multi_add_handle($this->getMultiHandle(), $curl);

        $this->curls[] = $curl;
    }
508070
public function addRelatedPart( ezcMailPart $part  )
    {
        // it doesn't have a Content-ID, we must set one.
        $contentId = '';
        if ( $part->getHeader( 'Content-ID' ) == '' )
        {
            if ( $part instanceof ezcMailFile )
            {
                $part->contentId = ezcMailTools::generateContentId( basename( $part->fileName ) );
            }
            else
            {
                $part->setHeader( 'Content-ID', ezcMailTools::generateContentId( 'part' ) );
            }
        }
        $contentId = trim( $part->getHeader( 'Content-ID' ), '<>' );

        // Set the content ID property of the ezcMailFile if one was found
        if ( $part instanceof ezcMailFile )
        {
            $part->contentId = $contentId;
        }

        if ( count( $this->parts ) > 0 )
        {
            $this->parts[] = $part;
        }
        else
        {
            $this->parts[1] = $part;
        }
        return $contentId;
    }
1198447
def add_multipart_data(req, params)
      crlf = "\r\n"
      boundary = Time.now.to_i.to_s(16)
      req["Content-Type"] = "multipart/form-data; boundary=#{boundary}"
      body = ""
      params.each do |key,value|
        esc_key = CGI.escape(key.to_s)
        body << "--#{boundary}#{crlf}"
        if value.respond_to?(:read)
          body << "Content-Disposition: form-data; name=\"#{esc_key}\"; filename=\"#{File.basename(value.path)}\"#{crlf}"
          body << "Content-Type: image/jpeg#{crlf*2}"
          body << open(value.path, "rb") {|io| io.read}
        else
          body << "Content-Disposition: form-data; name=\"#{esc_key}\"#{crlf*2}#{value}"
        end
        body << crlf
      end
      body << "--#{boundary}--#{crlf*2}"
      req.body = body
      req["Content-Length"] = req.body.size
    end
605999
protected function insertIntoInternal($append)
    {
        $this->checkNode(false);
        $item = $this->owner->getAttribute($this->itemAttribute);

        if ($item !== null) {
            $path = $this->node->getAttribute($this->pathAttribute);
            $this->owner->setAttribute($this->pathAttribute, $path . $this->delimiter . $item);
        }

        $this->owner->setAttribute($this->depthAttribute, $this->node->getAttribute($this->depthAttribute) + 1);

        if ($this->treeAttribute !== null) {
            $this->owner->setAttribute($this->treeAttribute, $this->node->getAttribute($this->treeAttribute));
        }

        if ($this->sortable !== false) {
            if ($append) {
                $this->behavior->moveLast();
            } else {
                $this->behavior->moveFirst();
            }
        }
    }
373365
protected function boundarySplit($input, $boundary)
    {
        $tmp = explode('--' . $boundary, $input);

        for ($i = 1; $i < count($tmp)-1; $i++) {
            $parts[] = $tmp[$i];
        }

        return $parts;
    }
860646
public function appendToLastLine(string $part): void
  {
    $this->lines[count($this->lines) - 1] .= $part;
  }
156719
public static function createCompleteMultipartUploadXmlBody($listParts)
    {
        $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><CompleteMultipartUpload></CompleteMultipartUpload>');
        foreach ($listParts as $node) {
            $part = $xml->addChild('Part');
            $part->addChild('PartNumber', $node['PartNumber']);
            $part->addChild('ETag', $node['ETag']);
        }
        return $xml->asXML();
    }