starts_tag


Description:

[ Version ( since = "3.20" ) ]
public bool starts_tag (TextTag? tag)

Returns true if tag is toggled on at exactly this point.

If tag is null, returns true if any tag is toggled on at this point.

Note that if starts_tag returns true, it means that this is at the beginning of the tagged range, and that the character at this is inside the tagged range. In other words, unlike ends_tag, if starts_tag returns true, has_tag will also return true for the same parameters.

Parameters:

this

an iterator

tag

a TextTag, or null

Returns:

whether this is the start of a range tagged with tag