ThingWorx C SDK
Functions
stringUtils.h File Reference

String utility function prototypes. More...

#include "string.h"

Go to the source code of this file.

Functions

char * lowercase (char *input)
 Converts a string to lowercase. More...
 
char * uppercase (char *input)
 Converts a string to uppercase. More...
 
char * duplicateString (const char *input)
 Copies a string. More...
 

Detailed Description

String utility function prototypes.

Function Documentation

char* duplicateString ( const char *  input)

Copies a string.

Parameters
[in]inputThe string to copy.
Returns
A copy of input.
Note
The calling function gains ownership of the returned string and retains ownership of the input string.
char* lowercase ( char *  input)

Converts a string to lowercase.

Parameters
[in]inputThe string to change to lowercase.
Returns
The lowercase format of input.
Note
The string is directly modified, not copied.
char* uppercase ( char *  input)

Converts a string to uppercase.

Parameters
[in]inputThe string to change to uppercase.
Returns
The uppercase format of input.
Note
The string is directly modified, not copied.