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

TCollection_AsciiString Class Reference

#include <TCollection_AsciiString.hxx>

List of all members.


Detailed Description

A variable-length sequence of ASCII characters
(normal 8-bit character type). It provides editing
operations with built-in memory management to
make AsciiString objects easier to use than
ordinary character arrays.
AsciiString objects follow value semantics; in
other words, they are the actual strings, not
handles to strings, and are copied through
assignment. You may use HAsciiString objects
to get handles to strings.

Definition at line 74 of file TCollection_AsciiString.hxx.


Public Member Functions

Standard_EXPORT void AssignCat (const TCollection_AsciiString &other)
Standard_EXPORT void AssignCat (const Standard_CString other)
Standard_EXPORT void AssignCat (const Standard_Real other)
 Appends <other> to me. This is an unary operator.
.
Standard_EXPORT void AssignCat (const Standard_Integer other)
 Appends <other> to me. This is an unary operator.
.
Standard_EXPORT void AssignCat (const Standard_Character other)
 Appends <other> to me. This is an unary operator.
.
Standard_EXPORT void Capitalize ()
TCollection_AsciiString Cat (const TCollection_AsciiString &other) const
TCollection_AsciiString Cat (const Standard_CString other) const
TCollection_AsciiString Cat (const Standard_Real other) const
TCollection_AsciiString Cat (const Standard_Integer other) const
TCollection_AsciiString Cat (const Standard_Character other) const
Standard_EXPORT void Center (const Standard_Integer Width, const Standard_Character Filler)
Standard_EXPORT void ChangeAll (const Standard_Character aChar, const Standard_Character NewChar, const Standard_Boolean CaseSensitive=Standard_True)
Standard_EXPORT void Clear ()
Standard_EXPORT void Copy (const TCollection_AsciiString &fromwhere)
Standard_EXPORT void Copy (const Standard_CString fromwhere)
Standard_EXPORT void Destroy ()
 Frees memory allocated by AsciiString.
.
Standard_EXPORT Standard_Integer FirstLocationInSet (const TCollection_AsciiString &Set, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const
Standard_EXPORT Standard_Integer FirstLocationNotInSet (const TCollection_AsciiString &Set, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const
Standard_EXPORT void Insert (const Standard_Integer where, const TCollection_AsciiString &what)
 Inserts a AsciiString at position <where>.
.
Standard_EXPORT void Insert (const Standard_Integer where, const Standard_CString what)
Standard_EXPORT void Insert (const Standard_Integer where, const Standard_Character what)
Standard_EXPORT void InsertAfter (const Standard_Integer Index, const TCollection_AsciiString &other)
Standard_EXPORT void InsertBefore (const Standard_Integer Index, const TCollection_AsciiString &other)
Standard_EXPORT Standard_Integer IntegerValue () const
Standard_EXPORT Standard_Boolean IsAscii () const
Standard_EXPORT Standard_Boolean IsDifferent (const TCollection_AsciiString &other) const
Standard_EXPORT Standard_Boolean IsDifferent (const Standard_CString other) const
Standard_EXPORT Standard_Boolean IsEmpty () const
 Returns True if the string <me> contains zero character.
.
Standard_EXPORT Standard_Boolean IsEqual (const TCollection_AsciiString &other) const
Standard_EXPORT Standard_Boolean IsEqual (const Standard_CString other) const
Standard_EXPORT Standard_Boolean IsGreater (const TCollection_AsciiString &other) const
 Returns TRUE if <me> is 'ASCII' greater than <other>.
.
Standard_EXPORT Standard_Boolean IsGreater (const Standard_CString other) const
 Returns TRUE if <me> is 'ASCII' greater than <other>.
.
Standard_EXPORT Standard_Boolean IsIntegerValue () const
Standard_EXPORT Standard_Boolean IsLess (const TCollection_AsciiString &other) const
 Returns TRUE if <me> is 'ASCII' less than <other>.
.
Standard_EXPORT Standard_Boolean IsLess (const Standard_CString other) const
 Returns TRUE if <me> is 'ASCII' less than <other>.
.
Standard_EXPORT Standard_Boolean IsRealValue () const
Standard_EXPORT void LeftAdjust ()
 Removes all space characters in the begining of the string.
.
Standard_EXPORT void LeftJustify (const Standard_Integer Width, const Standard_Character Filler)
Standard_Integer Length () const
Standard_EXPORT Standard_Integer Location (const Standard_Integer N, const Standard_Character C, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const
Standard_EXPORT Standard_Integer Location (const TCollection_AsciiString &other, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const
Standard_EXPORT void LowerCase ()
void operator delete (void *anAddress)
void * operator new (size_t size)
void * operator new (size_t, void *anAddress)
Standard_Boolean operator!= (const TCollection_AsciiString &other) const
Standard_Boolean operator!= (const Standard_CString other) const
TCollection_AsciiString operator+ (const TCollection_AsciiString &other) const
TCollection_AsciiString operator+ (const Standard_CString other) const
TCollection_AsciiString operator+ (const Standard_Real other) const
TCollection_AsciiString operator+ (const Standard_Integer other) const
TCollection_AsciiString operator+ (const Standard_Character other) const
void operator+= (const TCollection_AsciiString &other)
void operator+= (const Standard_CString other)
void operator+= (const Standard_Real other)
void operator+= (const Standard_Integer other)
void operator+= (const Standard_Character other)
Standard_Boolean operator< (const TCollection_AsciiString &other) const
Standard_Boolean operator< (const Standard_CString other) const
void operator= (const TCollection_AsciiString &fromwhere)
void operator= (const Standard_CString fromwhere)
Standard_Boolean operator== (const TCollection_AsciiString &other) const
Standard_Boolean operator== (const Standard_CString other) const
Standard_Boolean operator> (const TCollection_AsciiString &other) const
Standard_Boolean operator> (const Standard_CString other) const
Standard_EXPORT void Prepend (const TCollection_AsciiString &other)
Standard_EXPORT void Print (Standard_OStream &astream) const
 Displays <me> on a stream.
.
Standard_EXPORT void Read (Standard_IStream &astream)
 Read <me> from a stream.
.
Standard_EXPORT Standard_Real RealValue () const
Standard_EXPORT void Remove (const Standard_Integer where, const Standard_Integer ahowmany=1)
Standard_EXPORT void RemoveAll (const Standard_Character what)
 Removes every <what> characters from <me>.
.
Standard_EXPORT void RemoveAll (const Standard_Character C, const Standard_Boolean CaseSensitive)
Standard_EXPORT void RightAdjust ()
 Removes all space characters at the end of the string.
.
Standard_EXPORT void RightJustify (const Standard_Integer Width, const Standard_Character Filler)
Standard_EXPORT Standard_Integer Search (const TCollection_AsciiString &what) const
Standard_EXPORT Standard_Integer Search (const Standard_CString what) const
Standard_EXPORT Standard_Integer SearchFromEnd (const TCollection_AsciiString &what) const
Standard_EXPORT Standard_Integer SearchFromEnd (const Standard_CString what) const
Standard_EXPORT void SetValue (const Standard_Integer where, const TCollection_AsciiString &what)
 Replaces a part of <me> by another AsciiString.
.
Standard_EXPORT void SetValue (const Standard_Integer where, const Standard_CString what)
Standard_EXPORT void SetValue (const Standard_Integer where, const Standard_Character what)
Standard_EXPORT
TCollection_AsciiString 
Split (const Standard_Integer where)
TCollection_AsciiString SubString (const Standard_Integer FromIndex, const Standard_Integer ToIndex) const
Standard_EXPORT TCollection_AsciiString (const TCollection_ExtendedString &astring, const Standard_Character replaceNonAscii=0)
Standard_EXPORT TCollection_AsciiString (const TCollection_AsciiString &astring, const TCollection_AsciiString &message)
Standard_EXPORT TCollection_AsciiString (const TCollection_AsciiString &astring, const Standard_CString message)
Standard_EXPORT TCollection_AsciiString (const TCollection_AsciiString &astring, const Standard_Character message)
Standard_EXPORT TCollection_AsciiString (const TCollection_AsciiString &astring)
 Initializes a AsciiString with another AsciiString.
.
Standard_EXPORT TCollection_AsciiString (const Standard_Real value)
 Initializes an AsciiString with a real value
.
Standard_EXPORT TCollection_AsciiString (const Standard_Integer value)
 Initializes an AsciiString with an integer value
.
Standard_EXPORT TCollection_AsciiString (const Standard_Integer length, const Standard_Character filler)
Standard_EXPORT TCollection_AsciiString (const Standard_Character aChar)
 Initializes a AsciiString with a single character.
.
Standard_EXPORT TCollection_AsciiString (const Standard_CString message, const Standard_Integer aLen)
 Initializes a AsciiString with a CString.
.
Standard_EXPORT TCollection_AsciiString (const Standard_CString message)
 Initializes a AsciiString with a CString.
.
Standard_EXPORT TCollection_AsciiString ()
 Initializes a AsciiString to an empty AsciiString.
.
Standard_CString ToCString () const
Standard_EXPORT
TCollection_AsciiString 
Token (const Standard_CString separators=" \t", const Standard_Integer whichone=1) const
Standard_EXPORT void Trunc (const Standard_Integer ahowmany)
Standard_EXPORT void UpperCase ()
 Converts <me> to its upper-case equivalent.
.
Standard_EXPORT Standard_Integer UsefullLength () const
Standard_EXPORT Standard_Character Value (const Standard_Integer where) const

Static Public Member Functions

static Standard_Integer HASHCODE (const TCollection_AsciiString &astring, const Standard_Integer Upper)
 Hash function for AsciiString no case sensitive
.
static Standard_Integer HashCode (const TCollection_AsciiString &astring, const Standard_Integer Upper)
static Standard_Boolean IsEqual (const TCollection_AsciiString &string1, const Standard_CString string2)
static Standard_Boolean IsEqual (const TCollection_AsciiString &string1, const TCollection_AsciiString &string2)
static Standard_EXPORT
Standard_Boolean 
ISSIMILAR (const TCollection_AsciiString &string1, const TCollection_AsciiString &string2)

Private Member Functions

Standard_EXPORT void Split (const Standard_Integer where, TCollection_AsciiString &result)
Standard_EXPORT void SubString (const Standard_Integer FromIndex, const Standard_Integer ToIndex, TCollection_AsciiString &result) const
Standard_EXPORT void Token (const Standard_CString separators, const Standard_Integer whichone, TCollection_AsciiString &result) const

Private Attributes

Standard_Integer mylength
Standard_PCharacter mystring

Friends

Standard_EXPORT Standard_OStream & operator<< (Standard_OStream &astream, const TCollection_AsciiString &astring)
Standard_EXPORT Standard_IStream & operator>> (Standard_IStream &astream, TCollection_AsciiString &astring)
class TCollection_HAsciiString

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

Generated by  Doxygen 1.6.0   Back to index