*
* @date Created: 2003-08-19
*/
-// RCS ID line follows -- this is updated by CVS
+// ID line follows -- this is updated by SVN
// $Id$
/**
- * @brief Get text for specified column (forwards to specific column handler)
+ * @brief Get text for specified column.
+ * This function retrieves the text for the specified colum. Text is
+ * retrieved by using column-specific handler functions.
+ * @param [in] pCtxt Compare context.
+ * @param [in] col Column number.
+ * @param [in] di Difference data.
+ * @return Text for the specified column.
*/
-String
-CDirView::ColGetTextToDisplay(const CDiffContext *pCtxt, int col, const DIFFITEM & di)
+String CDirView::ColGetTextToDisplay(const CDiffContext *pCtxt, int col,
+ const DIFFITEM & di)
{
// Custom properties have custom get functions
const DirColInfo * pColInfo = DirViewColItems_GetDirColInfo(col);
if (!pColInfo)
{
ASSERT(0); // fix caller, should not ask for nonexistent columns
- return "???";
+ return _T("???");
}
ColGetFncPtrType fnc = pColInfo->getfnc;
SIZE_T offset = pColInfo->offset;
}
/**
- * @brief Sort two items on specified column (forwards to specific column handler)
+ * @brief Sort two items on specified column.
+ * This function determines order of two items in specified column. Order
+ * is determined by column-specific functions.
+ * @param [in] pCtxt Compare context.
+ * @param [in] col Column number to sort.
+ * @param [in] ldi Left difference item data.
+ * @param [in] rdi Right difference item data.
+ * @return Order of items.
*/
-int
-CDirView::ColSort(const CDiffContext *pCtxt, int col, const DIFFITEM & ldi, const DIFFITEM &rdi) const
+int CDirView::ColSort(const CDiffContext *pCtxt, int col, const DIFFITEM & ldi,
+ const DIFFITEM & rdi) const
{
// Custom properties have custom sort functions
const DirColInfo * pColInfo = DirViewColItems_GetDirColInfo(col);
// Transformation happens here
// text used for automatic mode : plugin filter must match it
- String filteredFilenames = plugCtxt->origFileName1 + "|" + plugCtxt->origFileName2;
+ String filteredFilenames(plugCtxt->origFileName1);
+ filteredFilenames += '|';
+ filteredFilenames += plugCtxt->origFileName2;
// Get existing or new plugin infos
pCtxt->FetchPluginInfos(filteredFilenames.c_str(), &plugCtxt->infoUnpacker,
*
* @brief Path handling routines
*/
-// RCS ID line follows -- this is updated by CVS
+// ID line follows -- this is updated by SVN
// $Id$
#include "stdafx.h"
*end = 0;
sLong += ptr;
ptr = &end[1];
- String sTemp; // used at each step to hold fully qualified short name
// now walk down each directory and do short to long name conversion
while (ptr)
if (end)
*end = 0;
- sTemp = sLong + '\\' + ptr;
+ String sTemp(sLong);
+ sTemp += '\\';
+ sTemp += ptr;
// advance to next component (or set ptr==0 to flag end)
ptr = (end ? end+1 : 0);