Searched refs:textlen (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c406 static char *cli_completion_generator_ht(const char *text, int textlen, int *state, HashTable *ht, void **pData TSRMLS_DC) /* {{{ */ argument
417 if (!textlen || !strncmp(name, text, textlen)) {
432 static char *cli_completion_generator_var(const char *text, int textlen, int *state TSRMLS_DC) /* {{{ */ argument
436 tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, EG(active_symbol_table), NULL TSRMLS_CC);
446 static char *cli_completion_generator_ini(const char *text, int textlen, int *state TSRMLS_DC) /* {{{ */ argument
450 tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, EG(ini_directives), NULL TSRMLS_CC);
460 static char *cli_completion_generator_func(const char *text, int textlen, int *state, HashTable *ht TSRMLS_DC) /* {{{ */ argument
463 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func TSRMLS_CC);
472 static char *cli_completion_generator_class(const char *text, int textlen, in argument
484 cli_completion_generator_define(const char *text, int textlen, int *state, HashTable *ht TSRMLS_DC) argument
510 int textlen = strlen(text); local
[all...]
/PHP_TRUNK/ext/standard/
H A Dstring.c876 int textlen, breakcharlen = 1, newtextlen, chk; local
882 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lsb", &text, &textlen, &linelength, &breakchar, &breakcharlen, &docut) == FAILURE) {
886 if (textlen == 0) {
903 newtext = estrndup(text, textlen);
906 for (current = 0; current < textlen; current++) {
921 RETURN_STRINGL(newtext, textlen, 0);
925 chk = (int)(textlen/linelength + 1);
926 newtext = safe_emalloc(chk, breakcharlen, textlen + 1);
927 alloced = textlen + chk * breakcharlen + 1;
929 chk = textlen;
[all...]

Completed in 7 milliseconds