MOS Source Code
Loading...
Searching...
No Matches
libs.String

String manipulation functions, similar to the ones in the C standard library. More...

+ Collaboration diagram for libs.String:

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 voidmemcpy (void *__restrict dest, const void *__restrict src, size_t n)
 
MOSAPI voidmemmove (void *dest, const void *src, size_t n)
 
MOSAPI voidmemset (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 voidmemchr (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)
 

Detailed Description

String manipulation functions, similar to the ones in the C standard library.

Function Documentation

◆ strlen()

MOSAPI size_t strlen ( const char * str)

Definition at line 8 of file mos_string.c.

◆ strnlen()

MOSAPI size_t strnlen ( const char * str,
size_t n )

Definition at line 16 of file mos_string.c.

Referenced by fdt_stringlist_count(), fdt_stringlist_get(), and fdt_stringlist_search().

◆ strcmp()

◆ strncmp()

◆ strncasecmp()

MOSAPI s32 strncasecmp ( const char * str1,
const char * str2,
size_t n )

Definition at line 47 of file mos_string.c.

+ Here is the call graph for this function:

◆ memcpy()

MOSAPI void * memcpy ( void *__restrict dest,
const void *__restrict src,
size_t n )

Definition at line 64 of file mos_string.c.

◆ memmove()

◆ memset()

MOSAPI void * memset ( void * s,
int c,
size_t n )

Definition at line 134 of file mos_string.c.

◆ memcmp()

◆ memzero()

MOSAPI void memzero ( void * s,
size_t n )

Definition at line 153 of file mos_string.c.

◆ memchr()

◆ strcpy()

MOSAPI char * strcpy ( char *__restrict dest,
const char *__restrict src )

◆ strcat()

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().

◆ strncpy()

MOSAPI char * strncpy ( char *__restrict dest,
const char *__restrict src,
size_t n )

◆ strdup()

◆ strndup()

MOSAPI char * strndup ( const char * src,
size_t n )

◆ strchr()

MOSAPI char * strchr ( const char * s,
int c )

◆ strrchr()

MOSAPI char * strrchr ( const char * s,
int c )

Definition at line 247 of file mos_string.c.

Referenced by fdt_get_name().

◆ strspn()

MOSAPI size_t strspn ( const char * s,
const char * accept )

Definition at line 258 of file mos_string.c.

Referenced by strtok(), and strtok_r().

+ Here is the call graph for this function:

◆ strpbrk()

MOSAPI char * strpbrk ( const char * s,
const char * accept )

Definition at line 270 of file mos_string.c.

Referenced by strtok(), and strtok_r().

+ Here is the call graph for this function:

◆ strtok()

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().

+ Here is the call graph for this function:

◆ strtok_r()

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().

+ Here is the call graph for this function: