Lines Matching defs:textLen
404 int textLen;
427 textLen = 1; /* only 1 wide character */
434 textLen = wctomb(buffer->str, wchar);
436 if (textLen < 0) {
444 textLen = 1;
449 return textLen;
462 int textLen;
481 for (textLen = 0; textLen < finalPrecision && *strEnd; textLen++) {
484 /* textLen now contains length in multibyte chars */
494 textLen = (int)(wStrEnd - formatBuf->wStr); /* in wchar_ts */
495 /* textLen now contains length in wide chars */
507 textLen = (int)(wStrEnd - formatBuf->wStr);
516 textLen = (int)strlen(formatBuf->str);
523 textLen = (int)(strEnd - formatBuf->str); /* length of the string */
528 return textLen;
556 int textLen; /* length of the text */
625 textLen = 0;
758 textLen = SecDecodeTypeC(&formatAttr, cValue, &formatBuf, &buffer);
759 if (textLen < 0) {
777 textLen = SecDecodeTypeS(&formatAttr, argPtr, &formatBuf);
887 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr,
890 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr,
893 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr,
896 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr, tmp);
903 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr,
906 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr,
909 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr,
912 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr, tmp);
921 if (textLen < 0) {
928 textLen; /* no padding ,this variable to calculate amount of padding */
1229 /* compute length of number,.if textLen > 0, then formatBuf.str must be in buffer.str */
1230 textLen = (int)((char *)&buffer.str[SECUREC_BUFFER_SIZE] - formatBuf.str);
1231 if (formatAttr.precision > textLen) {
1232 for (ii = 0; ii < formatAttr.precision - textLen; ++ii) {
1235 textLen = formatAttr.precision;
1240 (textLen == 0 || formatBuf.str[0] != '0')) {
1242 ++textLen; /* add a zero */
1268 if ((formatAttr.flags & SECUREC_FLAG_POINTER) && (0 == textLen)) {
1277 textLen = 5; /* Length of (nil) is 5 */
1282 padding = (formatAttr.fldWidth - textLen) - prefixLen;
1323 textLen = sizeof(WPRIVACY_STRING) / sizeof(wchar_t) - 1;
1326 textLen = strlen(PRIVACY_STRING);
1329 if (formatAttr.bufferIsWide && (textLen > 0)) {
1331 int count = textLen;
1344 if (SECUREC_IS_REST_BUF_ENOUGH(textLen)) {
1345 SECUREC_SAFE_WRITE_STR(formatBuf.str, textLen, stream, &charsOut);
1347 SECUREC_WRITE_STRING(formatBuf.str, textLen, stream, &charsOut);
1351 if (formatAttr.bufferIsWide == 0 && textLen > 0) {
1352 int count = textLen;
1367 if (SECUREC_IS_REST_BUF_ENOUGH(textLen)) {
1368 SECUREC_SAFE_WRITE_STR(formatBuf.wStr, textLen, stream,
1371 SECUREC_WRITE_STRING(formatBuf.wStr, textLen, stream, &charsOut);