K
kelvin.koogan
Using C++/CLI but I would imagine C# is the same.
What is the fastest to do the following operations
1) Compare two Strings without case-sensitivity.
2) Take a group of objects with 4 string fields and tabulate them, so
each field is in a column, in a single String, one line per object
with \n separating them, calculating the minimum width required for
each column and them formatting the rows so all the fields in each
column line up.
So at the moment I'm
i) Looping over all the objects determining the minimum width of each
column.
ii) Creating a format string with something like String::Format("{{0,-
{0}}}{{1,-{1}}}{{2,-{2}}}{{3}}\n", columnWidth1, columnWidth2,
columnWidth3);
iii) Then doing pLine += String::Format(pFmt, pLine->Type, pLine-
Anyway to make this faster?
TIA,
KK
What is the fastest to do the following operations
1) Compare two Strings without case-sensitivity.
2) Take a group of objects with 4 string fields and tabulate them, so
each field is in a column, in a single String, one line per object
with \n separating them, calculating the minimum width required for
each column and them formatting the rows so all the fields in each
column line up.
So at the moment I'm
i) Looping over all the objects determining the minimum width of each
column.
ii) Creating a format string with something like String::Format("{{0,-
{0}}}{{1,-{1}}}{{2,-{2}}}{{3}}\n", columnWidth1, columnWidth2,
columnWidth3);
iii) Then doing pLine += String::Format(pFmt, pLine->Type, pLine-
"\n";Name, pLine->Value, pLine->Desc) +
Anyway to make this faster?
TIA,
KK