StringUtilsTruncateInPlace Method |
Truncate the specified string to be no longer than the specified length.
Warning: The string is modified in place.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static bool TruncateInPlace(
ref string s,
int maxLength,
string logSource
)
Public Shared Function TruncateInPlace (
ByRef s As String,
maxLength As Integer,
logSource As String
) As Boolean
Parameters
- s
- Type: SystemString
The string to truncate. - maxLength
- Type: SystemInt32
The maximum length of the string. - logSource
- Type: SystemString
The source of the string, to be logged to the devlog if truncation is performed.
Return Value
Type:
BooleanTrue if string was truncated, else false.
See Also