mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-17 06:46:01 +08:00
Sync changes from upstream repository
Co-authored-by: Alain <alain@mcneel.com> Co-authored-by: Andrew Le Bihan <andy@mcneel.com> Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Dale Fugier <dale@mcneel.com> Co-authored-by: Dale Lear <dalelear@mcneel.com> Co-authored-by: David Eränen <david.eranen@mcneel.com> Co-authored-by: Greg Arden <greg@mcneel.com> Co-authored-by: Mikko Oksanen <mikko@mcneel.com> Co-authored-by: piac <giulio@mcneel.com> Co-authored-by: Steve Baer <steve@mcneel.com> Co-authored-by: TimHemmelman <tim@mcneel.com> Co-authored-by: Will Pearson <will@mcneel.com>
This commit is contained in:
@@ -2456,7 +2456,9 @@ void ON_wString::TrimLeft(const wchar_t* s)
|
||||
{
|
||||
for (i = 0; 0 != (c = m_s[i]); i++)
|
||||
{
|
||||
if ( c < 0 || c > ON_wString::Space )
|
||||
// All postive code points in ON_IsUnicodeSpaceOrControlCodePoint()
|
||||
// are UTF-16 singltons so it's ok to cast c as a Unicode code point.
|
||||
if ( c < 0 || 0 == ON_IsUnicodeSpaceOrControlCodePoint((ON__UINT32)c) )
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2496,7 +2498,9 @@ void ON_wString::TrimRight(const wchar_t* s)
|
||||
{
|
||||
for (i--; i >= 0 && 0 != (c = m_s[i]); i--)
|
||||
{
|
||||
if ( c < 0 || c > ON_wString::Space )
|
||||
// All postive code points in ON_IsUnicodeSpaceOrControlCodePoint()
|
||||
// are UTF-16 singltons so it's ok to cast c as a Unicode code point.
|
||||
if ( c < 0 || 0 == ON_IsUnicodeSpaceOrControlCodePoint((ON__UINT32)c) )
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user