Lines Matching defs:str
1893 * Right-justify <str> so that it contains no more than
1894 * <size> characters. If <str> contains fewer than <size>
1896 * in <str> will be ignored.
1898 * If the leftmost digit in <str> is not a digit, <fill>
1901 static void rightjust(char *str, int size, int fill)
1905 n = strlen(str);
1908 for(cp=str+n;n && *--cp == ' ';n--);
1913 *(str+n) = 0;
1914 for (sp = str, cp = str+n-size; sp <= str+size; *sp++ = *cp++);
1917 else *(sp = str+size) = 0;
1920 while (sp > str)
1929 if(!isdigit(*str))
1931 while(sp>str)
1945 static int ja_size(char *str,int size,int type)
1947 register char *cp = str;
1984 n -= (ja_size(str,size,0)-size);
2753 register char *str;
2771 str = nv_refsub(np);
2773 if(str)
2774 nv_putsub(np,str,0L);
2817 else if((str=nv_getval(np)) && *str!=0)
2819 if(nv_isattr(np,NV_LJUST|NV_RJUST) || (*str=='0' && !(str[1]=='x'||str[1]=='X')))
2821 while(*str=='0')
2822 str++;
2824 r = sh_arith(shp,str);