]> git.kaiwu.me - njs.git/commit
Added njs_vm_value_string_create() and njs_vm_value_string_create_chb().
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 21 Jan 2023 04:15:03 +0000 (20:15 -0800)
committerDmitry Volyntsev <xeioex@nginx.com>
Sat, 21 Jan 2023 04:15:03 +0000 (20:15 -0800)
commit4e741bb88f32c8d19a18d5727243d0201f0fce64
treee57c95f41a579cbb4fdac83a4b33c7e549407059
parentc834e639e0f47601fd93a7b22d93319d729825fd
Added njs_vm_value_string_create() and njs_vm_value_string_create_chb().

Unlike njs_vm_value_string_set() the new functions always check the
input string for a valid UTF8 and calculate UTF8 character length by
themselves.
src/njs.h
src/njs_chb.h
src/njs_json.c
src/njs_regexp.c
src/njs_string.c
src/njs_string.h
src/njs_vm.c
src/test/njs_unit_test.c