OEIsValidSVGClassName

bool OEIsValidSVGClassName(const std::string &name)

Returns whether the given string can be used as an SVG class name.

The rules of valid SVG classes names (OESVGClass) in OEDepict TK are:

  • It must start with an alphabetic character.

  • It must not contain any space characters.

  • It may contain any alphanumeric characters, - (hyphen) and _ (underscore).

  • The size of the SVG class name should not exceed 64 characters.

Note

SVG class names starting with oedepict are reserved by OEDepict TK for internal usage.