Locator

## Locator Locator — Location information for errors, warnings and messages. |

## Functions

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 ()

## Types and Values

| raptor_locator

## Description

A small structure that can be optionally filled in when errors, warnings or other messages are generated and returned to user code.

## Functions

### raptor_locator_print ()

    int
    raptor_locator_print (raptor_locator *locator,
                          FILE *stream);

#### Returns

### raptor_locator_format ()

    int
    raptor_locator_format (char *buffer,
                           size_t length,
                           raptor_locator *locator);

#### Returns

### raptor_locator_line ()

    int
    raptor_locator_line (raptor_locator *locator);

#### Returns

### raptor_locator_column ()

    int
    raptor_locator_column (raptor_locator *locator);

#### Returns

### raptor_locator_byte ()

    int
    raptor_locator_byte (raptor_locator *locator);

#### Returns

### raptor_locator_file ()

    const char *
    raptor_locator_file (raptor_locator *locator);

#### Returns

### raptor_locator_uri ()

    const char *
    raptor_locator_uri (raptor_locator *locator);

#### Returns

## Types and Values

### raptor_locator

    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.

#### Members

raptor_uri *`uri`; | URI of location (or NULL) |
const char *`file`; | Filename of location (or NULL) |
int `line`; | Line number of location (or <0 for no line) |
int `column`; | Column number of location (or <0 for no column) |
int `byte`; | Byte number of location (or <0 for no byte) |