Logo Search packages:      
Sourcecode: opencascade version File versions  Download package

TCollection_ExtendedString Class Reference

#include <TCollection_ExtendedString.hxx>

List of all members.


Detailed Description

A variable-length sequence of "extended"
(UNICODE) characters (16-bit character type). It
provides editing operations with built-in memory
management to make ExtendedString objects
easier to use than ordinary extended character arrays.
ExtendedString objects follow "value
semantics", that is, they are the actual strings,
not handles to strings, and are copied through
assignment. You may use HExtendedString
objects to get handles to strings.

Definition at line 79 of file TCollection_ExtendedString.hxx.


Public Member Functions

Standard_EXPORT void AssignCat (const TCollection_ExtendedString &other)
Standard_EXPORT
TCollection_ExtendedString 
Cat (const TCollection_ExtendedString &other) const
 Appends <other> to me.
.
Standard_EXPORT void ChangeAll (const Standard_ExtCharacter aChar, const Standard_ExtCharacter NewChar)
Standard_EXPORT void Clear ()
Standard_EXPORT void Copy (const TCollection_ExtendedString &fromwhere)
Standard_EXPORT void Destroy ()
 Frees memory allocated by ExtendedString.
.
Standard_EXPORT void Insert (const Standard_Integer where, const TCollection_ExtendedString &what)
 Insert a ExtendedString at position <where>.
.
Standard_EXPORT void Insert (const Standard_Integer where, const Standard_ExtCharacter what)
 Insert a Character at position <where>.
.
Standard_EXPORT Standard_Boolean IsAscii () const
Standard_EXPORT Standard_Boolean IsDifferent (const TCollection_ExtendedString &other) const
Standard_EXPORT Standard_Boolean IsDifferent (const Standard_ExtString other) const
Standard_EXPORT Standard_Boolean IsEqual (const TCollection_ExtendedString &other) const
Standard_EXPORT Standard_Boolean IsEqual (const Standard_ExtString other) const
Standard_EXPORT Standard_Boolean IsGreater (const TCollection_ExtendedString &other) const
 Returns TRUE if <me> is greater than <other>.
.
Standard_EXPORT Standard_Boolean IsGreater (const Standard_ExtString other) const
 Returns TRUE if <me> is greater than <other>.
.
Standard_EXPORT Standard_Boolean IsLess (const TCollection_ExtendedString &other) const
 Returns TRUE if <me> is less than <other>.
.
Standard_EXPORT Standard_Boolean IsLess (const Standard_ExtString other) const
 Returns TRUE if <me> is less than <other>.
.
Standard_EXPORT Standard_Integer Length () const
Standard_EXPORT Standard_Integer LengthOfCString () const
void operator delete (void *anAddress)
void * operator new (size_t size)
void * operator new (size_t, void *anAddress)
Standard_Boolean operator!= (const TCollection_ExtendedString &other) const
Standard_Boolean operator!= (const Standard_ExtString other) const
TCollection_ExtendedString operator+ (const TCollection_ExtendedString &other) const
void operator+= (const TCollection_ExtendedString &other)
Standard_Boolean operator< (const TCollection_ExtendedString &other) const
Standard_Boolean operator< (const Standard_ExtString other) const
void operator= (const TCollection_ExtendedString &fromwhere)
Standard_Boolean operator== (const TCollection_ExtendedString &other) const
Standard_Boolean operator== (const Standard_ExtString other) const
Standard_Boolean operator> (const TCollection_ExtendedString &other) const
Standard_Boolean operator> (const Standard_ExtString other) const
Standard_EXPORT void Print (Standard_OStream &astream) const
 Displays <me> .
.
Standard_EXPORT void Remove (const Standard_Integer where, const Standard_Integer ahowmany=1)
 Erases <ahowmany> characters from position <where>,<where> included.
.
Standard_EXPORT void RemoveAll (const Standard_ExtCharacter what)
 Removes every <what> characters from <me>.
.
Standard_EXPORT Standard_Integer Search (const TCollection_ExtendedString &what) const
Standard_EXPORT Standard_Integer SearchFromEnd (const TCollection_ExtendedString &what) const
Standard_EXPORT void SetValue (const Standard_Integer where, const TCollection_ExtendedString &what)
 Replaces a part of <me> by another ExtendedString see above.
.
Standard_EXPORT void SetValue (const Standard_Integer where, const Standard_ExtCharacter what)
Standard_EXPORT
TCollection_ExtendedString 
Split (const Standard_Integer where)
Standard_EXPORT TCollection_ExtendedString (const TCollection_AsciiString &astring)
 Creation by converting a normal Ascii string to an extended string.
.
Standard_EXPORT TCollection_ExtendedString (const TCollection_ExtendedString &astring)
 Initializes a ExtendedString with another ExtendedString.
.
Standard_EXPORT TCollection_ExtendedString (const Standard_Real value)
 Initializes an ExtendedString with a real value
.
Standard_EXPORT TCollection_ExtendedString (const Standard_Integer value)
 Initializes an ExtendedString with an integer value
.
Standard_EXPORT TCollection_ExtendedString (const Standard_Integer length, const Standard_ExtCharacter filler)
Standard_EXPORT TCollection_ExtendedString (const Standard_ExtCharacter aChar)
 Initializes a ExtendedString with a single character.
.
Standard_EXPORT TCollection_ExtendedString (const Standard_Character aChar)
 Initializes a AsciiString with a single character.
.
Standard_EXPORT TCollection_ExtendedString (const Standard_ExtString astring)
 Creation by converting an ExtString to an extended string.
.
Standard_EXPORT TCollection_ExtendedString (const Standard_CString astring, const Standard_Boolean isMultiByte=Standard_False)
 Creation by converting a CString to an extended string.
.
Standard_EXPORT TCollection_ExtendedString ()
 Initializes a ExtendedString to an empty ExtendedString.
.
Standard_EXPORT const
Standard_ExtString 
ToExtString () const
 Returns pointer to ExtString
.
Standard_EXPORT
TCollection_ExtendedString 
Token (const Standard_ExtString separators, const Standard_Integer whichone=1) const
Standard_EXPORT Standard_Integer ToUTF8CString (Standard_PCharacter &theCString) const
Standard_EXPORT void Trunc (const Standard_Integer ahowmany)
Standard_EXPORT
Standard_ExtCharacter 
Value (const Standard_Integer where) const

Static Public Member Functions

static Standard_EXPORT
Standard_Integer 
HashCode (const TCollection_ExtendedString &astring, const Standard_Integer Upper)
static Standard_EXPORT
Standard_Boolean 
IsEqual (const TCollection_ExtendedString &string1, const TCollection_ExtendedString &string2)

Private Member Functions

Standard_EXPORT Standard_Boolean ConvertToUnicode (const Standard_CString astring)

Private Attributes

Standard_Integer mylength
Standard_PExtCharacter mystring

Friends

Standard_EXPORT Standard_OStream & operator<< (Standard_OStream &astream, const TCollection_ExtendedString &astring)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index