forked from premiere/premiere-libtorrent
is_hex should not be exported
This commit is contained in:
parent
b7816ff281
commit
24ea524731
|
@ -253,6 +253,18 @@ int load_file(std::string const& filename, std::vector<char>& v, libtorrent::err
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool is_hex(char const *in, int len)
|
||||
{
|
||||
for (char const* end = in + len; in < end; ++in)
|
||||
{
|
||||
if (in >= '0' && in <= '9') continue;
|
||||
if (in >= 'A' && in <= 'F') continue;
|
||||
if (in >= 'a' && in <= 'f') continue;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
enum {
|
||||
torrents_all,
|
||||
torrents_downloading,
|
||||
|
|
|
@ -71,7 +71,7 @@ namespace libtorrent
|
|||
TORRENT_EXTRA_EXPORT int hex_to_int(char in);
|
||||
|
||||
TORRENT_EXPORT std::string to_hex(std::string const& s);
|
||||
TORRENT_EXPORT bool is_hex(char const *in, int len);
|
||||
TORRENT_EXTRA_EXPORT bool is_hex(char const *in, int len);
|
||||
TORRENT_EXPORT void to_hex(char const *in, int len, char* out);
|
||||
TORRENT_EXPORT bool from_hex(char const *in, int len, char* out);
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
namespace libtorrent
|
||||
{
|
||||
TORRENT_EXTRA_EXPORT bool is_alpha(char c);
|
||||
TORRENT_EXPORT bool is_digit(char c);
|
||||
TORRENT_EXTRA_EXPORT bool is_digit(char c);
|
||||
TORRENT_EXTRA_EXPORT bool is_print(char c);
|
||||
TORRENT_EXTRA_EXPORT bool is_space(char c);
|
||||
TORRENT_EXTRA_EXPORT char to_lower(char c);
|
||||
|
|
Loading…
Reference in New Issue