mirror of
https://git.sr.ht/~lattis/muon
synced 2026-01-30 03:14:36 +00:00
20 lines
624 B
C
20 lines
624 B
C
#ifndef MUON_FUNCTIONS_STRING_H
|
|
#define MUON_FUNCTIONS_STRING_H
|
|
#include "functions/common.h"
|
|
|
|
enum format_cb_result {
|
|
format_cb_found,
|
|
format_cb_not_found,
|
|
format_cb_error,
|
|
format_cb_skip,
|
|
};
|
|
|
|
bool version_compare(struct workspace *wk, uint32_t err_node, const struct str *ver, obj cmp_arr, bool *res);
|
|
|
|
typedef enum format_cb_result ((*string_format_cb)(struct workspace *wk, uint32_t node, void *ctx, const struct str *key, uint32_t *elem));
|
|
|
|
bool string_format(struct workspace *wk, uint32_t err_node, obj str, obj *res, void *ctx, string_format_cb cb);
|
|
|
|
extern const struct func_impl_name impl_tbl_string[];
|
|
#endif
|