Fairport
v1.0.38
|
General utility functions and classes. More...
#include <cstdio>
#include <time.h>
#include <memory>
#include <vector>
#include <boost/utility.hpp>
#include "fairport/util/errors.h"
#include "fairport/util/primitives.h"
#include <iconv.h>
Go to the source code of this file.
Classes | |
class | fairport::file |
A generic class to read and write to a file. More... | |
Namespaces | |
namespace | fairport |
Contains the definition of all in memory representations of disk structures. | |
Functions | |
time_t | fairport::filetime_to_time_t (ulonglong filetime) |
Convert from a filetime to time_t. | |
ulonglong | fairport::time_t_to_filetime (time_t time) |
Convert from a time_t to filetime. | |
time_t | fairport::vt_date_to_time_t (double vt_time) |
Convert from a VT_DATE to a time_t. | |
double | fairport::time_t_to_vt_date (time_t time) |
Convert from a time_t to a VT_DATE. | |
bool | fairport::test_bit (const byte *pbytes, ulong bit) |
Test to see if the specified bit in the buffer is set. | |
std::wstring | fairport::codepage_1252_to_wstring (const std::string &cp1252) |
Convert a codepage 1252 string to a std::wstring. | |
std::wstring | fairport::bytes_to_wstring (const std::vector< byte > &bytes) |
Convert an array of bytes to a std::wstring. | |
std::vector< byte > | fairport::wstring_to_bytes (const std::wstring &wstr) |
Convert a std::wstring to an array of bytes. |
General utility functions and classes.
This is where any generalized utility classes and functions go which are not directly related to MS-PST in some fashion. It is my hope that this file stay as small as possible.
Definition in file util.h.