Lines Matching defs:formatBuf

241             *--formatBuf.str = digits[_val % Base]; \
402 static int SecDecodeTypeC(SecFormatAttr *attr, unsigned int cValue, SecFormatBuf *formatBuf, SecBuffer *buffer)
426 formatBuf->wStr = buffer->wStr;
446 formatBuf->str = buffer->str;
452 static int SecDecodeTypeS(SecFormatAttr *attr, char *argPtr, SecFormatBuf *formatBuf)
468 formatBuf->str = argPtr;
477 if (formatBuf->str == NULL) { /* NULL passed, use special string */
478 formatBuf->str = strNullString;
480 strEnd = formatBuf->str;
486 if (formatBuf->wStr == NULL) { /* NULL passed, use special string */
487 formatBuf->wStr = wStrNullString;
490 wStrEnd = formatBuf->wStr;
494 textLen = (int)(wStrEnd - formatBuf->wStr); /* in wchar_ts */
499 if (formatBuf->wStr == NULL) { /* NULL passed, use special string */
500 formatBuf->wStr = wStrNullString;
503 wStrEnd = formatBuf->wStr;
507 textLen = (int)(wStrEnd - formatBuf->wStr);
509 if (formatBuf->str == NULL) { /* meet NULL, use special string */
510 formatBuf->str = strNullString;
516 textLen = (int)strlen(formatBuf->str);
519 strEnd = formatBuf->str;
523 textLen = (int)(strEnd - formatBuf->str); /* length of the string */
544 SecFormatBuf formatBuf;
557 int bufferSize = 0; /* size of formatBuf.str */
627 formatBuf.str = NULL;
758 textLen = SecDecodeTypeC(&formatAttr, cValue, &formatBuf, &buffer);
777 textLen = SecDecodeTypeS(&formatAttr, argPtr, &formatBuf);
797 formatBuf.str = buffer.str; /* output buffer for float string with default size */
829 formatBuf.str = floatBuf;
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);
1149 formatBuf.str = &buffer.str[SECUREC_BUFFER_SIZE];
1184 *--formatBuf.str = digits[n32Tmp % 10]; /* securec radix decimal is 10 */
1208 *--formatBuf.str = digits[digit];
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);
1233 *--formatBuf.str = '0';
1240 (textLen == 0 || formatBuf.str[0] != '0')) {
1241 *--formatBuf.str = '0';
1270 formatBuf.str = &buffer.str[SECUREC_BUFFER_SIZE - 1];
1271 *formatBuf.str-- = '\0';
1272 *formatBuf.str-- = ')';
1273 *formatBuf.str-- = 'l';
1274 *formatBuf.str-- = 'i';
1275 *formatBuf.str-- = 'n';
1276 *formatBuf.str = '(';
1322 formatBuf.wStr = WPRIVACY_STRING;
1325 formatBuf.str = PRIVACY_STRING;
1330 wchar_t *p = formatBuf.wStr;
1345 SECUREC_SAFE_WRITE_STR(formatBuf.str, textLen, stream, &charsOut);
1347 SECUREC_WRITE_STRING(formatBuf.str, textLen, stream, &charsOut);
1353 char *p = formatBuf.str;
1368 SECUREC_SAFE_WRITE_STR(formatBuf.wStr, textLen, stream,
1371 SECUREC_WRITE_STRING(formatBuf.wStr, textLen, stream, &charsOut);