#include "mediapipe/framework/tool/validate_name.h"
#include <cstdint>
#include "absl/strings/escaping.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "absl/strings/str_split.h"
#include "mediapipe/framework/port/canonical_errors.h"
#include "mediapipe/framework/port/core_proto_inc.h"
#include "mediapipe/framework/port/logging.h"
#include "mediapipe/framework/port/ret_check.h"
#include "mediapipe/framework/port/source_location.h"
#include "mediapipe/framework/port/status_builder.h"
#include "mediapipe/framework/port/status_macros.h"
namespace mediapipe {
namespace tool {
#define MEDIAPIPE_NAME_REGEX …
#define MEDIAPIPE_NUMBER_REGEX …
#define MEDIAPIPE_TAG_REGEX …
#define MEDIAPIPE_TAG_AND_NAME_REGEX …
#define MEDIAPIPE_TAG_INDEX_NAME_REGEX …
#define MEDIAPIPE_TAG_INDEX_REGEX …
absl::Status GetTagAndNameInfo(
const proto_ns::RepeatedPtrField<ProtoString>& tags_and_names,
TagAndNameInfo* info) { … }
absl::Status SetFromTagAndNameInfo(
const TagAndNameInfo& info,
proto_ns::RepeatedPtrField<ProtoString>* tags_and_names) { … }
absl::Status ValidateName(const std::string& name) { … }
absl::Status ValidateNumber(const std::string& number) { … }
absl::Status ValidateTag(const std::string& tag) { … }
absl::Status ParseTagAndName(absl::string_view tag_and_name, std::string* tag,
std::string* name) { … }
absl::Status ParseTagIndexName(const std::string& tag_index_name,
std::string* tag, int* index,
std::string* name) { … }
absl::Status ParseTagIndex(const std::string& tag_index, std::string* tag,
int* index) { … }
#undef MEDIAPIPE_NAME_REGEX
#undef MEDIAPIPE_TAG_REGEX
#undef MEDIAPIPE_TAG_AND_NAME_REGEX
#undef MEDIAPIPE_TAG_INDEX_NAME_REGEX
#undef MEDIAPIPE_TAG_INDEX_REGEX
}
}