Common: add GetTextVars for unexpanded variable names

This commit is contained in:
Mike Williams
2023-07-12 12:16:14 -04:00
parent 500779fc80
commit e2f47ecabb
2 changed files with 17 additions and 0 deletions
+12
View File
@@ -112,6 +112,18 @@ wxString ExpandTextVars( const wxString& aSource,
}
wxString GetTextVars( const wxString& aSource )
{
std::function<bool( wxString* )> tokenExtractor =
[&]( wxString* token ) -> bool
{
return true;
};
return ExpandTextVars( aSource, &tokenExtractor );
}
//
// Stolen from wxExpandEnvVars and then heavily optimized
//