Lines Matching refs:current
948 zend_long current = 0, laststart = 0, lastspace = 0; in PHP_FUNCTION() local
981 for (current = 0; current < (zend_long)ZSTR_LEN(text); current++) { in PHP_FUNCTION()
982 if (ZSTR_VAL(text)[current] == breakchar[0]) { in PHP_FUNCTION()
983 laststart = lastspace = current + 1; in PHP_FUNCTION()
984 } else if (ZSTR_VAL(text)[current] == ' ') { in PHP_FUNCTION()
985 if (current - laststart >= linelength) { in PHP_FUNCTION()
986 ZSTR_VAL(newtext)[current] = breakchar[0]; in PHP_FUNCTION()
987 laststart = current + 1; in PHP_FUNCTION()
989 lastspace = current; in PHP_FUNCTION()
990 } else if (current - laststart >= linelength && laststart != lastspace) { in PHP_FUNCTION()
1013 for (current = 0; current < (zend_long)ZSTR_LEN(text); current++) { in PHP_FUNCTION()
1015 alloced += (size_t) (((ZSTR_LEN(text) - current + 1)/linelength + 1) * breakchar_len) + 1; in PHP_FUNCTION()
1017 chk = (size_t) ((ZSTR_LEN(text) - current)/linelength) + 1; in PHP_FUNCTION()
1021 if (ZSTR_VAL(text)[current] == breakchar[0] in PHP_FUNCTION()
1022 && current + breakchar_len < ZSTR_LEN(text) in PHP_FUNCTION()
1023 && !strncmp(ZSTR_VAL(text) + current, breakchar, breakchar_len)) { in PHP_FUNCTION()
1024 …memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart + breakchar… in PHP_FUNCTION()
1025 newtextlen += current - laststart + breakchar_len; in PHP_FUNCTION()
1026 current += breakchar_len - 1; in PHP_FUNCTION()
1027 laststart = lastspace = current + 1; in PHP_FUNCTION()
1032 else if (ZSTR_VAL(text)[current] == ' ') { in PHP_FUNCTION()
1033 if (current - laststart >= linelength) { in PHP_FUNCTION()
1034 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
1035 newtextlen += current - laststart; in PHP_FUNCTION()
1038 laststart = current + 1; in PHP_FUNCTION()
1041 lastspace = current; in PHP_FUNCTION()
1046 else if (current - laststart >= linelength in PHP_FUNCTION()
1048 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
1049 newtextlen += current - laststart; in PHP_FUNCTION()
1052 laststart = lastspace = current; in PHP_FUNCTION()
1058 else if (current - laststart >= linelength in PHP_FUNCTION()
1070 if (laststart != current) { in PHP_FUNCTION()
1071 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
1072 newtextlen += current - laststart; in PHP_FUNCTION()