Lines Matching refs:textlen
530 int textlen; /* property string length */
532 textlen = strlen(str) + 1;
534 textlen += strlen(PICO_PITCH_OPEN_TAG) + 5;
535 textlen += strlen(PICO_PITCH_CLOSE_TAG);
539 textlen += strlen(PICO_SPEED_OPEN_TAG) + 5;
540 textlen += strlen(PICO_SPEED_CLOSE_TAG);
545 textlen += strlen(PICO_VOLUME_OPEN_TAG) + 5;
546 textlen += strlen(PICO_VOLUME_CLOSE_TAG);
551 data = (char *) malloc( textlen ); /* allocate string */
555 memset(data, 0, textlen); /* clear it */
597 * @textlen - postion of last character to be searched
603 static int get_tok(const char * str , int pos, int textlen, int *tokstart, int *toklen)
608 while ((pos<textlen) && (strchr(seps,str[pos]) != NULL)) {
611 if (pos == textlen) {
617 while ((pos<textlen) && (strchr(seps,str[pos]) == NULL)) {
629 * @textlen - postion of last character to be searched in str
635 static int get_sub_tok(const char * str , int pos, int textlen, int *tokstart, int *toklen) {
639 if (pos == textlen) {
646 while ((pos < textlen) && (strchr(seps, str[pos]) != NULL)) {
649 if (pos == textlen) {
656 while ((pos < textlen) && (strchr(seps, str[pos]) == NULL)) {
659 if (pos == textlen) {
681 int textlen; /* input string length */
696 textlen = strlen(str) + 1;
699 //while ((pos<textlen) && (str[pos]!=0)) {
700 while (get_tok(str, pos, textlen, &tokstart, &toklen)) {
724 //while ((pos<textlen) && (str[pos]!=0)) {
725 while (get_tok (str, pos, textlen, &tokstart, &toklen)) {