Ruby 4.1.0dev (2026-12-06 revision 6b501f5444cf675f4a654bda46c812e2c1df9fb8)
string_query.h
Go to the documentation of this file.
1
7#ifndef PRISM_STRING_QUERY_H
8#define PRISM_STRING_QUERY_H
9
12
13#include <stddef.h>
14#include <stdint.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
36
51PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_local(const uint8_t *source, size_t length, const char *encoding_name, size_t encoding_length, const char *version, size_t version_length) PRISM_NONNULL(1, 3);
52
67PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_constant(const uint8_t *source, size_t length, const char *encoding_name, size_t encoding_length, const char *version, size_t version_length) PRISM_NONNULL(1, 3);
68
83PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_method_name(const uint8_t *source, size_t length, const char *encoding_name, size_t encoding_length, const char *version, size_t version_length) PRISM_NONNULL(1, 3);
84
99PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_keyword(const uint8_t *source, size_t length, const char *encoding_name, size_t encoding_length, const char *version, size_t version_length) PRISM_NONNULL(1, 3);
100
101#ifdef __cplusplus
102}
103#endif
104
105#endif
#define PRISM_EXPORTED_FUNCTION
By default, we compile with -fvisibility=hidden.
Definition exported.h:20
#define PRISM_NONNULL(...)
Mark the parameters of a function as non-null.
Definition nonnull.h:13
PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_local(const uint8_t *source, size_t length, const char *encoding_name, size_t encoding_length, const char *version, size_t version_length) PRISM_NONNULL(1
Check that the slice is a valid local variable name.
pm_string_query_t
Represents the results of a slice query.
@ PM_STRING_QUERY_TRUE
Returned if the result of the slice query is true.
@ PM_STRING_QUERY_ERROR
Returned if the encoding given to a slice query was invalid.
@ PM_STRING_QUERY_FALSE
Returned if the result of the slice query is false.
@ PM_STRING_QUERY_ERROR_VERSION
Returned if the version given to a slice query was invalid.
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, size_t encoding_length, const char *version, size_t version_length) PRISM_NONNULL(1
Check that the slice is a valid method name.
PRISM_EXPORTED_FUNCTION pm_string_query_t PRISM_EXPORTED_FUNCTION pm_string_query_t PRISM_EXPORTED_FUNCTION pm_string_query_t PRISM_EXPORTED_FUNCTION pm_string_query_t pm_string_query_keyword(const uint8_t *source, size_t length, const char *encoding_name, size_t encoding_length, const char *version, size_t version_length) PRISM_NONNULL(1
Check that the slice is a keyword.
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, size_t encoding_length, const char *version, size_t version_length) PRISM_NONNULL(1
Check that the slice is a valid constant name.