Ardour  9.0-pre0-582-g084a23a80d
convert.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2017 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2006 Taybin Rutkin <taybin@taybin.com>
4  * Copyright (C) 2009-2012 Carl Hetherington <carl@carlh.net>
5  * Copyright (C) 2016 Tim Mayberry <mojofunk@gmail.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21 
22 #pragma once
23 
24 #include <stdint.h>
25 #include <string>
26 #include <vector>
27 
28 #include <glibmm/ustring.h>
29 
30 #include "pbd/libpbd_visibility.h"
31 
32 namespace PBD {
33 
34 LIBPBD_API std::string short_version (std::string, std::string::size_type target_length);
35 
36 LIBPBD_API int atoi (const std::string&);
37 LIBPBD_API int32_t atol (const std::string&);
38 LIBPBD_API int64_t atoll (const std::string&);
39 LIBPBD_API double atof (const std::string&);
40 LIBPBD_API std::string url_decode (std::string const &);
41 
42 LIBPBD_API std::string capitalize (const std::string&);
43 LIBPBD_API std::string downcase (const std::string&);
44 LIBPBD_API const char* downcase (const char*);
45 LIBPBD_API std::vector<std::string> upcase (char const *[]);
46 
47 // std::string length2string (const int32_t samples, const float sample_rate);
48 LIBPBD_API std::string length2string (const int64_t samples, const double sample_rate);
49 
50 LIBPBD_API std::vector<std::string> internationalize (const char *, const char **);
51 LIBPBD_API bool strings_equal_ignore_case (const std::string& a, const std::string& b);
52 
53 LIBPBD_API const char* sgettext (const char *, const char *);
54 
55 } //namespace PBD
56 
#define LIBPBD_API
Definition: axis_view.h:42
std::string capitalize(const std::string &)
int32_t atol(const std::string &)
std::vector< std::string > upcase(char const *[])
int64_t atoll(const std::string &)
std::string short_version(std::string, std::string::size_type target_length)
int atoi(const std::string &)
std::string downcase(const std::string &)
const char * sgettext(const char *, const char *)
std::string length2string(const int64_t samples, const double sample_rate)
bool strings_equal_ignore_case(const std::string &a, const std::string &b)
std::vector< std::string > internationalize(const char *, const char **)
std::string url_decode(std::string const &)
double atof(const std::string &)