From: kgv Date: Fri, 10 Apr 2015 06:48:30 +0000 (+0300) Subject: 0025684: Extend TCollection_ExtendedString with method IsEmpty() X-Git-Tag: V6_9_0_beta1~18 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a21ab2c1a19fdcfc77a433718c28188eda7481dc;p=occt-copy.git 0025684: Extend TCollection_ExtendedString with method IsEmpty() --- diff --git a/src/TCollection/TCollection_ExtendedString.cdl b/src/TCollection/TCollection_ExtendedString.cdl index 9158a88704..104b770d84 100644 --- a/src/TCollection/TCollection_ExtendedString.cdl +++ b/src/TCollection/TCollection_ExtendedString.cdl @@ -148,6 +148,12 @@ is raises OutOfRange from Standard 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 ) returns Boolean from Standard is static; diff --git a/src/TCollection/TCollection_ExtendedString.lxx b/src/TCollection/TCollection_ExtendedString.lxx index 82ef217245..3688a66c1f 100644 --- a/src/TCollection/TCollection_ExtendedString.lxx +++ b/src/TCollection/TCollection_ExtendedString.lxx @@ -39,3 +39,11 @@ inline Standard_Boolean { return theString1.IsEqual(theString2); } + +//------------------------------------------------------------------------ +// IsEmpty +//------------------------------------------------------------------------ +inline Standard_Boolean TCollection_ExtendedString::IsEmpty() const +{ + return mylength == 0; +}