mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-10 08:28:10 +01:00
Library to handle SymSrv integration (#111). r=bryner
http://groups.google.com/group/airbag-dev/browse_thread/thread/b40e66d1d57e61b5 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@105 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
48dab62c2d
commit
50e299b00e
5 changed files with 1090 additions and 0 deletions
|
|
@ -51,6 +51,7 @@
|
|||
|
||||
namespace google_airbag {
|
||||
|
||||
using std::string;
|
||||
using std::wstring;
|
||||
|
||||
class WindowsStringUtils {
|
||||
|
|
@ -72,6 +73,11 @@ class WindowsStringUtils {
|
|||
static void safe_wcsncpy(wchar_t *destination, size_t destination_size,
|
||||
const wchar_t *source, size_t count);
|
||||
|
||||
// Performs multi-byte to wide character conversion on C++ strings, using
|
||||
// mbstowcs_s (MSVC8) or mbstowcs (pre-MSVC8). Returns false on failure,
|
||||
// without setting wcs.
|
||||
static bool safe_mbstowcs(const string &mbs, wstring *wcs);
|
||||
|
||||
// Returns the base name of a file, e.g. strips off the path.
|
||||
static wstring GetBaseName(const wstring &filename);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue