| Top |
| int | raptor_locator_print () |
| int | raptor_locator_format () |
| int | raptor_locator_line () |
| int | raptor_locator_column () |
| int | raptor_locator_byte () |
| const char * | raptor_locator_file () |
| const char * | raptor_locator_uri () |
int raptor_locator_print (raptor_locator *locator,FILE *stream);
Print a raptor locator to a stream.
int raptor_locator_format (char *buffer,size_t length,raptor_locator *locator);
Format a raptor locator as a string.
If buffer is NULL or length
is insufficient for the size of
the locator, returns the number of additional bytes required
in the buffer to write the locator. Writes a terminating '\0'.
buffer |
buffer to store format |
|
length |
size of buffer (excluding NUL) |
|
locator |
raptor_locator to format |
int
raptor_locator_line (raptor_locator *locator);
Get line number from locator.
int
raptor_locator_column (raptor_locator *locator);
Get column number from locator.
int
raptor_locator_byte (raptor_locator *locator);
Get the locator byte offset from locator.
const char *
raptor_locator_file (raptor_locator *locator);
Get file name from locator.
const char *
raptor_locator_uri (raptor_locator *locator);
Get URI from locator.
Returns a pointer to a shared string version of the URI in the locator. This must be copied if it is needed.
typedef struct {
raptor_uri *uri;
const char *file;
int line;
int column;
int byte;
} raptor_locator;
Location information for an error, warning or information message.
raptor_uri * |
URI of location (or NULL) |
|
Filename of location (or NULL) |
||
Line number of location (or <0 for no line) |
||
Column number of location (or <0 for no column) |
||
Byte number of location (or <0 for no byte) |