return ubstr_t(GetUtf16Cache());
}
+
+/*
+ *-----------------------------------------------------------------------------
+ *
+ * utf::string::t_str --
+ *
+ * Get the TCHAR representation of this string.
+ *
+ * Results:
+ * The TCHAR representation.
+ *
+ * Side effects:
+ * None
+ *
+ *-----------------------------------------------------------------------------
+ */
+
+const TCHAR*
+string::t_str() const
+{
+#ifdef UNICODE
+ return w_str();
+#else
+ return c_str();
+#endif
+}
+
#endif
const char *c_str() const;
const utf16_t *w_str() const;
const Glib::ustring& ustr() const;
+#ifdef _WIN32
+ const TCHAR* t_str() const;
+#endif
// Mapping functions to Glib::ustring
void swap(string &s);