Namespaces | Macros | Typedefs | Functions | Variables
util.h File Reference
#include "flatbuffers/base.h"
#include <errno.h>
#include <sstream>
#include <iomanip>
#include <string>
Include dependency graph for util.h:

Go to the source code of this file.

Namespaces

 flatbuffers
 

Macros

#define __strtod_impl(s, pe)   strtod(s, pe)
 
#define __strtof_impl(s, pe)   static_cast<float>(strtod(s, pe))
 
#define __strtoll_impl(s, pe, b)   strtoll(s, pe, b)
 
#define __strtoull_impl(s, pe, b)   strtoull(s, pe, b)
 

Typedefs

typedef bool(* flatbuffers::FileExistsFunction) (const char *filename)
 
typedef bool(* flatbuffers::LoadFileFunction) (const char *filename, bool binary, std::string *dest)
 

Functions

 flatbuffers::__supress_ubsan__ ("float-cast-overflow") inline void strtoval_impl(float *val
 
std::string flatbuffers::AbsolutePath (const std::string &filepath)
 
template<typename T >
bool flatbuffers::check_in_range (T x, T a, T b)
 
std::string flatbuffers::ConCatPathFileName (const std::string &path, const std::string &filename)
 
bool flatbuffers::DirExists (const char *name)
 
void flatbuffers::EnsureDirExists (const std::string &filepath)
 
bool flatbuffers::EscapeString (const char *s, size_t length, std::string *_text, bool allow_non_utf8, bool natural_utf8)
 
bool flatbuffers::FileExists (const char *name)
 
template<typename T >
std::string flatbuffers::FloatToString (T t, int precision)
 
int flatbuffers::FromUTF8 (const char **in)
 
std::string flatbuffers::GetExtension (const std::string &filepath)
 
std::string flatbuffers::IntToStringHex (int i, int xdigits)
 
bool flatbuffers::is_alnum (char c)
 
bool flatbuffers::is_alpha (char c)
 
bool flatbuffers::is_alpha_char (char c, char alpha)
 
bool flatbuffers::is_digit (char c)
 
bool flatbuffers::is_xdigit (char c)
 
bool flatbuffers::LoadFile (const char *name, bool binary, std::string *buf)
 
template<typename T >
std::string flatbuffers::NumToString (T t)
 
template<>
std::string flatbuffers::NumToString< double > (double t)
 
template<>
std::string flatbuffers::NumToString< float > (float t)
 
template<>
std::string flatbuffers::NumToString< signed char > (signed char t)
 
template<>
std::string flatbuffers::NumToString< unsigned char > (unsigned char t)
 
std::string flatbuffers::PosixPath (const char *path)
 
bool flatbuffers::ReadEnvironmentVariable (const char *var_name, std::string *_value=nullptr)
 
std::string flatbuffers::RemoveStringQuotes (const std::string &s)
 
bool flatbuffers::SaveFile (const char *name, const char *buf, size_t len, bool binary)
 
bool flatbuffers::SaveFile (const char *name, const std::string &buf, bool binary)
 
FileExistsFunction flatbuffers::SetFileExistsFunction (FileExistsFunction file_exists_function)
 
bool flatbuffers::SetGlobalTestLocale (const char *locale_name, std::string *_value=nullptr)
 
LoadFileFunction flatbuffers::SetLoadFileFunction (LoadFileFunction load_file_function)
 
template<typename T >
bool flatbuffers::StringToFloatImpl (T *val, const char *const str)
 
int64_t flatbuffers::StringToInt (const char *s, int base=10)
 
template<typename T >
bool flatbuffers::StringToIntegerImpl (T *val, const char *const str, const int base=0, const bool check_errno=true)
 
template<typename T >
bool flatbuffers::StringToNumber (const char *s, T *val)
 
template<>
bool flatbuffers::StringToNumber (const char *s, float *val)
 
template<>
bool flatbuffers::StringToNumber (const char *s, double *val)
 
template<>
bool flatbuffers::StringToNumber< int64_t > (const char *str, int64_t *val)
 
template<>
bool flatbuffers::StringToNumber< uint64_t > (const char *str, uint64_t *val)
 
uint64_t flatbuffers::StringToUInt (const char *s, int base=10)
 
std::string flatbuffers::StripExtension (const std::string &filepath)
 
std::string flatbuffers::StripFileName (const std::string &filepath)
 
std::string flatbuffers::StripPath (const std::string &filepath)
 
void flatbuffers::strtoval_impl (int64_t *val, const char *str, char **endptr, int base)
 
void flatbuffers::strtoval_impl (uint64_t *val, const char *str, char **endptr, int base)
 
void flatbuffers::strtoval_impl (double *val, const char *str, char **endptr)
 
int flatbuffers::ToUTF8 (uint32_t ucc, std::string *out)
 
std::string flatbuffers::WordWrap (const std::string in, size_t max_length, const std::string wrapped_line_prefix, const std::string wrapped_line_suffix)
 

Variables

const char char ** flatbuffers::endptr
 
FLATBUFFERS_CONSTEXPR char flatbuffers::kPathSeparator = '/'
 
const char * flatbuffers::str
 

Macro Definition Documentation

#define __strtod_impl (   s,
  pe 
)    strtod(s, pe)

Definition at line 230 of file util.h.

#define __strtof_impl (   s,
  pe 
)    static_cast<float>(strtod(s, pe))

Definition at line 231 of file util.h.

#define __strtoll_impl (   s,
  pe,
 
)    strtoll(s, pe, b)

Definition at line 237 of file util.h.

#define __strtoull_impl (   s,
  pe,
 
)    strtoull(s, pe, b)

Definition at line 236 of file util.h.



behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:05