CTRE Phoenix C++ 5.33.1
legacy_string_util.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3#include "ctre/phoenix/export.h"
4#include <stdint.h>
5#include <sstream>
6#include <deque>
7#include <vector>
8
9namespace ctre {
10 namespace phoenix {
11 namespace legacy_string_util {
12 CTREXPORT std::deque<std::string> string_split(const std::string& input, char delimiter);
13 CTREXPORT std::string toLower(const std::string& input);
14 CTREXPORT int strcmp_nocase(char const* a, char const* b);
15 CTREXPORT uint32_t safe_memcpy_(uint8_t* dest, const uint8_t* src, uint32_t numBytesToCopy, uint32_t capacity);
16 CTREXPORT uint32_t safe_memcpy_(uint8_t* dest, const uint8_t* src, int32_t numBytesToCopy, int32_t capacity);
17 CTREXPORT uint32_t safe_copyDoubles(double* dest, const double* src, int32_t numDoubles, int32_t capacityDoubles);
18 CTREXPORT uint32_t safe_copyDoubles(double* dest, const std::vector<double>& src, int32_t capacityDoubles);
19 CTREXPORT uint32_t safe_strlen(const char* s, int32_t maxsize);
20 CTREXPORT void safe_strcopy(std::string& dest, const char* src);
21 CTREXPORT char *strtok_next(char **str_ptr, char const *delimiters);
22 } // namespace legacy_string_util
23 } // namespace phoenix
24} // namespace ctre
CTREXPORT uint32_t safe_copyDoubles(double *dest, const double *src, int32_t numDoubles, int32_t capacityDoubles)
CTREXPORT void safe_strcopy(std::string &dest, const char *src)
CTREXPORT std::string toLower(const std::string &input)
CTREXPORT std::deque< std::string > string_split(const std::string &input, char delimiter)
CTREXPORT uint32_t safe_strlen(const char *s, int32_t maxsize)
CTREXPORT char * strtok_next(char **str_ptr, char const *delimiters)
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)
namespace ctre
Definition: paramEnum.h:5