20#ifndef SOPC_HELPER_STRING_H_
21#define SOPC_HELPER_STRING_H_
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
char * SOPC_strdup(const char *s)
Duplicate the given C string and return copy.
SOPC_ReturnStatus SOPC_strtouint8_t(const char *sz, uint8_t *n, int base, char cEnd)
Read a uint8_t from the string with strtoul.
int SOPC_strcmp_ignore_case_alt_end(const char *s1, const char *s2, char endCharacter)
Compare 2 string in a case-insensitive manner until endCharacter or '\0' character found....
SOPC_ReturnStatus SOPC_strtouint32_t(const char *sz, uint32_t *n, int base, char cEnd)
Read a uint32_t from the string with strtoul.
SOPC_ReturnStatus SOPC_StrConcat(const char *left, const char *right, char **str)
Concatenates the two given C strings.
int SOPC_strncmp_ignore_case(const char *s1, const char *s2, size_t size)
Compare 2 string in a case-insensitive manner. Comparison returns 0 if size characters were considere...
bool SOPC_strtouint(const char *data, size_t len, uint8_t width, void *dest)
Read an unsigned integer from the string with strtoull.
int SOPC_strcmp_ignore_case(const char *s1, const char *s2)
Compare 2 string in a case-insensitive manner. Comparison returns 0 if all characters are identical.
bool SOPC_strtodouble(const char *data, size_t len, uint8_t width, void *dest)
Read a double from the string with strtod.
bool SOPC_strtoint(const char *data, size_t len, uint8_t width, void *dest)
Read a signed integer from the string with strtoll.
SOPC_ReturnStatus SOPC_strtouint16_t(const char *sz, uint16_t *n, int base, char cEnd)
Read a uint16_t from the string with strtoul.