PICCANTE  0.4
The hottest HDR imaging library!
Namespaces | Macros | Typedefs | Functions
string.hpp File Reference
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include "../base.hpp"
#include <unistd.h>

Go to the source code of this file.

Namespaces

 pic
 

Macros

#define PIC_UTIL_STRING_HPP
 
#define MAKE_STRING(input_string)   #input_string
 
#define MAKE_STRING(input_string)   #input_string
 MAKE_STRING creates a string from a block. More...
 

Typedefs

typedef std::vector< std::string > pic::StringVec
 StringVec is an std::vector of std::string. More...
 

Functions

std::string pic::stdStringRep (std::string str, std::string strSub, std::string strRep)
 stdStringRep replaces strSub in str with strRep just once. More...
 
std::string pic::stdStringRepAll (std::string str, std::string strSub, std::string strRep)
 stdStringRepAll replaces all strSub in str with strRep. More...
 
template<class T >
std::string pic::fromNumberToString (T num)
 fromNumberToString converts a number into a string. More...
 
char pic::getSeparatorChar (std::string path)
 getSeparatorChar returns the folder separator in path as a char. More...
 
std::string pic::removeExtension (std::string name)
 RemoveExtension removes the extension of a string. More...
 
std::string pic::removeLocalPath (std::string name)
 removeLocalPath removes the local path of a string. More...
 
std::string pic::getFileNameOnly (std::string name)
 getFileNameOnly More...
 
std::string pic::getExtension (std::string name)
 getExtension gets the extension of a file name. More...
 
std::string pic::addSuffix (std::string name, std::string suffix)
 addSuffix adds a suffix to a file name. More...
 
std::string pic::replaceExtension (std::string nameOut, std::string fmtIn, std::string fmtOut)
 replaceExtension changes .format in a file name. More...
 
int pic::countSubString (std::string str, std::string subStr)
 countSubString counts how many subStr are in str. More...
 
std::string pic::getLocaDirectory (std::string path)
 getLocaDirectory gets local path. More...
 
std::string pic::getSeparator (std::string path)
 getSeparator returns the folder separator in path as a string More...
 
std::string pic::getFolderName (std::string path)
 getFolderName gets the folder name from the path. More...
 
std::string pic::getFileName (std::string path)
 getFileName gets the file name. More...
 
void pic::parseStringToStdVector (std::string str, char delim, StringVec *str_vec)
 parseStringToStdVector More...
 
std::string pic::genBilString (std::string type, float sigma_s, float sigma_r)
 genBilString More...
 
std::string pic::fromFileToStdString (std::string nameFile)
 fromFileToStdString writes a file into a std::string. More...
 
bool pic::checkAbsolutePath (std::string path)
 checkAbsolutePath checks if the path is absolute or not. More...
 
char * pic::fromStdStringToChar (std::string str)
 fromStdStringToChar converts from a std::string to a char*. More...
 
std::string pic::checkPath (std::string name)
 checkPath More...
 
std::string pic::adjustPath (std::string nameFile, std::string pathFolder)
 adjustPath modifies the path if it is not global. More...
 
std::string pic::removeInitialSpaces (char name[])
 removeInitialSpaces removes spaces at the beginning of a string. More...
 

Macro Definition Documentation

◆ MAKE_STRING [1/2]

#define MAKE_STRING (   input_string)    #input_string

◆ MAKE_STRING [2/2]

#define MAKE_STRING (   input_string)    #input_string

MAKE_STRING creates a string from a block.

◆ PIC_UTIL_STRING_HPP

#define PIC_UTIL_STRING_HPP