Lines Matching defs:count
84 int count;
117 #define SECUREC_PUTC(_c, _stream) ((--(_stream)->count >= 0) ? (*(_stream)->cur++ = (char)(_c)) : EOF)
121 #define SECUREC_PUTC_ZERO(_stream) ((--(_stream)->count >= 0) ? ((*(_stream)->cur++ = (char)('\0'))) : EOF)
135 #define SECUREC_PUTC(_c, _stream) ((--(_stream)->count >= 0) ? (*(_stream)->cur++ = (char)(_c)) : EOF)
138 #define SECUREC_PUTC_ZERO(_stream) ((--(_stream)->count >= 0) ? ((*(_stream)->cur++ = (char)('\0'))) : EOF)
155 int count = num;
156 while (count-- > 0) {
169 int count = len;
170 while (count-- > 0) {
251 _stream->count -= txtLen * (int)(sizeof(SecChar)); \
269 _stream->count -= txtLen * (int)(sizeof(SecChar)); \
277 _stream->count -= (int)(sizeof(SecChar)); \
288 _stream->count -= padLen * (int)(sizeof(SecChar)); \
293 /* The count variable can be reduced to 0, and the external function complements the \0 terminator. */
294 #define SECUREC_IS_REST_BUF_ENOUGH(needLen) ((int)(stream->count - (int)needLen * (int)(sizeof(SecChar))) >= 0)
649 stream->count = -1;
1331 int count = textLen;
1332 while (count--) {
1352 int count = textLen;
1355 while (count > 0) {
1364 count -= retVal;
1408 int HiLogSecVsnprintfImpl(char *string, size_t count, bool isDebugMode, const char *format, va_list arglist)
1413 str.count = (int)count; /* this count include \0 character */
1419 } else if (str.count < 0) {
1421 string[count - 1] = 0;
1429 int HiLog_Printf(char *strDest, size_t destMax, size_t count, bool isDebugMode, const char *format, va_list arglist)
1434 (count > (SECUREC_STRING_MAX_LEN - 1) && count != (size_t)-1)) {
1442 if (destMax > count) {
1443 retVal = HiLogSecVsnprintfImpl(strDest, count + 1, isDebugMode, format, arglist);
1448 } else { /* destMax <= count */
1451 if (retVal == SECUREC_PRINTF_TRUNCATE && count == (size_t)-1) {