=proto duk_codepoint_t duk_char_code_at(duk_context *ctx, duk_idx_t index, duk_size_t char_offset); =stack [ ... str! ... ] =summary

Get the codepoint of a character at character offset char_offset of a string at index. If the value at index is not a string, an error is thrown. If char_offset is invalid (outside the string) a zero is returned.

=example printf("char code at char index 12: %ld\n", (long) duk_char_code_at(ctx, -3, 12)); =tags string