Parser & Formatter API¶
String parsing and formatting for interval sets.
Parser¶
from_string(std::string_view str)¶
Parses mathematical notation:
Supported Syntax:
- Intervals:
[a,b],(a,b),[a,b),(a,b] - Singletons:
{x} - Union:
∪,U,,(comma) - Infinity:
∞,-∞
Formatter¶
to_string()¶
Converts set to string representation: