Skip to content

Comparators

Thomas Couacault edited this page Feb 12, 2018 · 8 revisions

Comparators

s_beginsWith

Synopsis

unsigned char *s_beginsWith(String *str, void *str2, S_TYPE type)

Description

Returns a boolean if str content begins with str2 content.

s_endsWith

Synopsis

unsigned char *s_endsWith(String *str, void *str2, S_TYPE type)

Description

Returns a boolean if str content ends with str2 content.

s_contains

Synopsis

char *s_contains(String *str, void *str2, S_TYPE type)

Description

Finds the first occurrence of the string str2 in str content. Returns a pointer to the beginning of the substring in str content.

s_equals

Synopsis

unsigned char *s_equals(String *str, void *str2, S_TYPE type)

Description

Returns a boolean if str content equals str2 content.

s_isNumeric

Synopsis

unsigned char *s_isNumeric(String *str)

Description

Returns a boolean if str contains only numeric characters.

s_isAlphaNumeric

Synopsis

unsigned char *s_isAlphaNumeric(String *str)

Description

Returns a boolean if str contains eather numeric characters or alphabetical characters or both.

Clone this wiki locally