HomeSort by relevance Sort by last modified time
    Searched refs:SafeSNPrintf (Results 1 - 3 of 3) sorted by null

  /external/libchrome/base/strings/
safe_sprintf.h 36 // SafeSNPrintf() is an alternative function signature that can be used when
38 // always be used instead of SafeSNPrintf()
89 // SafeSPrintf() and SafeSNPrintf() mimic the behavior of snprintf() and they
113 // limited and known. On the other hand, if the parameters to SafeSNPrintf()
122 // size = SafeSNPrintf(buf, size, "Error message \"%s\"\n", err) + 1;
207 BASE_EXPORT ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt,
221 ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, Args... args) {
225 return internal::SafeSNPrintf(buf, N, fmt, arg_array, sizeof...(args));
233 return internal::SafeSNPrintf(buf, N, fmt, arg_array, sizeof...(args));
237 BASE_EXPORT ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt)
    [all...]
safe_sprintf_unittest.cc 34 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), ""));
39 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, ""));
44 EXPECT_EQ(0, SafeSNPrintf(buf, 1, ""));
50 EXPECT_EQ(0, SafeSNPrintf(buf, 2, ""));
55 // The same test using SafeSPrintf() instead of SafeSNPrintf().
72 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), text));
76 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, text));
80 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 1, text));
87 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 2, text));
96 SafeSNPrintf(buf, sizeof(buf), text))
    [all...]
safe_sprintf.cc 430 ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt, const Arg* args,
657 ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt) {

Completed in 65 milliseconds