CTRE Phoenix C++ 5.33.1
ctre::phoenix::legacy_string_util Namespace Reference

Functions

CTREXPORT std::deque< std::string > string_split (const std::string &input, char delimiter)
 
CTREXPORT std::string toLower (const std::string &input)
 
CTREXPORT int strcmp_nocase (char const *a, char const *b)
 
CTREXPORT uint32_t safe_memcpy_ (uint8_t *dest, const uint8_t *src, uint32_t numBytesToCopy, uint32_t capacity)
 
CTREXPORT uint32_t safe_memcpy_ (uint8_t *dest, const uint8_t *src, int32_t numBytesToCopy, int32_t capacity)
 
CTREXPORT uint32_t safe_copyDoubles (double *dest, const double *src, int32_t numDoubles, int32_t capacityDoubles)
 
CTREXPORT uint32_t safe_copyDoubles (double *dest, const std::vector< double > &src, int32_t capacityDoubles)
 
CTREXPORT uint32_t safe_strlen (const char *s, int32_t maxsize)
 
CTREXPORT void safe_strcopy (std::string &dest, const char *src)
 
CTREXPORT char * strtok_next (char **str_ptr, char const *delimiters)
 

Function Documentation

◆ safe_copyDoubles() [1/2]

CTREXPORT uint32_t ctre::phoenix::legacy_string_util::safe_copyDoubles ( double *  dest,
const double *  src,
int32_t  numDoubles,
int32_t  capacityDoubles 
)

◆ safe_copyDoubles() [2/2]

CTREXPORT uint32_t ctre::phoenix::legacy_string_util::safe_copyDoubles ( double *  dest,
const std::vector< double > &  src,
int32_t  capacityDoubles 
)

◆ safe_memcpy_() [1/2]

CTREXPORT uint32_t ctre::phoenix::legacy_string_util::safe_memcpy_ ( uint8_t *  dest,
const uint8_t *  src,
int32_t  numBytesToCopy,
int32_t  capacity 
)

◆ safe_memcpy_() [2/2]

CTREXPORT uint32_t ctre::phoenix::legacy_string_util::safe_memcpy_ ( uint8_t *  dest,
const uint8_t *  src,
uint32_t  numBytesToCopy,
uint32_t  capacity 
)

◆ safe_strcopy()

CTREXPORT void ctre::phoenix::legacy_string_util::safe_strcopy ( std::string &  dest,
const char *  src 
)

◆ safe_strlen()

CTREXPORT uint32_t ctre::phoenix::legacy_string_util::safe_strlen ( const char *  s,
int32_t  maxsize 
)

◆ strcmp_nocase()

CTREXPORT int ctre::phoenix::legacy_string_util::strcmp_nocase ( char const *  a,
char const *  b 
)

◆ string_split()

CTREXPORT std::deque< std::string > ctre::phoenix::legacy_string_util::string_split ( const std::string &  input,
char  delimiter 
)

◆ strtok_next()

CTREXPORT char * ctre::phoenix::legacy_string_util::strtok_next ( char **  str_ptr,
char const *  delimiters 
)

◆ toLower()

CTREXPORT std::string ctre::phoenix::legacy_string_util::toLower ( const std::string &  input)