ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Helper.h File Reference
#include <cmath>
#include <cstdlib>
#include <functional>
#include <memory>
#include <random>
#include <stdexcept>
#include <string>
#include <tuple>
#include <vector>
#include "CVCoreLib.h"
Include dependency graph for Helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cloudViewer::utility::hash_tuple< TT >
 
struct  cloudViewer::utility::hash_tuple< std::tuple< TT... > >
 
struct  cloudViewer::utility::hash_eigen< T >
 
struct  cloudViewer::utility::hash_enum_class
 
class  cloudViewer::utility::UniformRandIntGenerator
 Draw pseudo-random integers bounded by min and max (inclusive) from a uniform distribution. More...
 

Namespaces

 cloudViewer
 Generic file read and write utility for python interface.
 
 cloudViewer::utility
 

Functions

std::string cloudViewer::utility::StringPrintf (const char *format,...)
 
std::string cloudViewer::utility::StringReplace (const std::string &str, const std::string &old_str, const std::string &new_str)
 
bool cloudViewer::utility::StringContains (const std::string &src, const std::string &dst)
 
std::string cloudViewer::utility::StringReplaceFirst (const std::string &str, const std::string &old_str, const std::string &new_str)
 
std::string cloudViewer::utility::StringReplaceLast (const std::string &str, const std::string &old_str, const std::string &new_str)
 
bool cloudViewer::utility::StringStartsWith (const std::string &str, const std::string &prefix)
 
bool cloudViewer::utility::StringEndsWith (const std::string &str, const std::string &postfix)
 
std::string cloudViewer::utility::JoinStrings (const std::vector< std::string > &strs, const std::string &delimiter=", ")
 
std::vector< std::string > cloudViewer::utility::StringSplit (const std::string &str, const std::string &delimiters=" ", bool trim_empty_str=true)
 
void cloudViewer::utility::SplitString (std::vector< std::string > &tokens, const std::string &str, const std::string &delimiters=" ", bool trim_empty_str=true)
 
std::vector< std::string > cloudViewer::utility::SplitString (const std::string &str, const std::string &delimiters=" ", bool trim_empty_str=true)
 
size_t cloudViewer::utility::WordLength (const std::string &doc, size_t start_pos, const std::string &valid_chars="_")
 
std::string & cloudViewer::utility::LeftStripString (std::string &str, const std::string &chars="\t\n\v\f\r ")
 
std::string & cloudViewer::utility::RightStripString (std::string &str, const std::string &chars="\t\n\v\f\r ")
 
std::string & cloudViewer::utility::StripString (std::string &str, const std::string &chars="\t\n\v\f\r ")
 
std::string cloudViewer::utility::ToLower (const std::string &s)
 Convert string to the lower case. More...
 
std::string cloudViewer::utility::ToUpper (const std::string &s)
 Convert string to the upper case. More...
 
template<typename... Args>
std::string cloudViewer::utility::FormatString (const std::string &format, Args... args)
 Format string. More...
 
template<typename... Args>
std::string cloudViewer::utility::FastFormatString (const std::string &format, Args... args)
 Format string fast (Unix / BSD Only) More...
 
void cloudViewer::utility::Sleep (int milliseconds)
 
int cloudViewer::utility::DivUp (int x, int y)
 Computes the quotient of x/y with rounding up. More...
 
std::string cloudViewer::utility::GetCurrentTimeStamp ()
 Returns current time stamp. More...