Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Deprecated/old_18mar_diff/Str14dec/StrTools.inl

Go to the documentation of this file.
00001 #ifndef __J2K__JString_Tools_INL__
00002 #define __J2K__JString_Tools_INL__
00003 
00004 #include <j2k/Fred/String/String.hpp>
00005 // NO Problem with Lock functions !
00006 
00007 inline int JString::getLockNb() const {
00008   return pData->lock;
00009 }
00010 
00011 inline BOOL JString::isLock() const {
00012   return (pData->lock != 0);
00013 }
00014 
00015 inline BOOL JString::isUnlock() const {
00016   return (pData->lock == 0);
00017 }
00018 
00019 inline ULONG JString::length() {
00020   pData->length = strlen( pData->data );
00021   return pData->length;
00022 }
00023 
00024 inline ULONG JString::getLength() {
00025   pData->length = strlen( pData->data );
00026   return pData->length;
00027 }
00028 
00029 inline ULONG JString::getAllocLength() const {
00030   return pData->bufferSize;
00031 }
00032 
00033 inline ULONG JString::getBufferSize() const {
00034   return pData->bufferSize;
00035 }
00036 
00037 inline void JString::Display() const {
00038   cout << pData->data;
00039 }
00040 
00041 inline BOOL JString::isEmpty() const {
00042   if ( pData == strNull    ) return TRUE;
00043   if ( pData->length == 0  ) return TRUE;
00044   if ( pData->data == ""   ) return TRUE;
00045   if ( pData->data == NULL ) return TRUE;
00046   if ( pData == NULL       ) return TRUE;
00047   return FALSE;
00048 }
00049 
00050 inline BOOL JString::isFilled() const {
00051   return !( isEmpty() );
00052 }
00053 
00054 #endif

Generated on Sun Oct 14 18:46:29 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001