16#include "absl/status/status.h"
17#include "absl/strings/ascii.h"
18#include "absl/strings/string_view.h"
24 if (absl::ascii_isalpha(c)) {
28 if (c ==
'.' || absl::ascii_isdigit(c)) {
59 return absl::InvalidArgumentError(
"empty name invalid");
61 for (
int i = 0; i <
name.size(); ++i) {
64 <<
"invalid character: " <<
name[i] <<
" at index: " << i
68 return absl::OkStatus();
const std::string name
A name for logging purposes.
StatusBuilder InvalidArgumentErrorBuilder()