Prism Ruby parser
Loading...
Searching...
No Matches
string_query.h
Go to the documentation of this file.
1
7#ifndef PRISM_STRING_QUERY_H
8#define PRISM_STRING_QUERY_H
9
10#include "prism/compiler/exported.h"
11#include "prism/compiler/nonnull.h"
12
13#include <stddef.h>
14#include <stdint.h>
15
29
39PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_local(const uint8_t *source, size_t length, const char *encoding_name) PRISM_NONNULL(1, 3);
40
50PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_constant(const uint8_t *source, size_t length, const char *encoding_name) PRISM_NONNULL(1, 3);
51
61PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_method_name(const uint8_t *source, size_t length, const char *encoding_name) PRISM_NONNULL(1, 3);
62
63#endif
PRISM_EXPORTED_FUNCTION pm_string_query_t PRISM_EXPORTED_FUNCTION pm_string_query_t PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_method_name(const uint8_t *source, size_t length, const char *encoding_name) PRISM_NONNULL(1
Check that the slice is a valid method name.
PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_local(const uint8_t *source, size_t length, const char *encoding_name) PRISM_NONNULL(1
Check that the slice is a valid local variable name.
pm_string_query_t
Represents the results of a slice query.
Definition string_query.h:19
@ PM_STRING_QUERY_TRUE
Returned if the result of the slice query is true.
Definition string_query.h:27
@ PM_STRING_QUERY_ERROR
Returned if the encoding given to a slice query was invalid.
Definition string_query.h:21
@ PM_STRING_QUERY_FALSE
Returned if the result of the slice query is false.
Definition string_query.h:24
PRISM_EXPORTED_FUNCTION pm_string_query_t PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_constant(const uint8_t *source, size_t length, const char *encoding_name) PRISM_NONNULL(1
Check that the slice is a valid constant name.