Namespaces | Functions
string_utilities.h File Reference

Declares lower-level string utility functions used when parsing messages. More...

#include <cstdint>
#include <locale>
#include <string>
Include dependency graph for string_utilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 string_utilities
 

Functions

bool string_utilities::containsSpace (const std::string str)
 Checks if a string contains spaces. More...
 
bool string_utilities::toDouble (const std::string &string, double &value)
 Interprets the contents of "string" as a floating point number of type double It stores the "string"'s value in "value" and returns whether or not all went well. More...
 
bool string_utilities::toFloat (const std::string &string, float &value)
 Interprets the contents of "string" as a floating point number of type float. More...
 
bool string_utilities::toInt32 (const std::string &string, int32_t &value, int32_t base=10)
 Interprets the contents of "string" as a floating point number of whatever integer type your system has that is exactly 32 bits. More...
 
int8_t string_utilities::toInt8 (const std::string &string, int8_t &value, int32_t base=10)
 Interprets the contents of "string" as a floating point number of whatever integer type your system has that is exactly 8 bits. More...
 
bool string_utilities::toUInt32 (const std::string &string, uint32_t &value, int32_t base=10)
 Interprets the contents of "string" as a floating point number of whatever unsigned integer type your system has that is exactly 32 bits. More...
 
uint8_t string_utilities::toUInt8 (const std::string &string, uint8_t &value, int32_t base=10)
 Interprets the contents of "string" as a floating point number of whatever unsigned integer type your system has that is exactly 8 bits. More...
 
std::string string_utilities::trimDecimalPlaces (double num)
 Trims decimal places to two. More...
 

Detailed Description

Declares lower-level string utility functions used when parsing messages.

Date
13/08/20

Definition in file string_utilities.h.



septentrio_gnss_driver
Author(s): Tibor Dome
autogenerated on Sat Mar 11 2023 03:12:56