refactore some inpust and also start implementing Scoring mechanism ...
This commit is contained in:
@@ -4864,6 +4864,37 @@ string ToString(
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
string SetLabel(
|
||||
string mLabel, // Provided Label ...
|
||||
string value, // Source Value ...
|
||||
string separator = "\n", // Line Separator
|
||||
bool addTopEmptyLine = true // Add Empty Line On top
|
||||
)
|
||||
{
|
||||
//
|
||||
string result = value;
|
||||
|
||||
//
|
||||
if (StringLen(mLabel) <= 0)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
result = (StringLen(value) > 0)
|
||||
? (addTopEmptyLine ? separator : "") +
|
||||
mLabel +
|
||||
separator +
|
||||
"-----------------------------" +
|
||||
separator +
|
||||
value
|
||||
: value;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Converts a Buffer to String Representation ...
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user