xs_explode
- Синтаксис
-
stock xs_explode(const input[], output[][], delimiter, maxelems, elemsize) { new nIdx = 0; new nLen = 0; new copied = 0; while(nLen < strlen(input) && nIdx < maxelems) { copied = copyc(output[nIdx++], elemsize, input[nLen], delimiter); if (copied == elemsize) { // maybe it got force-stopped because of maxsize // so check whether we have to skip something if (input[nLen + copied] != delimiter && input[nLen + copied] != 0) { new found = xs_strchr(input[nLen + copied], delimiter); if (found == -1) break; copied += found; } } nLen += copied + 1; // +1: skip delimiter } return nIdx; }
Переменная | Описание |
---|---|
Нет агрументов |
- Описание
- This function has no description.