Namespaces | Functions
string_utilities.h File Reference

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

#include <locale>
#include <cstdint>
#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::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...
 
std::string string_utilities::trimString (std::string str)
 Removes trailing zeros from a string representing a float or double except for the first zero after the decimal point. 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 Thu Jun 23 2022 02:11:38