Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTString Methods

Constructor / Destructor

  • CTString(): Creates a CTString object
  • ~CTString(): Destroys a CTString Object and resets all the dependent objects

String Handling

  • c_str(): Returns a ‘C’ language format character string, with the same contents represented by the CTString object
  • Compare(): Compares this CTString object to str, with case sensitivity
  • CompareIC(): Compares this CTString object to str, with case insensitivity
  • Delete(): Deletes characters from the string
  • Empty(): Frees the string and sets it to NULL
  • Insert(): Inserts substr into this string at position index
  • IntToHex(): Converts a number into a string containing the number’s hexadecimal representation
  • IsDelimiter(): Verifies if the character at byte index in the CTString matches any character in the delimiters the string str
  • IsEmpty(): Verifies if this string is NULL or the length is zero.
  • IsPathDelimiter(): Verifies if the character at byte index in the CTString is ‘\’ (or ‘/’ for Unix systems)
  • LastChar(): Retrieves a pointer to the last full character in the CTString
  • LastDelimiter(): Retrieves the byte index of the rightmost whole character in this CTString
  • Left(): Retrieves the count left most characters in the string
  • Length(): Retrieves the length of the string
  • LowerCase(): Converts this CTString characters to lower case
  • PadLeft(): Pads this CTString to the left
  • PadRight(): Pads this CTString to the right
  • Pos(): Returns the index at which a specified substring begins
  • Right(): Retrieves the count right most characters in the string
  • SetLength(): Resizes this CTString, truncating or increasing the size of the string
  • StringOfChar(): Fills a CTString with the specified number of characters
  • SubString(): Retrieves a specified substring of the CTString
  • ToInt(): Converts a CTString to an integer
  • ToDouble(): Converts a CTString to a double
  • Trim(): Removes all spaces from the beginning and from the end of a CTString
  • TrimLeft(): Removes all spaces from the beginning of a CTString
  • TrimRight(): Removes all spaces from the end of a CTString
  • UpperCase(): Converts this CTString characters to upper case

In This Section

CTString::CTString

CTString::~CTString

CTString::c_str

CTString::Compare

CTString::CompareIC

CTString::Delete

CTString::Empty

CTString::Insert

CTString::IntToHex

CTString::IsDelimiter

CTString::IsEmpty

CTString::IsPathDelimiter

CTString::LastChar

CTString::LastDelimiter

CTString::Left

CTString::Length

CTString::LowerCase

CTString::PadLeft

CTString::PadRight

CTString::Pos

CTString::Right

CTString::SetLength

CTString::StringOfChar

CTString::SubString

CTString::ToInt

CTString::ToDouble

CTString::Trim

CTString::TrimLeft

CTString::TrimRight

CTString::UpperCase

TOCIndex