F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
StringUtils.hpp File Reference
#include <FpConfig.hpp>

Go to the source code of this file.

Namespaces

 Fw
 
 Fw::StringUtils
 

Enumerations

enum  Fw::StringUtils::StringToNumberStatus {
  Fw::StringUtils::SUCCESSFUL_CONVERSION , Fw::StringUtils::NULL_INPUT , Fw::StringUtils::INVALID_STRING , Fw::StringUtils::INVALID_BASE ,
  Fw::StringUtils::INVALID_NUMBER , Fw::StringUtils::INVALID_RANGE
}
 

Functions

char * Fw::StringUtils::string_copy (char *destination, const char *source, FwSizeType num)
 copy string with null-termination guaranteed More...
 
FwSizeType Fw::StringUtils::string_length (const CHAR *source, FwSizeType buffer_size)
 get the length of the source string More...
 
FwSignedSizeType Fw::StringUtils::substring_find (const CHAR *source_string, FwSizeType source_size, const CHAR *sub_string, FwSizeType sub_size)
 find the first occurrence of a substring More...
 
StringToNumberStatus Fw::StringUtils::string_to_number (const CHAR *input, FwSizeType buffer_size, U8 &output, char **next, U8 base=0)
 converts a string to a U8 More...
 
StringToNumberStatus Fw::StringUtils::string_to_number (const CHAR *input, FwSizeType buffer_size, I8 &output, char **next, U8 base=0)
 converts a string to a I8 More...
 
StringToNumberStatus Fw::StringUtils::string_to_number (const CHAR *input, FwSizeType buffer_size, F32 &output, char **next)
 converts a string to a F32 More...