mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-13 15:57:36 +02:00
Added TODO
This commit is contained in:
parent
114e284566
commit
424592ad8b
1 changed files with 2 additions and 0 deletions
|
@ -2121,6 +2121,8 @@ object Cyc_string_ref(void *data, object str, object k)
|
|||
Cyc_rt_raise2(data, "string-ref - invalid index", k);
|
||||
}
|
||||
|
||||
TODO: we can take the fast path if num_cp == len, since that implies all chars are just 1 byte.
|
||||
would be the case for all string functions that need to be updated to be (possibly) O(n)
|
||||
{
|
||||
char_type codepoint;
|
||||
uint32_t state = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue