Oh My God! I broke it! - But it should be fixed now
This was SVN commit r133.
This commit is contained in:
parent
250f9009bc
commit
68493a5a20
@ -234,7 +234,8 @@ CStr CStr::Trim(PS_TRIM_MODE Mode)
|
|||||||
|
|
||||||
case PS_TRIM_RIGHT:
|
case PS_TRIM_RIGHT:
|
||||||
{
|
{
|
||||||
for (Right = m_String.length()-1; Right >= 0; Right--)
|
Right = m_String.length();
|
||||||
|
while (Right--)
|
||||||
if (_istspace(m_String[Right]) == false)
|
if (_istspace(m_String[Right]) == false)
|
||||||
break; // end found, trim len-1 to Right+1 inclusive
|
break; // end found, trim len-1 to Right+1 inclusive
|
||||||
} break;
|
} break;
|
||||||
@ -245,7 +246,8 @@ CStr CStr::Trim(PS_TRIM_MODE Mode)
|
|||||||
if (_istspace(m_String[Left]) == false)
|
if (_istspace(m_String[Left]) == false)
|
||||||
break; // end found, trim 0 to Left-1 inclusive
|
break; // end found, trim 0 to Left-1 inclusive
|
||||||
|
|
||||||
for (Right = m_String.length()-1; Right >= 0; Right--)
|
Right = m_String.length();
|
||||||
|
while (Right--)
|
||||||
if (_istspace(m_String[Right]) == false)
|
if (_istspace(m_String[Right]) == false)
|
||||||
break; // end found, trim len-1 to Right+1 inclusive
|
break; // end found, trim len-1 to Right+1 inclusive
|
||||||
} break;
|
} break;
|
||||||
|
Loading…
Reference in New Issue
Block a user