|
LMMS
|
Functions | |
| SERD_CONST_API const uint8_t *SERD_NONNULL | serd_strerror (SerdStatus status) |
| Return a string describing a status code. | |
| SERD_API size_t | serd_strlen (const uint8_t *SERD_NONNULL str, size_t *SERD_NULLABLE n_bytes, SerdNodeFlags *SERD_NULLABLE flags) |
| SERD_API double | serd_strtod (const char *SERD_NONNULL str, char *SERD_NONNULL *SERD_NULLABLE endptr) |
| SERD_API void *SERD_ALLOCATED | serd_base64_decode (const uint8_t *SERD_NONNULL str, size_t len, size_t *SERD_NONNULL size) |
| SERD_API void *SERD_ALLOCATED serd_base64_decode | ( | const uint8_t *SERD_NONNULL | str, |
| size_t | len, | ||
| size_t *SERD_NONNULL | size ) |
Decode a base64 string.
This function can be used to deserialise a blob node created with serd_node_new_blob().
| str | Base64 string to decode. |
| len | The length of str. |
| size | Set to the size of the returned blob in bytes. |
| SERD_CONST_API const uint8_t *SERD_NONNULL serd_strerror | ( | SerdStatus | status | ) |
Return a string describing a status code.
| SERD_API size_t serd_strlen | ( | const uint8_t *SERD_NONNULL | str, |
| size_t *SERD_NULLABLE | n_bytes, | ||
| SerdNodeFlags *SERD_NULLABLE | flags ) |
Measure a UTF-8 string.
| str | A null-terminated UTF-8 string. |
| n_bytes | (Output) Set to the size of str in bytes (except NULL). |
| flags | (Output) Set to the applicable flags. |
| SERD_API double serd_strtod | ( | const char *SERD_NONNULL | str, |
| char *SERD_NONNULL *SERD_NULLABLE | endptr ) |
Parse a string to a double.
The API of this function is identical to the standard C strtod function, except this function is locale-independent and always matches the lexical format used in the Turtle grammar (the decimal point is always ".").