9#include "mjs_internal.h"
10#include "mjs_string_public.h"
12#if defined(__cplusplus)
20#define _MJS_STRING_BUF_RESERVE 100
22MJS_PRIVATE
unsigned long cstr_to_ulong(
const char* s,
size_t len,
int* ok);
23MJS_PRIVATE mjs_err_t str_to_ulong(
struct mjs*
mjs, mjs_val_t v,
int* ok,
unsigned long* res);
24MJS_PRIVATE
int s_cmp(
struct mjs*
mjs, mjs_val_t a, mjs_val_t b);
25MJS_PRIVATE mjs_val_t s_concat(
struct mjs*
mjs, mjs_val_t a, mjs_val_t b);
27MJS_PRIVATE
void embed_string(
34MJS_PRIVATE
void mjs_mkstr(
struct mjs*
mjs);
36MJS_PRIVATE
void mjs_string_to_lower_case(
struct mjs*
mjs);
37MJS_PRIVATE
void mjs_string_to_upper_case(
struct mjs*
mjs);
38MJS_PRIVATE
void mjs_string_slice(
struct mjs*
mjs);
39MJS_PRIVATE
void mjs_string_index_of(
struct mjs*
mjs);
40MJS_PRIVATE
void mjs_string_char_code_at(
struct mjs*
mjs);
42#define EMBSTR_ZERO_TERM 1
43#define EMBSTR_UNESCAPE 2
45#if defined(__cplusplus)