refactore some inpust and also start implementing Scoring mechanism ...

This commit is contained in:
2024-05-20 12:27:23 +03:30
parent 8a0544ed8a
commit d7b179a136
4 changed files with 1737 additions and 356 deletions
+31
View File
@@ -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>