bool wxConfigBase::Write(const wxString& key, double val)
{
wxString str;
- str.Printf(T("%f"), val);
+ str.Printf(wxT("%f"), val);
return Write(key, str);
}
return Write(key, l);
}
+bool wxConfigBase::Write( const wxString &key, const wxChar *text )
+{
+ wxString str( text ) ;
+ return Write( key, str ) ;
+}
wxString wxConfigBase::ExpandEnvVars(const wxString& str) const
{
wxString tmp; // Required for BC++
wxString strCurrent;
const wxChar *pc = sz;
for ( ;; ) {
- if ( *pc == T('\0') || *pc == wxCONFIG_PATH_SEPARATOR ) {
- if ( strCurrent == T(".") ) {
+ if ( *pc == wxT('\0') || *pc == wxCONFIG_PATH_SEPARATOR ) {
+ if ( strCurrent == wxT(".") ) {
// ignore
}
- else if ( strCurrent == T("..") ) {
+ else if ( strCurrent == wxT("..") ) {
// go up one level
if ( aParts.IsEmpty() )
wxLogWarning(_("'%s' has extra '..', ignored."), sz);
//else:
// could log an error here, but we prefer to ignore extra '/'
- if ( *pc == T('\0') )
+ if ( *pc == wxT('\0') )
return;
}
else