Lines Matching refs:textLen

276     int textLen;  local
299 textLen = 1; /* only 1 wide character */
306 textLen = wctomb(buffer->str, wchar); local
308 if (textLen < 0) {
316 textLen = 1;
321 return textLen;
334 int textLen; local
353 for (textLen = 0; textLen < finalPrecision && *strEnd; textLen++) {
356 /* textLen now contains length in multibyte chars */
366 textLen = (int)(wStrEnd - formatBuf->wStr); /* in wchar_ts */
367 /* textLen now contains length in wide chars */
379 textLen = (int)(wStrEnd - formatBuf->wStr);
388 textLen = (int)strlen(formatBuf->str);
395 textLen = (int)(strEnd - formatBuf->str); /* length of the string */
401 return textLen;
422 int textLen; /* length of the text */ local
488 textLen = 0;
631 textLen = SecDecodeTypeC(&formatAttr, cValue, &formatBuf, &buffer);
632 if (textLen < 0) {
656 textLen = SecDecodeTypeS(&formatAttr, argPtr, &formatBuf);
775 textLen = SecIndirectSprintf(formatBuf.str, (char *)fltFmtStr,
778 textLen = SecIndirectSprintf(formatBuf.str, (char *)fltFmtStr,
781 textLen = SecIndirectSprintf(formatBuf.str, (char *)fltFmtStr,
784 textLen = SecIndirectSprintf(formatBuf.str, (char *)fltFmtStr, tmp);
791textLen = SecIndirectSprintf(formatBuf.str, (char *)fltFmtStr, formatAttr.fldWidth,
794textLen = SecIndirectSprintf(formatBuf.str, (char *)fltFmtStr, formatAttr.fldWidth,
797textLen = SecIndirectSprintf(formatBuf.str, (char *)fltFmtStr, formatAttr.precision,
800 textLen = SecIndirectSprintf(formatBuf.str, (char *)fltFmtStr, tmp);
811 if (textLen < 0) {
817 … formatAttr.fldWidth = textLen; /* no padding ,this variable to calculate amount of padding */
1129 … /* compute length of number,.if textLen > 0, then formatBuf.str must be in buffer.str */
1130 textLen = (int)((char *)&buffer.str[SECUREC_BUFFER_SIZE] - formatBuf.str);
1131 if (formatAttr.precision > textLen) {
1132 for (ii = 0; ii < formatAttr.precision - textLen; ++ii) {
1135 textLen = formatAttr.precision;
1139 … if ((formatAttr.flags & SECUREC_FLAG_FORCE_OCTAL) && (textLen == 0 || formatBuf.str[0] != '0')) {
1141 ++textLen; /* add a zero */
1172 if ((formatAttr.flags & SECUREC_FLAG_POINTER) && (0 == textLen)) {
1181 textLen = 5;
1186 padding = (formatAttr.fldWidth - textLen) - prefixLen;
1224 if (formatAttr.bufferIsWide && (textLen > 0)) {
1226 int count = textLen;
1239 if (SECUREC_IS_REST_BUF_ENOUGH(textLen)) {
1240 SECUREC_SAFE_WRITE_STR(formatBuf.str, textLen, stream, &charsOut);
1242 SECUREC_WRITE_STRING(formatBuf.str, textLen, stream, &charsOut);
1246 if (formatAttr.bufferIsWide == 0 && textLen > 0) {
1247 int count = textLen;
1262 if (SECUREC_IS_REST_BUF_ENOUGH(textLen)) {
1263 … SECUREC_SAFE_WRITE_STR(formatBuf.wStr, textLen, stream, &charsOut); /* char * cast to wchar * */
1265 SECUREC_WRITE_STRING(formatBuf.wStr, textLen, stream, &charsOut);