• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • NameSuggester
  • NameSuggester Class

    Suggests unique names with a "name (N)" disambiguation scheme. More...

    Header: #include <NameSuggester>
    Since: 1.0

    Detailed Description

    Replaces ad-hoc "name copy", "name copy copy" patterns with a consistent, idempotent scheme:

    The base name is extracted by stripping a trailing " (N)" suffix when present, so duplicating an already-disambiguated item produces the next free index in the same family rather than appending another suffix.

    Conflicts are resolved by walking the counter forward until a free slot is found, so duplicating any member of a sparse family yields a name that is guaranteed not to collide with existing items.