2#ifndef CLICK_USERUTILS_HH
3#define CLICK_USERUTILS_HH
9inline bool glob_match(
const String &
string,
const String &pattern) {
10 return string.glob_match(pattern);
13String percent_substitute(
const String &
string,
int format1, ...);
48void click_signal(
int signum,
void (*handler)(
int),
bool resethand);
50const char *filename_landmark(
const char *,
bool file_is_expr =
false);
60void remove_file_on_exit(
const String &);
61bool path_allows_default_path(
String path);
64const char *clickpath();
65void set_clickpath(
const char *);
67String clickpath_find_file(
const String& filename,
const char *subdir,
75String shell_quote(
const String &,
bool quote_tilde =
false);
87bool compressed_data(
const unsigned char *buf,
int len);
89FILE *open_uncompress_pipe(
const String &filename,
const unsigned char *buf,
92int compressed_filename(
const String &filename);
95uint64_t bit_extractor(
const uint64_t &number,
const unsigned short &k,
const unsigned short &p);
96String number_to_binary_str(
const uint64_t &number,
const unsigned &bits_nb = 32);
98#if HAVE_DYNAMIC_LINKING
Class for handling 'ar' archives.
Error reporting class.
Definition error.hh:90
A string of characters.
Definition string.hh:22
Vector template.
Definition vector.hh:111
Member of an 'ar' archive.
Definition archive.hh:21