|
Serene Runtime 1.0.0
C runtime for the Serene programming language
|
#include "serene/rt/strings.h"#include "serene/rt/context.h"#include "serene/rt/core.h"#include "serene/rt/errors.h"#include "serene/utils.h"#include <string.h>Go to the source code of this file.
Functions | |
| size_t | srn_string_size (const srn_string_t *s) |
| size_t | srn_string_length (const srn_string_t *s) |
| srn_string_t * | srn_string_copy (srn_context_t *ctx, const srn_string_t *src) |
Copy the src string to dst string. | |
| bool | srn_string_is_empty (const srn_string_t *s) |
| srn_value_t * | srn_string_make (srn_context_t *ctx, srn_metadata_t *metadata, const char *src) |
| Create a string from a null terminated C string. | |
| bool | srn_string_eq (const srn_string_t *a, const srn_string_t *b) |
| srn_string_t * srn_string_copy | ( | srn_context_t * | ctx, |
| const srn_string_t * | src ) |
Copy the src string to dst string.
It's important to note that dst has to be allocated already
Definition at line 38 of file strings.c.
| bool srn_string_eq | ( | const srn_string_t * | a, |
| const srn_string_t * | b ) |
| bool srn_string_is_empty | ( | const srn_string_t * | s | ) |
| size_t srn_string_length | ( | const srn_string_t * | s | ) |
| srn_value_t * srn_string_make | ( | srn_context_t * | ctx, |
| srn_metadata_t * | metadata, | ||
| const char * | src ) |
Create a string from a null terminated C string.
IT HAS TO BE NULL TERMINATED
Definition at line 50 of file strings.c.
| size_t srn_string_size | ( | const srn_string_t * | s | ) |