diff options
author | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-01-18 21:13:14 +0000 |
---|---|---|
committer | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-01-18 21:13:14 +0000 |
commit | 50e299b00e803f085b34847dfe5232b471d84197 (patch) | |
tree | 7cfbba04057ac1234f603e8aaf3a528b91ce4584 /src/common/windows/string_utils-inl.h | |
parent | Be lenient when reading CodeView records of unknown types (#110). r=bryner (diff) | |
download | breakpad-50e299b00e803f085b34847dfe5232b471d84197.tar.xz |
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
Diffstat (limited to 'src/common/windows/string_utils-inl.h')
-rw-r--r-- | src/common/windows/string_utils-inl.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |