Lines Matching defs:splitStr
2273 /* int bssplitscb (struct bStream * s, const_bstring splitStr,
2277 * divided by any of the characters in splitStr. An empty splitStr causes
2290 int bssplitscb (struct bStream * s, const_bstring splitStr,
2297 || splitStr == NULL || splitStr->slen < 0) return BSTR_ERR;
2301 if (splitStr->slen == 0) {
2306 buildCharField (&chrs, splitStr);
2339 /* int bssplitstrcb (struct bStream * s, const_bstring splitStr,
2343 * divided by the entire substring splitStr. An empty splitStr causes
2356 int bssplitstrcb (struct bStream * s, const_bstring splitStr,
2362 || splitStr == NULL || splitStr->slen < 0) return BSTR_ERR;
2364 if (splitStr->slen == 1) return bssplitscb (s, splitStr, cb, parm);
2368 if (splitStr->slen == 0) {
2380 if ((ret = binstr (buff, 0, splitStr)) >= 0) {
2383 i = ret + splitStr->slen;
2520 /* int bsplitscb (const_bstring str, const_bstring splitStr, int pos,
2524 * of the characters in splitStr. An empty splitStr causes the whole str to
2536 int bsplitscb (const_bstring str, const_bstring splitStr, int pos,
2542 || splitStr == NULL || splitStr->slen < 0) return BSTR_ERR;
2543 if (splitStr->slen == 0) {
2548 if (splitStr->slen == 1)
2549 return bsplitcb (str, splitStr->data[0], pos, cb, parm);
2551 buildCharField (&chrs, splitStr);
2564 /* int bsplitstrcb (const_bstring str, const_bstring splitStr, int pos,
2568 * substring splitStr. An empty splitStr causes the whole str to be
2580 int bsplitstrcb (const_bstring str, const_bstring splitStr, int pos,
2585 || splitStr == NULL || splitStr->slen < 0) return BSTR_ERR;
2587 if (0 == splitStr->slen) {
2594 if (splitStr->slen == 1)
2595 return bsplitcb (str, splitStr->data[0], pos, cb, parm);
2597 for (i=p=pos; i <= str->slen - splitStr->slen; i++) {
2598 if (0 == bstr__memcmp (splitStr->data, str->data + i, splitStr->slen)) {
2600 i += splitStr->slen;
2664 /* struct bstrList * bsplitstr (const_bstring str, const_bstring splitStr)
2667 * substring splitStr.
2669 struct bstrList * bsplitstr (const_bstring str, const_bstring splitStr) {
2685 if (bsplitstrcb (str, splitStr, 0, bscb, &g) < 0) {
2692 /* struct bstrList * bsplits (const_bstring str, bstring splitStr)
2695 * characters in splitStr. An empty splitStr causes a single entry bstrList
2698 struct bstrList * bsplits (const_bstring str, const_bstring splitStr) {
2702 splitStr == NULL || splitStr->slen < 0 || splitStr->data == NULL)
2716 if (bsplitscb (str, splitStr, 0, bscb, &g) < 0) {