From 50e299b00e803f085b34847dfe5232b471d84197 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Thu, 18 Jan 2007 21:13:14 +0000 Subject: 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 --- src/common/windows/string_utils-inl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/common/windows/string_utils-inl.h') diff --git a/src/common/windows/string_utils-inl.h b/src/common/windows/string_utils-inl.h index b3e496ca..b2c1d5e7 100644 --- a/src/common/windows/string_utils-inl.h +++ b/src/common/windows/string_utils-inl.h @@ -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); -- cgit v1.2.1