aboutsummaryrefslogtreecommitdiff
path: root/src/common/windows/string_utils-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/windows/string_utils-inl.h')
-rw-r--r--src/common/windows/string_utils-inl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/windows/string_utils-inl.h b/src/common/windows/string_utils-inl.h
index 62ce7ac3..b3e496ca 100644
--- a/src/common/windows/string_utils-inl.h
+++ b/src/common/windows/string_utils-inl.h
@@ -36,6 +36,8 @@
#include <stdarg.h>
#include <wchar.h>
+#include <string>
+
// The "ll" printf format size specifier corresponding to |long long| was
// intrudced in MSVC8. Earlier versions did not provide this size specifier,
// but "I64" can be used to print 64-bit types. Don't use "I64" where "ll"
@@ -49,6 +51,8 @@
namespace google_airbag {
+using std::wstring;
+
class WindowsStringUtils {
public:
// Equivalent to MSVC8's swprintf, which always 0-terminates buffer.
@@ -68,6 +72,9 @@ class WindowsStringUtils {
static void safe_wcsncpy(wchar_t *destination, size_t destination_size,
const wchar_t *source, size_t count);
+ // Returns the base name of a file, e.g. strips off the path.
+ static wstring GetBaseName(const wstring &filename);
+
private:
// Disallow instantiation and other object-based operations.
WindowsStringUtils();