Lines Matching refs:str
942 static char *get_key_attribute(struct space *space, char *str, char *res, size_t ressize)
947 attr = strchr(str, '{');
965 /* extract possible {attr} and move str behind it */
966 static char *get_format_attribute(struct space *space, char **str)
971 if (*str[0] == '{') {
972 pos = strchr(*str, '}');
978 attr = *str+1;
979 *str = pos+1;
980 dbg("attribute='%s', str='%s'", attr, *str);
985 /* extract possible format length and move str behind it*/
986 static int get_format_len(struct space *space, char **str)
991 if (isdigit(*str[0])) {
992 num = (int) strtoul(*str, &tail, 10);
994 *str = tail;
998 Perror(space, "format parsing error '%s'", *str);