summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-07-31 10:29:56 +0100
committerDamien George <damien.p.george@gmail.com>2014-07-31 10:29:56 +0100
commit5f27a7e81135f7a7c0c75ee551fe0c6103048046 (patch)
treeb1ace62193da1a92e1458a758477dcb5c63700e3 /py/obj.h
parent94fbe9711a1179b3c4d0eb2e9822787d90231719 (diff)
downloadmicropython-5f27a7e81135f7a7c0c75ee551fe0c6103048046.tar.gz
micropython-5f27a7e81135f7a7c0c75ee551fe0c6103048046.zip
py: Add mp_obj_str_builder_end_with_len.
This allows to create str's with a smaller length than initially asked for.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index c391611c10..64ed061c8b 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -460,6 +460,7 @@ void mp_init_emergency_exception_buf(void);
// str
mp_obj_t mp_obj_str_builder_start(const mp_obj_type_t *type, uint len, byte **data);
mp_obj_t mp_obj_str_builder_end(mp_obj_t o_in);
+mp_obj_t mp_obj_str_builder_end_with_len(mp_obj_t o_in, mp_uint_t len);
bool mp_obj_str_equal(mp_obj_t s1, mp_obj_t s2);
uint mp_obj_str_get_hash(mp_obj_t self_in);
uint mp_obj_str_get_len(mp_obj_t self_in);