Lines Matching refs:wordlen
127 static char *str_dup(const char *wordbegin, int wordlen) in str_dup() argument
129 char *str = aos_zalloc(wordlen); in str_dup()
130 memcpy(str, wordbegin, wordlen); in str_dup()
131 str[wordlen] = '\0'; in str_dup()
162 static const char *get_next_word(const char *exp_str, const char **wordbegin, int *wordlen) in get_next_word() argument
171 *wordlen = 0; in get_next_word()
187 *wordlen = wlen + 1; in get_next_word()
190 *wordlen = wlen; in get_next_word()
207 *wordlen = 0; in get_next_word()
229 *wordlen = wlen; in get_next_word()
241 *wordlen = wlen; in get_next_word()
251 int wordlen; in lex_process() local
256 cur_pos = get_next_word(cur_pos, &wordbegin, &wordlen); in lex_process()
257 if (wordbegin == NULL || wordlen <= 0) { in lex_process()
275 cur_node->query = str_dup(wordbegin, wordlen); in lex_process()
290 cur_node->query = str_dup(wordbegin, wordlen); in lex_process()
296 cur_node->query_key = str_dup(wordbegin, wordlen); in lex_process()
299 cur_node->query_opt = str_dup(wordbegin, wordlen); in lex_process()
303 cur_node->query_value = str_dup(wordbegin, wordlen); in lex_process()
326 cur_node->path = str_dup(wordbegin, wordlen); in lex_process()
346 int wordlen;
354 cur_pos = get_next_word(cur_pos, &wordbegin, &wordlen);
360 char *ch = malloc(wordlen + 1);
361 memcpy(ch, wordbegin, wordlen);
362 ch[wordlen] = '\0';