MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / IsLetterNumberOrUnderline

Function IsLetterNumberOrUnderline

oneflow/core/common/error_util.cpp:34–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34bool IsLetterNumberOrUnderline(char c) {
35 return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c == '_');
36}
37
38Maybe<std::string> ShortenMsg(std::string str) {
39 // 150 characters is the threshold

Callers 1

ShortenMsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected