Commit Graph
2 Commits
Author SHA1 Message Date
J. Nick Koston 63b5331e47 [core] Let StringRef carry a null pointer at zero length
The generated api messages start their encode only string fields that way. starts_with,
compare and str() no longer hand a null pointer to memcmp or the std::string range
constructor when there is nothing to compare or copy, the class comment states the
contract, and gtest cases pin every member on a null, empty view.
2026-09-08 03:14:44 +02:00
J. Nick Koston e58ba59288 [core] Add StringRef::starts_with (#18142) 2026-08-06 20:58:41 -05:00