Lines Matching defs:buf_size
1391 // A) MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size).
1406 int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...)
1411 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
1413 int w = vsnprintf(buf, buf_size, fmt, args);
1418 if (w == -1 || w >= (int)buf_size)
1419 w = (int)buf_size - 1;
1424 int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
1427 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
1429 int w = vsnprintf(buf, buf_size, fmt, args);
1433 if (w == -1 || w >= (int)buf_size)
1434 w = (int)buf_size - 1;
1633 int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_text_remaining)
1636 ImWchar* buf_end = buf + buf_size;
1668 static inline int ImTextCharToUtf8(char* buf, int buf_size, unsigned int c)
1677 if (buf_size < 2) return 0;
1688 if (buf_size < 4) return 0;
1697 if (buf_size < 3) return 0;
1721 int ImTextStrToUtf8(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end)
1724 const char* buf_end = buf + buf_size;