mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0025684: Extend TCollection_ExtendedString with method IsEmpty()
This commit is contained in:
@@ -148,6 +148,12 @@ is
|
|||||||
raises OutOfRange from Standard
|
raises OutOfRange from Standard
|
||||||
is static;
|
is static;
|
||||||
|
|
||||||
|
IsEmpty(me) returns Boolean from Standard
|
||||||
|
is static;
|
||||||
|
---Level: Public
|
||||||
|
---C++: inline
|
||||||
|
---Purpose: Returns True if this string contains no characters.
|
||||||
|
|
||||||
IsEqual (me ; other : ExtString )
|
IsEqual (me ; other : ExtString )
|
||||||
returns Boolean from Standard
|
returns Boolean from Standard
|
||||||
is static;
|
is static;
|
||||||
|
@@ -39,3 +39,11 @@ inline Standard_Boolean
|
|||||||
{
|
{
|
||||||
return theString1.IsEqual(theString2);
|
return theString1.IsEqual(theString2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
// IsEmpty
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
inline Standard_Boolean TCollection_ExtendedString::IsEmpty() const
|
||||||
|
{
|
||||||
|
return mylength == 0;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user