The string buffer will be allocated on the stack and its size is determined using a class template argument.
The class uses the TCHAR.H
runtime library for all its string
manipulations. This makes it UNICODE and multi-byte aware, but
also dependant on the C Runtime Library.
Interface
Name | Description | |
---|---|---|
![]() | CFixedString() | Default constructor. |
![]() | CFixedString(TCHAR ch) | Constructor, which take a single character. |
![]() | CFixedString(LPCTSTR lpsz) | Constructor that initialized the string right away. |
![]() | GetLength | Returns the size of the string. |
![]() | IsEmpty | Returns TRUE if the string is empty. |
![]() | Empty | Clears the string. |
![]() | operator LPCTSTR | Operator overload. Returns a pointer to the string. |
![]() | operator + | Operator overload. Concatenate strings. |
![]() | other operators | Compares the string (==, !=, < etc operators). |
![]() | Compare | Compares the string. |
![]() | MakeUpper | Converts the string to uppercase. |
![]() | MakeLower | Converts the string to lowercase. |
![]() | Left | Returns a substring starting from the first position. |
![]() | Right | Returns a substring starting from the end of the string. |
![]() | Mid | Returns a substring. |
![]() | Find | Finds the first occurence of a character/substring in the string. |
Download Files
![]() | Source Code (3 Kb) |