MCPcopy Create free account
hub / github.com/WinMerge/winmerge / GetProfileString

Method GetProfileString

Src/Merge.cpp:1728–1735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1726}
1727
1728CString CMergeApp::GetProfileString(const tchar_t* lpszSection, const tchar_t* lpszEntry, const tchar_t* lpszDefault)
1729{
1730 COptionsMgr *pOptions = GetOptionsMgr();
1731 String name = strutils::format(_T("%s/%s"), lpszSection, lpszEntry);
1732 if (!pOptions->Get(name).IsString())
1733 pOptions->InitOption(name, lpszDefault ? lpszDefault : _T(""));
1734 return pOptions->GetString(name).c_str();
1735}
1736
1737BOOL CMergeApp::WriteProfileString(const tchar_t* lpszSection, const tchar_t* lpszEntry, const tchar_t* lpszValue)
1738{

Callers 5

addToMruMethod · 0.80
LoadStateMethod · 0.80
PersistMethod · 0.80
LoadFromRegistryMethod · 0.80
LoadSettingsMethod · 0.80

Calls 6

IsStringMethod · 0.80
GetOptionsMgrFunction · 0.70
formatFunction · 0.50
GetMethod · 0.45
InitOptionMethod · 0.45
GetStringMethod · 0.45

Tested by

no test coverage detected