libfswatch  1.9.3
string_utils.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Enrico M. Crisostomo
3  *
4  * This program is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU General Public License as published by the Free Software
6  * Foundation; either version 3, or (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU General Public License along with
14  * this program. If not, see <http://www.gnu.org/licenses/>.
15  */
26 #ifndef FSW_STRING_UTILS_H
27 # define FSW_STRING_UTILS_H
28 
29 #include <cstdarg>
30 #include <string>
31 
32 namespace fsw
33 {
37  namespace string_utils
38  {
45  std::string string_from_format(const char *format, ...);
46 
54  std::string vstring_from_format(const char *format, va_list args);
55  }
56 }
57 
58 #endif /* FSW_STRING_UTILS_H */
Main namespace of libfswatch.
Definition: event.cpp:23
string string_from_format(const char *format,...)
Create a std::string using a printf() format and varargs.
Definition: string_utils.cpp:53
string vstring_from_format(const char *format, va_list args)
Create a std::string using a printf() format and a va_list args.
Definition: string_utils.cpp:27