You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
486 B

=proto
int duk_char_code_at(duk_context *ctx, int index, size_t char_offset);
=stack
[ ... str! ... ]
=summary
<p>Get the codepoint of a character at character offset <code>char_offset</code>
of a string at <code>index</code>. If the value at <code>index</code> is not
a string, an error is thrown. If <code>char_offset</code> is invalid (outside
the string) a zero is returned.</p>
=example
printf("char code at char index 12: %d\n", duk_char_code_at(ctx, -3, 12));
=tags
string