MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / isProhibitedChar

Function isProhibitedChar

source/MRMesh/MRStringConvert.h:92–93  ·  view source on GitHub ↗

returns true if the given character is any of prohibited in filenames in any of OSes https://stackoverflow.com/q/1976007/7325599

Source from the content-addressed store, hash-verified

90/// returns true if the given character is any of prohibited in filenames in any of OSes
91/// https://stackoverflow.com/q/1976007/7325599
92[[nodiscard]] inline bool isProhibitedChar( char c )
93 { return c == '?' || c == '*' || c == '/' || c == '\\' || c == '"' || c == '<' || c == '>' || c == ':' || c == '|' || (unsigned)c < 32; }
94
95/// returns true if line contains at least one character (c) for which isProhibitedChar(c)==true
96[[nodiscard]] MRMESH_API bool hasProhibitedChars( const std::string& line );

Callers 2

hasProhibitedCharsFunction · 0.85
replaceProhibitedCharsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected