Browse Source

Unicode typing minor fix

pull/30/head
Sami Vaarala 11 years ago
parent
commit
6d5769f20b
  1. 2
      src/duk_unicode.h
  2. 2
      src/duk_unicode_support.c

2
src/duk_unicode.h

@ -215,7 +215,7 @@ duk_small_int_t duk_unicode_is_line_terminator(duk_codepoint_t cp);
duk_small_int_t duk_unicode_is_identifier_start(duk_codepoint_t cp);
duk_small_int_t duk_unicode_is_identifier_part(duk_codepoint_t cp);
duk_small_int_t duk_unicode_is_letter(duk_codepoint_t cp);
void duk_unicode_case_convert_string(duk_hthread *thr, duk_small_int_t uppercase);
void duk_unicode_case_convert_string(duk_hthread *thr, duk_bool_t uppercase);
duk_codepoint_t duk_unicode_re_canonicalize_char(duk_hthread *thr, duk_codepoint_t cp);
duk_small_int_t duk_unicode_re_is_wordchar(duk_codepoint_t cp);

2
src/duk_unicode_support.c

@ -767,7 +767,7 @@ static duk_codepoint_t duk__case_transform_helper(duk_hthread *thr,
duk_codepoint_t cp,
duk_codepoint_t prev,
duk_codepoint_t next,
duk_small_int_t uppercase) {
duk_bool_t uppercase) {
duk_bitdecoder_ctx bd_ctx;
/* fast path for ASCII */

Loading…
Cancel
Save