Method | Usage |
---|
add_region
| Adds a region to internal regions store. |
update_region_start
| Creates a new region and sets its start index (by characters counted from beginning of the file) according to parser. |
update_region_end
| Creates a new region and sets its end index or if the region already exists, updates its end index. Index is counted by number of characters from beginning of the file. |
get_regions
| Returns a list of regions that enclose specified string area by start and end indices if supplied. If not supplied, returns a list of all regions defined in the rule file. The list of regions is ordered by distance of the region start index to the string area. |
get_region
| Returns a list of all TM1Region instances based on supplied region_name . |
get_region_start
| Returns lowest available start index of all TM1Region instances based on supplied region_name . |
get_region_end
| Returns highest available end index of all TM1Region instances based on supplied region_name . |