5 ms·
While I've done this myself, it's not a 100% solution, because now you get a truncated string that further processing may not be expecting. For example, if you
by pjc50 11y ago
While I've done this myself, it's not a 100% solution, because now you get a truncated string that further processing may not be expecting. For example, if you validate the un-truncated string somehow then take a copy of it, the copy may be invalid.