String Class Reference

#include <StrClass.h>

List of all members.

Public Member Functions

void * operator new (size_t size)
void operator delete (void *ptr)
 String ()
 String (int size, BOOL unused)
 String (const String &)
 String (const char *)
 String (char)
 String (SWORD)
 String (ULONG)
 String (LONG)
 String (float)
 String (double)
 String (float, float precision)
 String (int)
 String (char, int count)
void Set (const char *other, int len)
 ~String ()
char * Get () const
char operator[] (int index) const
BOOL IsEmpty () const
void Empty ()
BOOL operator== (const String &) const
BOOL operator!= (const String &other) const
Stringoperator= (const String &)
Stringoperator= (const char *)
void operator+= (const String &)
size_t length () const
String Left (int count) const
String Right (int count) const
String Mid (int start, int count) const
String ToUpper () const
String ToLower () const
String GetPathOnly () const
String GetNameOnly () const
String GetSuffixOnly () const
String GetWithoutSuffix () const
String GetNameOnlyWithoutSuffix () const
String GetWithoutDigits () const
String GetFileDigits () const
int GetEndingNumber () const
String GetWithoutCRLFs () const
String GetAbbreviated (int cchMax, BOOL bAtLeastName=TRUE) const
String GetAbbreviated (CWnd *window) const
String GetRelativePath () const
String GetNonRelativePath () const
String GetAbsolutePath () const
String GetAbsolutePath (BOOL forceunc) const
String GetUNCFileName () const
String GetServerFileName () const
String NumberFrame (LONG frame) const
String StripLeadingSlash () const
String StripPunctuation ()
String NetSharePlaceHolder () const
String GetFileNamesMatchName () const
String GetMatchNameRelativeForFile () const
String GetMatchNameAbsoluteFromFile () const
void ReplaceWackyForMac (char find, char replace)
String ToRelativePathDescription () const
String ToAbsolutePathDescription (float productversion, BOOL &askforfile) const
PLUGINEXPORT float GetCM () const
String FitWidth (CDC *dc, int maxwidth, const String &padwith) const
String GetEncrypted (String password) const
void Decrypt (String password)
BOOL operator< (const String &) const
BOOL operator> (const String &) const
BOOL operator<= (const String &) const
BOOL operator>= (const String &) const
void TrimRight ()
void TrimLeft ()
int Find (char ch) const
int Find (int startindex, char ch) const
int Find (const String &sub) const
int Find (int startindex, const String &sub) const
int ReverseFind (char ch) const
void Format (const String &format,...)
int FindOneOf (const String &charset) const
String SpanIncluding (const String &charset) const
String SpanExcluding (const String &charset) const
void Replace (const String &find, const String &replace)
String GetFileTitle () const
String GetToolTip ()
String GetStatusMessageText ()
Time ToTime (int fps, int timeunits, BOOL treatasdelta=FALSE) const
String StrTok (String separators)

Static Public Member Functions

static String GetAppPath ()
static String GetOsPath ()
static String GetTempPath ()
static String GetAppDataPath ()

Public Attributes

char * buf

Friends

String operator+ (const String &, const String &)
FILEIOEXPORT friend String GetRegisteredOwner ()


Detailed Description

Definition at line 35 of file StrClass.h.


Constructor & Destructor Documentation

String::String  )  [inline]
 

Definition at line 46 of file StrClass.h.

String::String int  size,
BOOL  unused
[inline]
 

Definition at line 48 of file StrClass.h.

References STRINGALLOC.

String::String const String  )  [inline]
 

Definition at line 154 of file StrClass.h.

References buf, length(), and STRINGALLOC.

Here is the call graph for this function:

String::String const char *   )  [inline]
 

Definition at line 162 of file StrClass.h.

References buf, and STRINGALLOC.

String::String char   )  [inline]
 

Definition at line 170 of file StrClass.h.

References buf, and STRINGALLOC.

String::String SWORD   )  [inline]
 

Definition at line 187 of file StrClass.h.

References buf, and STRINGALLOC.

String::String ULONG   )  [inline]
 

Definition at line 205 of file StrClass.h.

References buf, and STRINGALLOC.

String::String LONG   )  [inline]
 

Definition at line 196 of file StrClass.h.

References buf, and STRINGALLOC.

String::String float   )  [inline]
 

Definition at line 214 of file StrClass.h.

References buf, and STRINGALLOC.

String::String double   )  [inline]
 

Definition at line 223 of file StrClass.h.

References buf, and STRINGALLOC.

String::String float  ,
float  precision
[inline]
 

Definition at line 232 of file StrClass.h.

References buf, Round(), and STRINGALLOC.

Here is the call graph for this function:

String::String int   )  [inline]
 

Definition at line 249 of file StrClass.h.

References buf, and STRINGALLOC.

String::String char  ,
int  count
[inline]
 

Definition at line 178 of file StrClass.h.

References buf, and STRINGALLOC.

String::~String  )  [inline]
 

Definition at line 62 of file StrClass.h.

References STRINGFREE.


Member Function Documentation

void String::Decrypt String  password  ) 
 

void String::Empty  )  [inline]
 

Definition at line 74 of file StrClass.h.

References STRINGFREE.

int String::Find int  startindex,
const String sub
const
 

int String::Find const String sub  )  const
 

int String::Find int  startindex,
char  ch
const
 

int String::Find char  ch  )  const
 

int String::FindOneOf const String charset  )  const
 

String String::FitWidth CDC *  dc,
int  maxwidth,
const String padwith
const
 

void String::Format const String format,
  ...
 

char* String::Get void   )  const [inline]
 

Definition at line 63 of file StrClass.h.

String String::GetAbbreviated CWnd *  window  )  const
 

String String::GetAbbreviated int  cchMax,
BOOL  bAtLeastName = TRUE
const
 

String String::GetAbsolutePath BOOL  forceunc  )  const
 

String String::GetAbsolutePath  )  const
 

static String String::GetAppDataPath  )  [static]
 

static String String::GetAppPath  )  [static]
 

PLUGINEXPORT float String::GetCM  )  const
 

String String::GetEncrypted String  password  )  const
 

int String::GetEndingNumber  )  const
 

String String::GetFileDigits  )  const
 

String String::GetFileNamesMatchName  )  const
 

String String::GetFileTitle  )  const
 

String String::GetMatchNameAbsoluteFromFile  )  const
 

String String::GetMatchNameRelativeForFile  )  const
 

String String::GetNameOnly  )  const
 

String String::GetNameOnlyWithoutSuffix  )  const
 

String String::GetNonRelativePath  )  const
 

static String String::GetOsPath  )  [static]
 

String String::GetPathOnly  )  const
 

String String::GetRelativePath  )  const
 

String String::GetServerFileName  )  const
 

String String::GetStatusMessageText  ) 
 

String String::GetSuffixOnly  )  const
 

static String String::GetTempPath  )  [static]
 

String String::GetToolTip  ) 
 

String String::GetUNCFileName  )  const
 

String String::GetWithoutCRLFs  )  const
 

String String::GetWithoutDigits  )  const
 

String String::GetWithoutSuffix  )  const
 

BOOL String::IsEmpty  )  const [inline]
 

Definition at line 73 of file StrClass.h.

String String::Left int  count  )  const
 

size_t String::length  )  const [inline]
 

Definition at line 258 of file StrClass.h.

References buf.

Referenced by String().

String String::Mid int  start,
int  count
const
 

String String::NetSharePlaceHolder  )  const
 

String String::NumberFrame LONG  frame  )  const
 

void String::operator delete void *  ptr  )  [inline]
 

Definition at line 44 of file StrClass.h.

References FreeAct().

Here is the call graph for this function:

void* String::operator new size_t  size  )  [inline]
 

Definition at line 42 of file StrClass.h.

References AllocAct().

Here is the call graph for this function:

BOOL String::operator!= const String other  )  const [inline]
 

Definition at line 76 of file StrClass.h.

References BOOL(), FALSE, FILEIOEXPORT, operator+(), PLUGINEXPORT, and TRUE.

Here is the call graph for this function:

void String::operator+= const String  ) 
 

BOOL String::operator< const String  )  const
 

BOOL String::operator<= const String  )  const
 

String & String::operator= const char *   )  [inline]
 

Definition at line 273 of file StrClass.h.

References buf, STRINGALLOC, and STRINGFREE.

String& String::operator= const String  ) 
 

BOOL String::operator== const String  )  const [inline]
 

Definition at line 294 of file StrClass.h.

References buf, and FALSE.

BOOL String::operator> const String  )  const
 

BOOL String::operator>= const String  )  const
 

char String::operator[] int  index  )  const [inline]
 

Definition at line 64 of file StrClass.h.

void String::Replace const String find,
const String replace
 

void String::ReplaceWackyForMac char  find,
char  replace
 

int String::ReverseFind char  ch  )  const
 

String String::Right int  count  )  const
 

void String::Set const char *  other,
int  len
[inline]
 

Definition at line 283 of file StrClass.h.

References buf, STRINGALLOC, and STRINGFREE.

String String::SpanExcluding const String charset  )  const
 

String String::SpanIncluding const String charset  )  const
 

String String::StripLeadingSlash  )  const
 

String String::StripPunctuation  ) 
 

String String::StrTok String  separators  ) 
 

String String::ToAbsolutePathDescription float  productversion,
BOOL &  askforfile
const
 

String String::ToLower  )  const
 

String String::ToRelativePathDescription  )  const
 

Time String::ToTime int  fps,
int  timeunits,
BOOL  treatasdelta = FALSE
const
 

String String::ToUpper  )  const
 

void String::TrimLeft  ) 
 

void String::TrimRight  ) 
 


Friends And Related Function Documentation

FILEIOEXPORT friend String GetRegisteredOwner  )  [friend]
 

String operator+ const String left,
const String right
[friend]
 

Definition at line 266 of file StrClass.h.


Member Data Documentation

char* String::buf
 

Definition at line 37 of file StrClass.h.

Referenced by length(), operator=(), operator==(), Set(), and String().


The documentation for this class was generated from the following file:
This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:47:03 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001