diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-10 18:23:34 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-10 18:23:34 +0100 |
| commit | 1972eee6be452da55fc2f6eebc14eea043e42732 (patch) | |
| tree | ec128c33fd6d1648543d60b343c7317733a84bce /jq.pyx | |
| parent | fbc08f6ea80d36f86967d0f184a8d25ecaa9d314 (diff) | |
Document that jv_string_to_py_string does not consume its input
Diffstat (limited to 'jq.pyx')
| -rw-r--r-- | jq.pyx | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -475,6 +475,10 @@ def jq(object program): cdef unicode jv_string_to_py_string(jv value): + """Convert a jv string into a Python string. + + Does not consume its input.""" + cdef int length = jv_string_length_bytes(jv_copy(value)) cdef char* string_value = jv_string_value(value) return string_value[:length].decode("utf-8") |
