MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / isalpha

Function isalpha

simcore/framework/src/cli/cli.hpp:318–320  ·  view source on GitHub ↗

Verify that str consists of letters only

Source from the content-addressed store, hash-verified

316
317/// Verify that str consists of letters only
318inline bool isalpha(const std::string &str) {
319 return std::all_of(str.begin(), str.end(), [](char c) { return std::isalpha(c, std::locale()); });
320}
321
322/// Return a lower case version of a string
323inline std::string to_lower(std::string str) {

Callers 2

AsNumberWithUnitMethod · 0.85
validate_mappingMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected