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.

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

MOSAPI void * memmove ( void * dest,
const void * src,
size_t n )

◆ memset()

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

Definition at line 134 of file mos_string.c.

◆ memcmp()

MOSAPI int memcmp ( const void * s1,
const void * s2,
size_t n )

◆ memzero()

MOSAPI void memzero ( void * s,
size_t n )

Definition at line 153 of file mos_string.c.

◆ memchr()

MOSAPI void * memchr ( const void * m,
int c,
size_t n )

Definition at line 173 of file mos_string.c.

◆ 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_lookup_parent(), and dentry_path().

◆ 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.

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

+ Here is the call graph for this function: