|
Swarm-NG
1.1
|
Defines string operation utility functions. More...
#include "macros.h"#include "astro_types.hpp"#include "constants.hpp"#include <cmath>#include <string>#include <cstdlib>#include <memory.h>#include <ctype.h>#include <stdio.h>#include <exception>#include <stdexcept>#include <cxxabi.h>Go to the source code of this file.
Classes | |
| struct | peyton::util::demangling_error |
| Defines run time error handling. More... | |
Namespaces | |
| peyton | |
| Type traits utilities. Should be separated into it's own header. | |
| peyton::util | |
| contains string processing functions, type name demangling, | |
Constant Groups | |
| peyton | |
| Type traits utilities. Should be separated into it's own header. | |
| peyton::util | |
| contains string processing functions, type name demangling, | |
Functions | |
| std::string | peyton::util::ltrim (const std::string &str, const std::string &whitespace="\t ") |
| return approximate longitude of the Sun for a given time More... | |
| std::string | peyton::util::rtrim (const std::string &str, const std::string &whitespace="\t ") |
| remove whitespace from the end of the string str | |
| std::string | peyton::util::trim (const std::string &str, const std::string &whitespace="\t ") |
| remove whitespace from the begining and the end of the string str | |
| char * | peyton::util::trim (char *txt) |
| char * | peyton::util::trim (char *dest, const char *src) |
| std::string | peyton::util::pad (const std::string &s, size_t n, char c= ' ') |
| pad to given number of characters | |
| std::string | peyton::util::unescape (const std::string &str) |
| Convert all occurences of \" and \\' in a string to " and '. | |
| std::string | peyton::util::tolower (const std::string &s) |
| convert string to lowercase | |
| std::string | peyton::util::toupper (const std::string &s) |
| convert string to uppercase | |
| std::string | peyton::util::str (size_t n) |
| convert size_t to std::string | |
| std::string | peyton::util::str (int n) |
| convert int to std::string | |
| std::string | peyton::util::str (char c) |
| convert char to std::string | |
| std::string | peyton::util::str (double n, const char *fmt="%f") |
| convert double to std::string | |
| std::string | peyton::util::type_name (const std::type_info &ti) |
| Type name demangler. | |
| template<typename T > | |
| std::string | peyton::util::type_name () |
| type-name demangler | |
| template<typename T > | |
| std::string | peyton::util::type_name (const T &t) |
| type-name demangler | |
Defines string operation utility functions.
Definition in file util.hpp.