mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 09:17:35 +02:00
string-length: return number of codepoints
This commit is contained in:
parent
96e5692cb9
commit
114e284566
1 changed files with 1 additions and 1 deletions
|
@ -2081,7 +2081,7 @@ object Cyc_string_append(void *data, object cont, int _argc, object str1, ...)
|
|||
object Cyc_string_length(void *data, object str)
|
||||
{
|
||||
Cyc_check_str(data, str);
|
||||
return obj_int2obj(string_len(str));
|
||||
return obj_int2obj(string_num_cp(str));
|
||||
}
|
||||
|
||||
object Cyc_string_set(void *data, object str, object k, object chr)
|
||||
|
|
Loading…
Add table
Reference in a new issue