whitespace is very subjective and different in every language, including unicode
i would use C#'s whitespace definition as default (https://msdn.microsoft.com/en-us/library/t809ektx(v=vs.110).aspx) plus the null byte as in php's trim()
but i would also add an optional parameter "$charset" so that the behavior would be completely customizable
which characters will trim() trim?
whitespace is very subjective and different in every language, including unicode
i would use C#'s whitespace definition as default (https://msdn.microsoft.com/en-us/library/t809ektx(v=vs.110).aspx) plus the null byte as in php's trim() but i would also add an optional parameter "$charset" so that the behavior would be completely customizable
UString::trim(UString $charset = null)