Searched refs:SafeSPrintf (Results 1 - 4 of 4) sorted by relevance
/external/libchrome/base/strings/ |
H A D | 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(bu [all...] |
H A D | 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(cha function in namespace:base::strings 239 inline ssize_t SafeSPrintf(char (&buf)[N], const char* fmt) { function in namespace:base::strings [all...] |
/external/libchrome/sandbox/linux/services/ |
H A D | namespace_utils.cc | 50 base::strings::SafeSPrintf(mapping, "%d %d 1\n", inside_id, outside_id);
|
/external/libchrome/base/metrics/ |
H A D | persistent_memory_allocator_unittest.cc | 736 strings::SafeSPrintf(filename, "memory_%d_A", filesize); 786 strings::SafeSPrintf(filename, "memory_%d_B", filesize);
|
Completed in 368 milliseconds