MOS Source Code
|
String manipulation functions, similar to the ones in the C standard library. More...
Functions | |
MOSAPI size_t | strlen (const char *str) __pure |
MOSAPI size_t | strnlen (const char *, size_t) |
MOSAPI s32 | strcmp (const char *str1, const char *str2) |
MOSAPI s32 | strncmp (const char *str1, const char *str2, size_t n) |
MOSAPI s32 | strncasecmp (const char *str1, const char *str2, size_t n) |
MOSAPI void * | memcpy (void *__restrict dest, const void *__restrict src, size_t n) |
MOSAPI void * | memmove (void *dest, const void *src, size_t n) |
MOSAPI void * | memset (void *s, int c, size_t n) |
MOSAPI int | memcmp (const void *s1, const void *s2, size_t n) |
MOSAPI void | memzero (void *s, size_t n) |
MOSAPI void * | memchr (const void *m, int c, size_t n) |
MOSAPI char * | strcpy (char *__restrict dest, const char *__restrict src) |
MOSAPI char * | strcat (char *__restrict dest, const char *__restrict src) |
MOSAPI char * | strncpy (char *__restrict dest, const char *__restrict src, size_t n) |
MOSAPI char * | strdup (const char *src) |
MOSAPI char * | strndup (const char *src, size_t n) |
MOSAPI char * | strchr (const char *s, int c) |
MOSAPI char * | strrchr (const char *s, int c) |
MOSAPI size_t | strspn (const char *s, const char *accept) |
MOSAPI char * | strpbrk (const char *s, const char *accept) |
MOSAPI char * | strtok (char *str, const char *delim) |
MOSAPI char * | strtok_r (char *str, const char *delim, char **saveptr) |
String manipulation functions, similar to the ones in the C standard library.
Definition at line 8 of file mos_string.c.
Definition at line 16 of file mos_string.c.
Referenced by fdt_stringlist_count(), fdt_stringlist_get(), and fdt_stringlist_search().
Definition at line 24 of file mos_string.c.
Referenced by check_alltypes(), cmdline_get_option(), cmdline_is_falsy(), cmdline_is_truthy(), console_get(), cpio_i_iterate_dir(), cpio_mount(), cpio_read_metadata(), dentry_get_from_parent(), dentry_resolve_lastseg(), dentry_resolve_to_parent(), do_roundtrip(), find_entry(), hashmap_compare_string(), ipc_connect_to_server(), ipc_get_server(), ipc_server_create(), ipc_sysfs_lookup_ipc(), main(), main(), main(), MOS_SETUP(), print_property_value(), read_repeated_string(), read_repeated_submsg(), read_string(), read_submsg(), sysfs_fsop_mount(), test_foreach_stop_at_quux(), test_oneof_1(), test_oneof_2(), test_OneofMessage(), tmpfs_fsop_mount(), vfs_find_filesystem(), and vfs_mount().
Definition at line 32 of file mos_string.c.
Referenced by acpi_find_rsdp(), console_get_by_prefix(), cpio_i_iterate_dir(), cpio_read_metadata(), dentry_resolve_lastseg(), dentry_resolve_to_parent(), do_handle_sdt_header(), do_iterate_sdts(), elf_verify_header(), MOS_TEST_CASE(), and mos_test_engine_should_skip().
Definition at line 64 of file mos_string.c.
Definition at line 111 of file mos_string.c.
Referenced by callback(), fdt_finish(), fdt_move(), fdt_open_into(), fdt_packblocks_(), fdt_resize(), fdt_splice_(), MOS_TEST_CASE(), MOS_TEST_CASE(), MOS_TEST_CASE(), rand_protobuf_noise(), and string_unquote().
Definition at line 142 of file mos_string.c.
Referenced by check_alltypes(), fdt_find_string_(), fdt_node_offset_by_prop_value(), fdt_nodename_eq_(), fdt_string_eq_(), fdt_stringlist_contains(), fdt_stringlist_search(), main(), overlay_symbol_update(), read_double(), read_repeated_double(), test_TestMessage(), validate_pointer(), and validate_static().
Definition at line 173 of file mos_string.c.
Referenced by fdt_get_string(), fdt_nodename_eq_(), fdt_path_offset_namelen(), fdt_stringlist_contains(), overlay_fixup_phandle(), and overlay_symbol_update().
MOSAPI char * strcpy | ( | char *__restrict | dest, |
const char *__restrict | src ) |
Definition at line 184 of file mos_string.c.
Referenced by dentry_path(), dentry_resolve_to_parent(), do_encode(), encode_MyMessage2(), get_ansi_color(), listdir(), main(), and main().
MOSAPI char * strcat | ( | char *__restrict | dest, |
const char *__restrict | src ) |
Definition at line 192 of file mos_string.c.
Referenced by dentry_path(), and dentry_resolve_to_parent().
Definition at line 202 of file mos_string.c.
Referenced by do_syslog(), encode_dictionary(), ListFilesResponse_callback(), main(), main(), main(), and MOS_STATIC_ASSERT().
MOSAPI char * strdup | ( | const char * | src | ) |
Referenced by cmdline_dynamic_array_insert(), dentry_create(), dentry_path(), dentry_resolve_to_parent(), elf_fill_process(), ipc_connect_to_server(), ipc_server_create(), MOS_SETUP(), MOS_SETUP(), mos_start_kernel(), MOS_STATIC_ASSERT(), process_allocate(), process_do_execveat(), process_do_fork(), thread_new(), tmpfs_i_symlink(), and userfs_manager_register_filesystem().
Referenced by dirter_add(), register_sysfs_acpi_node(), and register_sysfs_acpi_rsdp().
Definition at line 236 of file mos_string.c.
Referenced by cpio_i_iterate_dir(), encode_dictionary(), mos_cmdline_init(), overlay_symbol_update(), strpbrk(), and strspn().
Definition at line 247 of file mos_string.c.
Referenced by fdt_get_name().
Definition at line 258 of file mos_string.c.
Referenced by strtok(), and strtok_r().
MOSAPI char * strpbrk | ( | const char * | s, |
const char * | accept ) |
Definition at line 270 of file mos_string.c.
Referenced by strtok(), and strtok_r().
MOSAPI char * strtok | ( | char * | str, |
const char * | delim ) |
Definition at line 281 of file mos_string.c.
Referenced by mos_test_engine_setup_skip_prefix_list().
MOSAPI char * strtok_r | ( | char * | str, |
const char * | delim, | ||
char ** | saveptr ) |
Definition at line 303 of file mos_string.c.
Referenced by dentry_resolve_to_parent().