Home
last modified time | relevance | path

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

/external/chromium_org/base/strings/
Dsafe_sprintf.h178 BASE_EXPORT ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt,
196 ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, in SafeSNPrintf() function
204 return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); in SafeSNPrintf()
218 return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); in SafeSPrintf()
223 ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, in SafeSNPrintf() function
231 return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); in SafeSNPrintf()
245 return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); in SafeSPrintf()
250 ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, in SafeSNPrintf() function
258 return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); in SafeSNPrintf()
272 return internal::SafeSNPrintf(buf, N, fmt, arg_array, arraysize(arg_array)); in SafeSPrintf()
[all …]
Dsafe_sprintf_unittest.cc30 EXPECT_EQ(-1, SafeSNPrintf(buf, -1, "")); in TEST()
35 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, "")); in TEST()
40 EXPECT_EQ(0, SafeSNPrintf(buf, 1, "")); in TEST()
46 EXPECT_EQ(0, SafeSNPrintf(buf, 2, "")); in TEST()
68 EXPECT_EQ(-1, SafeSNPrintf(buf, -1, text)); in TEST()
72 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, text)); in TEST()
76 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 1, text)); in TEST()
83 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSNPrintf(buf, 2, text)); in TEST()
92 SafeSNPrintf(buf, sizeof(buf), text)); in TEST()
132 EXPECT_EQ(-1, SafeSNPrintf(buf, -1, fmt, ' ')); in TEST()
[all …]
Dsafe_sprintf.cc427 ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt, const Arg* args, in SafeSNPrintf() function
653 ssize_t SafeSNPrintf(char* buf, size_t sz, const char* fmt) { in SafeSNPrintf() function