cosmo strsplit hdr

function [split, nsplit] = cosmo_strsplit(string, delim, varargin)