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

  /external/libchrome/base/strings/
safe_sprintf_unittest.cc 55 // The same test using SafeSPrintf() instead of SafeSNPrintf().
56 EXPECT_EQ(0, SafeSPrintf(buf, ""));
102 // The same test using SafeSPrintf() instead of SafeSNPrintf().
103 EXPECT_EQ(static_cast<ssize_t>(sizeof(text))-1, SafeSPrintf(buf, text));
110 EXPECT_EQ(1, SafeSPrintf(buf, "%%"));
111 EXPECT_EQ(2, SafeSPrintf(buf, "%%%%"));
112 EXPECT_EQ(2, SafeSPrintf(buf, "%%X"));
113 EXPECT_EQ(3, SafeSPrintf(buf, "%%%%X"));
115 EXPECT_EQ(1, SafeSPrintf(buf, "%"));
116 EXPECT_EQ(2, SafeSPrintf(buf, "%%%"))
    [all...]
safe_sprintf.h 33 // SafeSPrintf() is a type-safe and completely self-contained version of
37 // not dealing with fixed-sized buffers. When possible, SafeSPrintf() should
48 // and SafeSPrintf() instead returns an output string that expands only
55 // SafeSPrintf() aims to be as liberal as reasonably possible. Integer-like
74 // SafeSPrintf() does not support at this time.
83 // have little impact on other parts of SafeSPrintf() function.
89 // SafeSPrintf() and SafeSNPrintf() mimic the behavior of snprintf() and they
103 // like SafeSPrintf(buf, "%p %d", 1, 2) results in "%p 2"). See above for
108 // base::strings::SafeSPrintf(buf, "The answer: %2d", 42);
229 ssize_t SafeSPrintf(char (&buf)[N], const char* fmt, Args... args)
    [all...]
  /external/libchrome/base/metrics/
persistent_memory_allocator_unittest.cc 798 strings::SafeSPrintf(filename, "memory_%d_A", filesize);
849 strings::SafeSPrintf(filename, "memory_%d_B", filesize);

Completed in 146 milliseconds