libsnobol4 1.0.2
High-performance SNOBOL4-style pattern matching library
Loading...
Searching...
No Matches
type_fn.h
Go to the documentation of this file.
1
11
12#pragma once
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18
19#include <stdbool.h>
20#include "snobol/c23_compat.h"
21#include <stddef.h>
22
23/* --------------------------------------------------------------------------
24 * Numeric comparison helpers (for internal use in type_fn.c and PHP binding)
25 * -------------------------------------------------------------------------- */
33double snobol_str_to_double(const char *s, size_t len);
34
44bool snobol_eq(const char *a, size_t a_len, const char *b, size_t b_len);
45
54bool snobol_ne(const char *a, size_t a_len, const char *b, size_t b_len);
55
64bool snobol_lt(const char *a, size_t a_len, const char *b, size_t b_len);
65
74bool snobol_gt(const char *a, size_t a_len, const char *b, size_t b_len);
75
84bool snobol_le(const char *a, size_t a_len, const char *b, size_t b_len);
85
94bool snobol_ge(const char *a, size_t a_len, const char *b, size_t b_len);
95
105bool snobol_ident(const char *a, size_t a_len, const char *b, size_t b_len);
106
116bool snobol_differ(const char *a, size_t a_len, const char *b, size_t b_len);
117
127bool snobol_lexeq(const char *a, size_t a_len, const char *b, size_t b_len);
128
137bool snobol_lexlt(const char *a, size_t a_len, const char *b, size_t b_len);
138
147bool snobol_lexgt(const char *a, size_t a_len, const char *b, size_t b_len);
148
156bool snobol_integer(const char *str, size_t len);
157
167bool snobol_real(const char *str, size_t len);
168
176bool snobol_numeric(const char *str, size_t len);
177
178#ifdef __cplusplus
179}
180#endif
bool snobol_le(const char *a, size_t a_len, const char *b, size_t b_len)
double snobol_str_to_double(const char *s, size_t len)
bool snobol_real(const char *str, size_t len)
bool snobol_ident(const char *a, size_t a_len, const char *b, size_t b_len)
bool snobol_ne(const char *a, size_t a_len, const char *b, size_t b_len)
bool snobol_lexgt(const char *a, size_t a_len, const char *b, size_t b_len)
bool snobol_differ(const char *a, size_t a_len, const char *b, size_t b_len)
bool snobol_lexeq(const char *a, size_t a_len, const char *b, size_t b_len)
bool snobol_lt(const char *a, size_t a_len, const char *b, size_t b_len)
bool snobol_integer(const char *str, size_t len)
bool snobol_numeric(const char *str, size_t len)
bool snobol_gt(const char *a, size_t a_len, const char *b, size_t b_len)
bool snobol_eq(const char *a, size_t a_len, const char *b, size_t b_len)
bool snobol_ge(const char *a, size_t a_len, const char *b, size_t b_len)
bool snobol_lexlt(const char *a, size_t a_len, const char *b, size_t b_len)