OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SafeSNPrintf
(Results
1 - 3
of
3
) sorted by null
/external/chromium_org/base/strings/
safe_sprintf.h
37
//
SafeSNPrintf
() is an alternative function signature that can be used when
39
// always be used instead of
SafeSNPrintf
()
90
// SafeSPrintf() and
SafeSNPrintf
() mimic the behavior of snprintf() and they
114
// limited and known. On the other hand, if the parameters to
SafeSNPrintf
()
123
// size =
SafeSNPrintf
(buf, size, "Error message \"%s\"\n", err) + 1;
178
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,
204
return internal::
SafeSNPrintf
(buf, N, fmt, arg_array, arraysize(arg_array));
218
return internal::
SafeSNPrintf
(buf, N, fmt, arg_array, arraysize(arg_array));
223
ssize_t
SafeSNPrintf
(char* buf, size_t N, const char* fmt
[
all
...]
safe_sprintf_unittest.cc
30
EXPECT_EQ(-1,
SafeSNPrintf
(buf, -1, ""));
35
EXPECT_EQ(-1,
SafeSNPrintf
(buf, 0, ""));
40
EXPECT_EQ(0,
SafeSNPrintf
(buf, 1, ""));
46
EXPECT_EQ(0,
SafeSNPrintf
(buf, 2, ""));
51
// The same test using SafeSPrintf() instead of
SafeSNPrintf
().
68
EXPECT_EQ(-1,
SafeSNPrintf
(buf, -1, text));
72
EXPECT_EQ(-1,
SafeSNPrintf
(buf, 0, text));
76
EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1,
SafeSNPrintf
(buf, 1, text));
83
EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1,
SafeSNPrintf
(buf, 2, text));
92
SafeSNPrintf
(buf, sizeof(buf), text))
[
all
...]
safe_sprintf.cc
427
ssize_t
SafeSNPrintf
(char* buf, size_t sz, const char* fmt, const Arg* args,
653
ssize_t
SafeSNPrintf
(char* buf, size_t sz, const char* fmt) {
Completed in 512 milliseconds