MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / IsValidParamName

Method IsValidParamName

tests/gtest/gtest.h:11014–11026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11012 typedef ::std::vector<InstantiationInfo> InstantiationContainer;
11013
11014 static bool IsValidParamName(const std::string& name) {
11015 // Check for empty string
11016 if (name.empty())
11017 return false;
11018
11019 // Check for invalid characters
11020 for (std::string::size_type index = 0; index < name.size(); ++index) {
11021 if (!isalnum(name[index]) && name[index] != '_')
11022 return false;
11023 }
11024
11025 return true;
11026 }
11027
11028 const std::string test_suite_name_;
11029 CodeLocation code_location_;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected