OEIsValidSVGGroupIdΒΆ

bool OEIsValidSVGGroupId(const std::string &id)

Returns whether the given string can be used as an SVG group identifier.

The rules of valid SVG group ids (OESVGClass) in OEDepict TK are:

  • It must start with an alphabetic character.
  • It must not contain any space characters.
  • It may contain alphanumeric character and - (hyphen), _ (underscore), ; (semi-colon) or . (period).

Note

The group id must be unique amongst all the ids in the document. This condition is not checked by the OEIsValidSVGGroupId function.