Reckon 0.5.1-dev
A Tool to Count Logical Lines of Code
Loading...
Searching...
No Matches
RcnSourceText Struct Reference

A block of source text. More...

#include <reckon/reckon.h>

Data Fields

char * text
 The source text content, as a pointer to a byte array.
size_t size
 The size of the source text in bytes.

Detailed Description

A block of source text.

Holds a pointer to the text content and its size in bytes. The source text may or may not be null-terminated. A different type that is composed of this type may further define this explicitly. The text field may contain the bytes of text encoded in any of the supported encodings.

Field Documentation

◆ size

size_t RcnSourceText::size

The size of the source text in bytes.

If the text is null-terminated, the size does not include the terminating null byte.

◆ text

char* RcnSourceText::text

The source text content, as a pointer to a byte array.