27#ifndef _HUGIN_UTILS_PLATFORM_H
28#define _HUGIN_UTILS_PLATFORM_H
36 #if ((defined __APPLE__) && (defined __MACH__))
43 #if __unix__ || MAC_OS_X
60 for (
size_t i = 0;
i < len;
i++) {
67 if (
idx != str::npos) {
72 }
while (
idx != str::npos);
93 while (
idx != str::npos);
namespace for various utils
str quoteFilename(const str &arg)
Quote a filename, so that it is surrounded by "".
str quoteString(const str &arg)
Try to escape special chars on windows and linux.
str escapeStringMake(const str &arg)
Escape dangerous chars in makefile strings/filenames (space),#,=.
str quoteStringInternal(const str &arg, const str "echar, const str &replacements)
utility function; escapes characters in replacements with quotechar.
str quoteStringShell(const str &arg)
Try to escape special chars in a string used by a unix type shell.
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.