| 260 | } |
| 261 | |
| 262 | STRING_TYPE as_string() const { |
| 263 | // std::string doesn't like to take a NULL pointer even with a 0 size. |
| 264 | return empty() ? STRING_TYPE() : STRING_TYPE(data(), size()); |
| 265 | } |
| 266 | |
| 267 | // Return the first/last character, UNDEFINED when StringPiece is empty. |
| 268 | char front() const { return *ptr_; } |
no test coverage detected