|
STATIC mp_obj_t | str_modulo_format (mp_obj_t pattern, size_t n_args, const mp_obj_t *args, mp_obj_t dict) |
|
STATIC mp_obj_t | mp_obj_new_bytes_iterator (mp_obj_t str, mp_obj_iter_buf_t *iter_buf) |
|
STATIC NORETURN void | bad_implicit_conversion (mp_obj_t self_in) |
|
void | mp_str_print_quoted (const mp_print_t *print, const byte *str_data, size_t str_len, bool is_bytes) |
|
STATIC void | str_print (const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) |
|
mp_obj_t | mp_obj_str_make_new (const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) |
|
STATIC mp_obj_t | bytes_make_new (const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, const mp_obj_t *args) |
|
const byte * | find_subbytes (const byte *haystack, size_t hlen, const byte *needle, size_t nlen, int direction) |
|
mp_obj_t | mp_obj_str_binary_op (mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in) |
|
const byte * | str_index_to_ptr (const mp_obj_type_t *type, const byte *self_data, size_t self_len, mp_obj_t index, bool is_slice) |
|
STATIC mp_obj_t | bytes_subscr (mp_obj_t self_in, mp_obj_t index, mp_obj_t value) |
|
STATIC mp_obj_t | str_join (mp_obj_t self_in, mp_obj_t arg) |
|
| MP_DEFINE_CONST_FUN_OBJ_2 (str_join_obj, str_join) |
|
mp_obj_t | mp_obj_str_split (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_split_obj, 1, 3, mp_obj_str_split) |
|
STATIC mp_obj_t | str_rsplit (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_rsplit_obj, 1, 3, str_rsplit) |
|
STATIC mp_obj_t | str_finder (size_t n_args, const mp_obj_t *args, int direction, bool is_index) |
|
STATIC mp_obj_t | str_find (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_find_obj, 2, 4, str_find) |
|
STATIC mp_obj_t | str_rfind (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_rfind_obj, 2, 4, str_rfind) |
|
STATIC mp_obj_t | str_index (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_index_obj, 2, 4, str_index) |
|
STATIC mp_obj_t | str_rindex (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_rindex_obj, 2, 4, str_rindex) |
|
STATIC mp_obj_t | str_startswith (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_startswith_obj, 2, 3, str_startswith) |
|
STATIC mp_obj_t | str_endswith (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_endswith_obj, 2, 3, str_endswith) |
|
STATIC mp_obj_t | str_uni_strip (int type, size_t n_args, const mp_obj_t *args) |
|
STATIC mp_obj_t | str_strip (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_strip_obj, 1, 2, str_strip) |
|
STATIC mp_obj_t | str_lstrip (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_lstrip_obj, 1, 2, str_lstrip) |
|
STATIC mp_obj_t | str_rstrip (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_rstrip_obj, 1, 2, str_rstrip) |
|
STATIC const char * | str_to_int (const char *str, const char *top, int *num) |
|
STATIC bool | isalignment (char ch) |
|
STATIC bool | istype (char ch) |
|
STATIC bool | arg_looks_integer (mp_obj_t arg) |
|
STATIC bool | arg_looks_numeric (mp_obj_t arg) |
|
STATIC mp_obj_t | arg_as_int (mp_obj_t arg) |
|
STATIC NORETURN void | terse_str_format_value_error (void) |
|
STATIC vstr_t | mp_obj_str_format_helper (const char *str, const char *top, int *arg_i, size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) |
|
mp_obj_t | mp_obj_str_format (size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) |
|
| MP_DEFINE_CONST_FUN_OBJ_KW (str_format_obj, 1, mp_obj_str_format) |
|
STATIC mp_obj_t | str_replace (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_replace_obj, 3, 4, str_replace) |
|
STATIC mp_obj_t | str_count (size_t n_args, const mp_obj_t *args) |
|
| MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (str_count_obj, 2, 4, str_count) |
|
STATIC mp_obj_t | str_caseconv (unichar(*op)(unichar), mp_obj_t self_in) |
|
STATIC mp_obj_t | str_lower (mp_obj_t self_in) |
|
| MP_DEFINE_CONST_FUN_OBJ_1 (str_lower_obj, str_lower) |
|
STATIC mp_obj_t | str_upper (mp_obj_t self_in) |
|
| MP_DEFINE_CONST_FUN_OBJ_1 (str_upper_obj, str_upper) |
|
STATIC mp_obj_t | str_uni_istype (bool(*f)(unichar), mp_obj_t self_in) |
|
STATIC mp_obj_t | str_isspace (mp_obj_t self_in) |
|
| MP_DEFINE_CONST_FUN_OBJ_1 (str_isspace_obj, str_isspace) |
|
STATIC mp_obj_t | str_isalpha (mp_obj_t self_in) |
|
| MP_DEFINE_CONST_FUN_OBJ_1 (str_isalpha_obj, str_isalpha) |
|
STATIC mp_obj_t | str_isdigit (mp_obj_t self_in) |
|
| MP_DEFINE_CONST_FUN_OBJ_1 (str_isdigit_obj, str_isdigit) |
|
STATIC mp_obj_t | str_isupper (mp_obj_t self_in) |
|
| MP_DEFINE_CONST_FUN_OBJ_1 (str_isupper_obj, str_isupper) |
|
STATIC mp_obj_t | str_islower (mp_obj_t self_in) |
|
| MP_DEFINE_CONST_FUN_OBJ_1 (str_islower_obj, str_islower) |
|
mp_int_t | mp_obj_str_get_buffer (mp_obj_t self_in, mp_buffer_info_t *bufinfo, mp_uint_t flags) |
|
STATIC | MP_DEFINE_CONST_DICT (str8_locals_dict, str8_locals_dict_table) |
|
STATIC mp_obj_t | mp_obj_new_str_iterator (mp_obj_t str, mp_obj_iter_buf_t *iter_buf) |
|
mp_obj_t | mp_obj_new_str_of_type (const mp_obj_type_t *type, const byte *data, size_t len) |
|
mp_obj_t | mp_obj_new_str_from_vstr (const mp_obj_type_t *type, vstr_t *vstr) |
|
mp_obj_t | mp_obj_new_str (const char *data, size_t len, bool make_qstr_if_not_already) |
|
mp_obj_t | mp_obj_str_intern (mp_obj_t str) |
|
mp_obj_t | mp_obj_new_bytes (const byte *data, size_t len) |
|
bool | mp_obj_str_equal (mp_obj_t s1, mp_obj_t s2) |
|
qstr | mp_obj_str_get_qstr (mp_obj_t self_in) |
|
const char * | mp_obj_str_get_str (mp_obj_t self_in) |
|
const char * | mp_obj_str_get_data (mp_obj_t self_in, size_t *len) |
|
const byte * | mp_obj_str_get_data_no_check (mp_obj_t self_in, size_t *len) |
|
STATIC mp_obj_t | str_it_iternext (mp_obj_t self_in) |
|
STATIC mp_obj_t | bytes_it_iternext (mp_obj_t self_in) |
|