Skip to content

Setters

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

Setters

s_set

Synopsis

void s_set(String *str, void *newContent, S_TYPE type)

Description

The s_set() function edits the content of the str String pointer from newContent. newContent can either be a char pointer or a String pointer, depending on the value of type. s_set() does nothing if newContent is NULL.

s_upper

Synopsis

void s_upper(String *str)

Description

Upper case the content of str.

s_lower

Synopsis

void s_lower(String *str)

Description

Lower case the content of str.

s_reverse

Synopsis

void s_reverse(String *str)

Description

Reverses the content of str.

s_replace

Synopsis

void s_replace(String *str, char current, char new)

Description

Replaces the current character by new in str content.

Clone this wiki locally