NXOpen.UF.Text.Truncate¶
-
Text.
Truncate
()¶ Refer to UF_TEXT_truncate for documentation.
Signature:
Truncate(stringToTruncate, numBytes, numCharacters)
Parameters: - stringToTruncate (list of str) – The string to look at
- numBytes (int) – The maximum number of bytes allowed inthe output string.
- numCharacters (int) – The maximum number of characters allowedin the output string
Returns: A Tuple
Return type: A tuple consisting of (stringToTruncate,truncated)
stringToTruncate(list of str): Modified value of stringToTruncate
truncated(bool): True if the string was truncated
License requirements: None