Lines Matching refs:str

375 			char	*str = am(myself, val->val[i].length + 1);
377 if (str != 0) {
378 ret = ber_printf(ber, berstring, str);
379 free(str);
1675 char *str;
1684 str = nval[i].value;
1691 for (e = s; str[e] != '\0' && str[e] != delim; e++);
1693 * 'str[e]' is either a delimiter, or the concluding
1696 str[e] = '\0';
1698 newstr = strdup(&str[s]);
1727 * Match the format spec 'f[curf]' to the input value string 'str'.
1729 * If successful, returns the updated position in the value string 'str'.
1734 * str The value string we're scanning
1737 * fmtstart If non-zero on entry, skip characters in 'str' until we find
1739 * set to the start of the fmt element data (which will be 'str',
1744 scanMappingFormat(__nis_mapping_format_t *f, int curf, int nf, char *str,
1756 if (f == 0 || curf < 0 || nf <= 0 || str == 0)
1767 if (strchr(sepset, *str) != 0)
1768 return (str);
1799 tmpstr = str;
1824 len = (int)((long)start - (long)str);
1828 memcpy(*val, str, len);
1870 *fmtstart = str;
1881 *fmtstart = str;
1882 return (str);
1889 * string 'str'.
1894 next = str + strcspn(str, " \t");
1896 * Even if there is no whitespace in 'str',
1903 /* No match string in 'str' => failure */
1904 if ((next = strstr(str, mstr)) == 0)
1908 /* If 'fmtstart' == 0, we require 'next' == 'str' */
1909 if (fmtstart == 0 && next != str)
1915 str = (char *)((long)next + (long)strlen(mstr));
1919 for (; *str == ' ' || *str == '\t'; str++);
1921 return (str);
1927 for (next = str; *next != '\0'; next++) {
1944 str = next;
1948 if (*str >= f[curf].match.single.lo[i] &&
1949 *str <= f[curf].match.single.hi[i]) {
1958 str++;
1959 return (str);
1968 while ((next = scanMappingFormat(f, curf+1, nf, str, 0,
1980 str = next;
1991 *fmtstart = str;
1999 str = str + strcspn(str, sepset);
2000 *fmtstart = str;
2001 } else if (strchr(sepset, *str) == 0) {
2005 return (str);
2009 *fmtstart = str;
2010 return (str);
2015 str = str + strcspn(str, sepset);
2016 *fmtstart = str;
2017 return (str);
2020 if (strchr(sepset, *str) == 0)
2022 return (str);
2032 * Verify that the string 'str' matches the mapping format array 'f'.
2036 verifyMappingMatch(__nis_mapping_format_t *f, char *str) {
2048 str = scanMappingFormat(f, n, nf, str, 0, 0, 0);
2049 if (str == 0)
2053 return ((str != 0) ? 1 : 0);
2083 char *str, *valstr;
2163 str = inVal->val[i].value;
2164 if (str == 0)
2168 str = scanMappingFormat(f, n, nf, str, &valstr,
2170 if (str == 0)
2183 if (str == 0) {
2200 *outstr = str;
2254 char *str = nval[i].value;
2268 str = scanMappingFormat(f, n, nf, str, &newstr, 0, 0);
2269 if (str == 0)
2274 * *str should now be NUL, meaning we've reached the end of
2276 * If 'str' is NULL, there was an error, and if 'newstr' is
2279 if (str == 0 || *str != '\0' || newstr == 0 ||
2317 char *str = val->val[i].value;
2319 if (str == 0 || end <= 0)
2326 if (str[end-1] == '\0')
2328 if (end > 0 && str[end-1] == elide) {
2329 str[end-1] = '\0';