COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
stringlib.h File Reference

stringlib include file A library providing functions for handling various types of string. More...

#include "support/configCosmos.h"
#include "support/jsonobject.h"
#include <errno.h>
#include <string>
#include <sstream>
Include dependency graph for stringlib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StringParser
 

Functions

vector< string > string_split (string in, string delimeters)
 Parse a string. More...
 
uint16_t string_parse (char *string, char *words[], uint16_t wmax)
 Parse a string into words. More...
 
int string_cmp (const char *wild, const char *string)
 
string to_hex_string (vector< uint8_t > buffer, bool ascii)
 
string to_string (char *value)
 
string to_hex (int64_t value, uint16_t digits, bool zerofill)
 
string to_signed (int64_t value, uint16_t digits, bool zerofill)
 
string to_unsigned (uint64_t value, uint16_t digits, bool zerofill)
 
string to_double (double value, uint16_t precision)
 
string to_mjd (double value)
 
string to_temperature (double value, char units, uint8_t precision)
 
string to_angle (double value, char units, uint8_t precision)
 
string to_bool (bool value)
 
string to_json (string key, string value)
 
string to_json (string key, double value)
 
string to_json (string key, int64_t value)
 
string to_json (string key, int32_t value)
 
string to_json (string key, int16_t value)
 
string to_json (string key, int8_t value)
 
string to_json (string key, uint64_t value)
 
string to_json (string key, uint32_t value)
 
string to_json (string key, uint16_t value)
 
string to_json (string key, uint8_t value)
 
string to_label (string label, string value)
 
string to_label (string label, double value, uint16_t precision, bool mjd)
 
string to_label (string label, int64_t value, uint16_t digits, bool hex)
 
string to_label (string label, int32_t value, uint16_t digits, bool hex)
 
string to_label (string label, int16_t value, uint16_t digits, bool hex)
 
string to_label (string label, int8_t value, uint16_t digits, bool hex)
 
string to_label (string label, uint64_t value, uint16_t digits, bool hex)
 
string to_label (string label, uint32_t value, uint16_t digits, bool hex)
 
string to_label (string label, uint16_t value, uint16_t digits, bool hex)
 
string to_label (string label, uint8_t value, uint16_t digits, bool hex)
 
string to_label (string label, bool value)
 
string clean_string (string value)
 

Detailed Description

stringlib include file A library providing functions for handling various types of string.