CSAD
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
bt::ShortString Class Reference

ShortString - a short string that can contain no more than 255 8bits characters. More...

Public Member Functions

_FORCEINLINE int compare (char *ch)
 return 0 if equal, see CmpMem
 
_FORCEINLINE int compare (const char *ch)
 return 0 if equal, see CmpMem
 
_FORCEINLINE char * data ()
 returns an array of data.
 
_FORCEINLINE void keep ()
 saves the data array after removal of the object.
 
_FORCEINLINE unsigned char length ()
 returns the number of characters in the string
 
_FORCEINLINE const char * str ()
 returns a string in the form of an array of characters.
 

Detailed Description

ShortString - a short string that can contain no more than 255 8bits characters.

For example:

  ShortString a("list: ");
  a+="1, str 1.";
  printf(a.str());
  char num=a[6];
  printf(num);
See Also
bt