Browse Source

placeholder duk_char_code_at() API call

pull/2/head
Sami Vaarala 11 years ago
parent
commit
b6eb9fcbfd
  1. 4
      src/duk_api_string.c
  2. 1
      src/duktape.h

4
src/duk_api_string.c

@ -282,3 +282,7 @@ void duk_trim(duk_context *ctx, int index) {
duk_replace(ctx, index);
}
int duk_char_code_at(duk_context *ctx, int index, duk_size_t char_offset) {
/* FIXME: should share code with duk_bi_string_prototype_char_code_at */
DUK_ERROR((duk_hthread *) ctx, DUK_ERR_UNIMPLEMENTED_ERROR, "unimplemented");
}

1
src/duktape.h

@ -575,6 +575,7 @@ void duk_decode_string(duk_context *ctx, int index, duk_decode_char_function cal
void duk_map_string(duk_context *ctx, int index, duk_map_char_function callback, void *udata);
void duk_substring(duk_context *ctx, int index, duk_size_t start_offset, duk_size_t end_offset);
void duk_trim(duk_context *ctx, int index);
int duk_char_code_at(duk_context *ctx, int index, duk_size_t char_offset);
/*
* Ecmascript operators

Loading…
Cancel
Save