sun::parsing::RegexCapture

sun::parsing::RegexCapture

struct · Source (opens in a new tab)

struct sun::parsing::RegexCapture

A group match recorded during a scan.

The matched text is NOT stored; callers slice it from their own buffer via [start.offset, end.offset).

Public Functions

length

public · function · Source (opens in a new tab)

int sun::parsing::RegexCapture::length() const

Returns the length of the input span matched so far.

Public Fields

end

public · variable · Source (opens in a new tab)

sun::support::Position sun::parsing::RegexCapture::end

No documentation comment.

Related: sun::support::Position

groupIdx

public · variable · Source (opens in a new tab)

int sun::parsing::RegexCapture::groupIdx = -1

No documentation comment.

groupName

public · variable · Source (opens in a new tab)

const std::string* sun::parsing::RegexCapture::groupName = nullptr

No documentation comment.

groupNameNum

public · variable · Source (opens in a new tab)

int sun::parsing::RegexCapture::groupNameNum = -1

No documentation comment.

start

public · variable · Source (opens in a new tab)

sun::support::Position sun::parsing::RegexCapture::start

No documentation comment.

Related: sun::support::Position