Lines Matching defs:limit
57 for (std::size_t limit{0}; limit < limitMax; ++limit, offset = 0) {
60 // Ensure appending characters does not overrun the limit
61 offset = RTNAME(CharacterAppend1)(buffer, limit, offset, "abc", 3);
62 offset = RTNAME(CharacterAppend1)(buffer, limit, offset, "DE", 2);
63 ASSERT_LE(offset, limit) << "offset " << offset << ">" << limit;
65 // Ensure whitespace padding does not overrun limit, the string is still
66 // null-terminated, and string matches the expected value up to the limit.
67 RTNAME(CharacterPad1)(buffer, limit, offset);
68 EXPECT_EQ(buffer[limit], '\0')
69 << "buffer[" << limit << "]='" << buffer[limit] << "'";
70 buffer[limit] = buffer[limit] ? '\0' : buffer[limit];
71 ASSERT_EQ(std::memcmp(buffer, "abcDE ", limit), 0)
78 static constexpr std::size_t limit{2};
82 offset = RTNAME(CharacterAppend1)(buffer, limit, offset, "1234", bufferSize);
83 ASSERT_EQ(offset, limit) << "CharacterAppend1 did not halt at limit = "
84 << limit << ", but at offset = " << offset;