class documentation
Helper class for generating hierarchical section numbers (e.g. '1.2.3.') with support for different numbering formats (numeric, uppercase, lowercase).
| Method | __init__ |
Initialise a new MySectionizer. |
| Method | __str__ |
Return a string representation of the current section number. |
| Method | clone |
Create and return a deep copy of this sectionizer. |
| Method | get |
Return the current nesting depth. |
| Method | process |
Update the section counter for the given nesting level. |
| Instance Variable | levelnfc |
Undocumented |
| Instance Variable | sections |
Undocumented |
Initialise a new MySectionizer.
| Parameters | |
| levelnfc:str | Numbering format code. Expected values are '0' for numeric sections (1.2.3), '1' for uppercase letters (A.B.C), and '2' for lowercase letters (a.b.c). |
Return a string representation of the current section number.
| Returns | |
| str | Section string (e.g. '1.2.3.') |