Home
last modified time | relevance | path

Searched refs:SafeSNPrintf (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/base/strings/
Dsafe_sprintf_unittest.cc34 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), "")); in TEST()
39 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, "")); in TEST()
44 EXPECT_EQ(0, SafeSNPrintf(buf, 1, "")); in TEST()
50 EXPECT_EQ(0, SafeSNPrintf(buf, 2, "")); in TEST()
72 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), text)); in TEST()
76 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, text)); in TEST()
80 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 1, text)); in TEST()
87 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 2, text)); in TEST()
96 SafeSNPrintf(buf, sizeof(buf), text)); in TEST()
136 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), fmt, ' ')); in TEST()
[all …]
Dsafe_sprintf.h207 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) { in SafeSNPrintf() function
225 return internal::SafeSNPrintf(buf, N, fmt, arg_array, sizeof...(args)); in SafeSNPrintf()
233 return internal::SafeSNPrintf(buf, N, fmt, arg_array, sizeof...(args)); in SafeSPrintf()
237 BASE_EXPORT ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt);
240 return SafeSNPrintf(buf, N, fmt); in SafeSPrintf()
Dsafe_sprintf.cc430 ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt, const Arg* args, in SafeSNPrintf() function
657 ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt) { in SafeSNPrintf() function